public abstract class Annotation extends Node
| Constructor and Description |
|---|
Annotation()
Create a new, empty annotation.
|
Annotation(Node node)
Create a new annotation for the specified node.
|
| Modifier and Type | Method and Description |
|---|---|
Node |
getNode()
Get the annotated node.
|
java.lang.String |
getTokenText()
Treat this node as a token and get its text.
|
Annotation |
innerMost()
Return the inner-most annotation.
|
boolean |
isAnnotation()
Determine whether this node is an annotation.
|
void |
setNode(Node node)
Set the annotated node.
|
Node |
strip()
Strip any annotations.
|
Annotation |
toAnnotation()
Get this node as an annotation.
|
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, writepublic Annotation()
public Annotation(Node node)
node - The node.public java.lang.String getTokenText()
NodegetTokenText in class NodeNode.strip()public boolean isAnnotation()
NodeisAnnotation in class Nodetrue if this node is an annotation.Annotationpublic Annotation toAnnotation()
NodetoAnnotation in class Nodepublic Node getNode()
public void setNode(Node node)
node - The new node.public Node strip()
Nodestrip in class NodeAnnotationpublic Annotation innerMost()
Copyright © 2012. All Rights Reserved.