public class Pragma extends Annotation
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
directive
The text of the pragma.
|
| Constructor and Description |
|---|
Pragma(java.lang.String directive,
Node node)
Create a new pragma.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.lang.Object |
get(int index)
Get the child at the specified index.
|
int |
hashCode() |
boolean |
hasTraversal()
Determine whether this node supports generic traversal of its
children.
|
java.lang.Object |
set(int index,
java.lang.Object value)
Set the child at the specified index to the specified value.
|
int |
size()
Get the number of children.
|
getNode, getTokenText, innerMost, isAnnotation, setNode, strip, toAnnotationadd, add, addAll, addAll, addAll, addAll, addAllTo, addNode, contains, getBoolean, getBooleanProperty, getGeneric, getList, getLocation, getName, getNode, getProperty, getString, getStringProperty, hasLocation, hasName, hasProperty, hasVariable, indexOf, isEmpty, isGeneric, isList, isToken, iterator, lastIndexOf, properties, remove, removeProperty, setLocation, setLocation, setProperty, toList, toString, toToken, writepublic Pragma(java.lang.String directive,
Node node)
directive - The actual directive.node - The node.public boolean hasTraversal()
Nodefalse.hasTraversal in class Nodetrue if this node supports generic traversal
of its children.public int size()
Nodepublic java.lang.Object get(int index)
Nodeget in class Nodeindex - The index.Token.test(Object),
Token.cast(Object),
GNode.test(Object),
GNode.cast(Object)public java.lang.Object set(int index,
java.lang.Object value)
Nodepublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.ObjectCopyright © 2014. All Rights Reserved.