public abstract class ModuleDependency extends Node
| Modifier and Type | Field and Description |
|---|---|
ModuleList |
arguments
The arguments to the dependent module.
|
ModuleName |
module
The name of the dependent module.
|
ModuleName |
target
The optional target module name.
|
| Constructor and Description |
|---|
ModuleDependency(ModuleName module,
ModuleList arguments,
ModuleName target)
Create a new module dependency.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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, writepublic ModuleName module
public ModuleList arguments
public ModuleName target
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.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.Copyright © 2014. All Rights Reserved.