|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectxtc.tree.Node
xtc.parser.ModuleDependency
public abstract class ModuleDependency
A grammar module dependency. Note that two module dependencies are equal if they describe the same module.
| Field Summary | |
|---|---|
ModuleList |
arguments
The arguments to the dependent module. |
ModuleName |
module
The name of the dependent module. |
ModuleName |
target
The optional target module name. |
| Constructor Summary | |
|---|---|
ModuleDependency(ModuleName module,
ModuleList arguments,
ModuleName target)
Create a new module dependency. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
|
int |
hashCode()
|
boolean |
isConsistentWith(ModuleDependency dep)
Determine whether this module dependency is consistent with the specified dependency, which has been resolved previously. |
boolean |
isImport()
Determine whether this dependency is a module
import. |
boolean |
isInstantiation()
Determine whether this dependency is a module instantiation. |
boolean |
isModification()
Determine whether this dependency is a module modification. |
ModuleDependency |
rename(ModuleMap renaming)
Rename this module dependency. |
ModuleName |
visibleName()
Get the visible name for this module dependency. |
| Methods inherited from class xtc.tree.Node |
|---|
add, add, addAll, addAll, addAll, addAll, addAllTo, addNode, contains, get, getBoolean, getBooleanProperty, getGeneric, getList, getLocation, getName, getNode, getProperty, getString, getStringProperty, getTokenText, hasLocation, hasName, hasProperty, hasTraversal, hasVariable, indexOf, isAnnotation, isEmpty, isGeneric, isList, isToken, iterator, lastIndexOf, properties, remove, removeProperty, set, setLocation, setLocation, setProperty, size, strip, toAnnotation, toList, toString, toToken, write |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public ModuleName module
public ModuleList arguments
public ModuleName target
| Constructor Detail |
|---|
public ModuleDependency(ModuleName module,
ModuleList arguments,
ModuleName target)
null, they are replaced with an empty module list.
If the specified target equals the module name, it is replaced by
null.
module - The module name.arguments - The arguments.target - The target module name.| Method Detail |
|---|
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic boolean isImport()
module
import.
true if this dependency is an import.public boolean isInstantiation()
module instantiation.
true if this dependency is an instantiation.public boolean isModification()
module modification.
true if this dependency is a modification.public ModuleName visibleName()
public boolean isConsistentWith(ModuleDependency dep)
dep - The previously resolved dependency.
true if this module dependency is consistent
with the specified one.public ModuleDependency rename(ModuleMap renaming)
original property is set to the original module name.
renaming - The module map.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||