public class Def
extends java.lang.Object
| Constructor and Description |
|---|
Def(NNode node) |
Def(NNode node,
NBinding b) |
| Modifier and Type | Method and Description |
|---|---|
int |
end() |
boolean |
equals(java.lang.Object obj) |
NBinding |
getBinding() |
java.lang.String |
getFile()
Returns the file if this node is from a source file, else
null. |
java.lang.String |
getFileOrUrl()
Returns the file if from a source file, else the URL.
|
java.lang.String |
getName()
Returns the name of the node.
|
java.lang.String |
getURL()
Returns the URL if this node is from a URL, else
null. |
int |
hashCode() |
boolean |
isModule() |
boolean |
isName() |
boolean |
isURL()
Returns
true if this node is from a URL. |
int |
length() |
int |
start() |
java.lang.String |
toString() |
public java.lang.String getName()
NName node.public java.lang.String getFile()
null.public java.lang.String getURL()
null.public java.lang.String getFileOrUrl()
public boolean isURL()
true if this node is from a URL.public boolean isModule()
public int start()
public int end()
public int length()
public boolean isName()
public NBinding getBinding()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object