|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.AbstractMap<K,V>
java.util.HashMap<java.lang.String,java.lang.Object>
cetus.hir.Annotation
cetus.hir.CommentAnnotation
public class CommentAnnotation
CommentAnnotation is used for an annotation of comment type. It provides two different print method depending on the location of the comments.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.util.AbstractMap |
|---|
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V> |
| Field Summary |
|---|
| Fields inherited from class cetus.hir.Annotation |
|---|
AFTER, BEFORE, ir, position, skip_print, WITH |
| Constructor Summary | |
|---|---|
CommentAnnotation(java.lang.String comment)
Constructs a new comment annotation with the given comment. |
|
| Method Summary | |
|---|---|
void |
setOneLiner(boolean one_liner)
Sets the one_liner field; true for one-liner comments, false for normal multi-line comments. |
java.lang.String |
toString()
Returns the string representation of this comment. |
| Methods inherited from class cetus.hir.Annotation |
|---|
attach, clone, get, getAnnotatable, setPosition, setSkipPrint, toString |
| Methods inherited from class java.util.HashMap |
|---|
clear, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
| Methods inherited from class java.util.AbstractMap |
|---|
equals, hashCode |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Map |
|---|
equals, hashCode |
| Constructor Detail |
|---|
public CommentAnnotation(java.lang.String comment)
| Method Detail |
|---|
public void setOneLiner(boolean one_liner)
public java.lang.String toString()
toString in class Annotation
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||