| Modifier and Type | Field and Description |
|---|---|
java.util.List<ModuleName> |
names
The list of
module names. |
| Constructor and Description |
|---|
ModuleList(java.util.List<ModuleName> names)
Create a new module list.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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, writepublic java.util.List<ModuleName> names
module names.public ModuleList(java.util.List<ModuleName> names)
names - The list of names.public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic boolean isEmpty()
public int size()
public 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).Copyright © 2014. All Rights Reserved.