public class Pointer extends Object implements Serializable
Pointer
encodes a lexical or semantic relationship between WordNet entities. A lexical
relationship holds between Words; a semantic relationship holds between Synsets. Relationships
are PointerType
, and can
be retrieved via getType
.Constructor and Description |
---|
Pointer(PointerTarget source,
int index,
PointerType pointerType,
POS targetPOS,
long targetOffset,
int targetIndex) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object) |
PointerTarget |
getSource()
Get the source of this pointer.
|
int |
getSourceIndex() |
PointerTarget |
getTarget()
Get the actual target of this pointer.
|
int |
getTargetIndex() |
long |
getTargetOffset()
Get the offset of the target within the target synset.
|
POS |
getTargetPOS() |
Synset |
getTargetSynset()
Get the synset that is a) the target of this pointer, or b) the * synset that contains the target of this pointer.
|
PointerType |
getType() |
int |
hashCode() |
boolean |
isLexical()
True if this pointer's source is a Word
|
String |
toString() |
public Pointer(PointerTarget source, int index, PointerType pointerType, POS targetPOS, long targetOffset, int targetIndex)
public int getSourceIndex()
public PointerType getType()
public boolean isLexical()
public PointerTarget getSource()
public PointerTarget getTarget() throws JWNLException
JWNLException
public Synset getTargetSynset() throws JWNLException
JWNLException
public long getTargetOffset()
public int getTargetIndex()
public POS getTargetPOS()
Copyright © 2016. All rights reserved.