|
||||||||||
| 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.SourceIdentity
public class SourceIdentity
A source identity marker.
| Field Summary | |
|---|---|
java.lang.String |
ident
The text of the source identity marker. |
| Constructor Summary | |
|---|---|
SourceIdentity(java.lang.String ident,
Node node)
Create a new source identity marker. |
|
| Method Summary | |
|---|---|
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. |
| 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, 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, write |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public java.lang.String ident
| Constructor Detail |
|---|
public SourceIdentity(java.lang.String ident,
Node node)
ident - The actual identity.node - The node.| Method Detail |
|---|
public boolean hasTraversal()
Nodefalse.
hasTraversal in class Nodetrue if this node supports generic traversal
of its children.public int size()
Node
size in class Nodepublic java.lang.Object get(int index)
Node
get 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)
Node
set in class Nodeindex - The index.value - The new value.
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||