Class Word
java.lang.Object
net.didion.jwnl.data.PointerTarget
net.didion.jwnl.data.Word
- All Implemented Interfaces:
Serializable
A
Word represents the lexical information related to a specific sense of an IndexWord.
Word's are linked by Pointers into a network of lexically related words.
getTargets retrieves the targets of these links, and
getPointers retrieves the pointers themselves.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intThe lexicographer id that identifies this lemma. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanTwo words are equal if their parent Synsets are equal and they have the same indexintgetIndex()Gets the index of this word.getLemma()Gets the lemma of this word.intgetLexId()Pointer[]returns all the pointers of the synset that contains this word whose source is this wordgetPOS()Gets the part of speech of this word.Gets the synset associated with this word.inthashCode()voidsetLexId(int lexId) toString()Methods inherited from class PointerTarget
getPointers, getTargets, getTargets
-
Field Details
-
lexId
protected int lexIdThe lexicographer id that identifies this lemma.
-
-
Constructor Details
-
Word
-
-
Method Details
-
getLexId
public int getLexId() -
setLexId
public void setLexId(int lexId) -
equals
Two words are equal if their parent Synsets are equal and they have the same index- Overrides:
equalsin classPointerTarget
-
hashCode
-
toString
- Specified by:
toStringin classPointerTarget
-
getSynset
-
getPOS
Gets the part of speech of this word.- Specified by:
getPOSin classPointerTarget- Returns:
- part of speech
-
getIndex
public int getIndex()Gets the index of this word.- Returns:
- index
-
getLemma
-
getPointers
returns all the pointers of the synset that contains this word whose source is this word- Specified by:
getPointersin classPointerTarget
-