public class PointerTargetNode extends java.lang.Object implements Node
PointerTargetNodeList.| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
_cachedToString |
private PointerTarget |
_target
The PointerTarget
|
private PointerType |
_type
The relation type that produced this node.
|
| Constructor and Description |
|---|
PointerTargetNode(PointerTarget target) |
PointerTargetNode(PointerTarget target,
PointerType type) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Create a shallow clone of the object
|
java.lang.Object |
deepClone()
Create a deep clone of the object
|
boolean |
equals(java.lang.Object object)
Two PointerTargetNodes are equal if they have the same type and PointerTarget
|
PointerTarget |
getPointerTarget() |
Synset |
getSynset()
If the target is a synset, return it, otherwise it's a word
so return the word's parent synset.
|
PointerType |
getType() |
Word |
getWord()
If the target is a word, return it, otherwise return null.
|
int |
hashCode() |
boolean |
isLexical()
Returns true if the target is a Word, else false.
|
void |
setType(PointerType type) |
java.lang.String |
toString() |
private PointerTarget _target
private PointerType _type
private transient java.lang.String _cachedToString
public PointerTargetNode(PointerTarget target)
public PointerTargetNode(PointerTarget target, PointerType type)
public void setType(PointerType type)
public PointerType getType()
public PointerTarget getPointerTarget()
public boolean isLexical()
public Synset getSynset()
public Word getWord()
public boolean equals(java.lang.Object object)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.Object clone()
DeepCloneableclone in interface DeepCloneableclone in class java.lang.Objectpublic java.lang.Object deepClone()
throws java.lang.UnsupportedOperationException
DeepCloneabledeepClone in interface DeepCloneablejava.lang.UnsupportedOperationException