|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectxtc.tree.Node
xtc.parser.ModuleList
public class ModuleList
A list of module names as a node.
| Field Summary | |
|---|---|
java.util.List<ModuleName> |
names
The list of module names. |
| Constructor Summary | |
|---|---|
ModuleList(java.util.List<ModuleName> names)
Create a new module list. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
|
ModuleName |
get(int idx)
Get the module name at the specified index. |
int |
hashCode()
|
boolean |
isEmpty()
Determine whether this module list is empty. |
ModuleList |
rename(ModuleMap renaming)
Rename this module list. |
int |
size()
Get the size of this module list. |
java.lang.String |
toString()
Return a human readable representation of this node. |
| 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, getTokenText, hasLocation, hasName, hasProperty, hasTraversal, hasVariable, indexOf, isAnnotation, isGeneric, isList, isToken, iterator, lastIndexOf, properties, remove, removeProperty, set, setLocation, setLocation, setProperty, strip, toAnnotation, toList, toToken, write |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public java.util.List<ModuleName> names
module names.
| Constructor Detail |
|---|
public ModuleList(java.util.List<ModuleName> names)
names - The list of names.| Method Detail |
|---|
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic boolean isEmpty()
isEmpty in class Nodetrue if this is an empty module list.public int size()
size in class Nodepublic ModuleName get(int idx)
get in class Nodeidx - The index.
java.lang.IndexOutOfBoundsException - Signals that the index is out of range.Token.test(Object),
Token.cast(Object),
GNode.test(Object),
GNode.cast(Object)public ModuleList rename(ModuleMap renaming)
renames all module names in this
module list using the specified module map.
renaming - The module map.
public java.lang.String toString()
NodeNode.write(Appendable).
toString in class Node
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||