public class Comment extends Annotation
| Modifier and Type | Class and Description |
|---|---|
static class |
Comment.Kind
The kind of comment.
|
| Modifier and Type | Field and Description |
|---|---|
Comment.Kind |
kind
The kind.
|
java.util.List<java.lang.String> |
text
The actual text, one line per list entry.
|
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
static Comment |
documentation(java.lang.String s)
Create a new code documentation comment.
|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
getNode, getTokenText, innerMost, isAnnotation, setNode, strip, toAnnotationadd, 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, writepublic Comment.Kind kind
public java.util.List<java.lang.String> text
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.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.Copyright © 2014. All Rights Reserved.