|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectxtc.tree.Node
xtc.tree.Annotation
xtc.tree.Comment
public class Comment
A source code comment.
| Nested Class Summary | |
|---|---|
static class |
Comment.Kind
The kind of comment. |
| Field Summary | |
|---|---|
Comment.Kind |
kind
The kind. |
java.util.List<java.lang.String> |
text
The actual text, one line per list entry. |
| Constructor Summary | |
|---|---|
Comment(Comment.Kind kind,
java.util.List<java.lang.String> text)
Create a new comment. |
|
Comment(Comment.Kind kind,
java.util.List<java.lang.String> text,
Node node)
Create a new comment. |
|
| Method Summary | |
|---|---|
static Comment |
documentation(java.lang.String s)
Create a new code documentation comment. |
boolean |
equals(java.lang.Object o)
|
int |
hashCode()
|
| Methods inherited from class xtc.tree.Annotation |
|---|
getNode, getTokenText, innerMost, isAnnotation, setNode, strip, toAnnotation |
| Methods inherited from class xtc.tree.Node |
|---|
add, add, addAll, addAll, addAll, addAll, addAllTo, addNode, contains, get, getBoolean, getBooleanProperty, getGeneric, getList, getLocation, getName, getNode, getProperty, getString, getStringProperty, hasLocation, hasName, hasProperty, hasTraversal, hasVariable, indexOf, isEmpty, isGeneric, isList, isToken, iterator, lastIndexOf, properties, remove, removeProperty, set, setLocation, setLocation, setProperty, size, toList, toString, toToken, write |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public Comment.Kind kind
public java.util.List<java.lang.String> text
| Constructor Detail |
|---|
public Comment(Comment.Kind kind,
java.util.List<java.lang.String> text)
kind - The kind.text - The text.
public Comment(Comment.Kind kind,
java.util.List<java.lang.String> text,
Node node)
kind - The kind.text - The text.node - The node.| Method Detail |
|---|
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic static Comment documentation(java.lang.String s)
null, it is passed through.
s - The text of the comment, including start and end markers.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||