com.sun.labs.minion.lexmorph
Class Phrase
java.lang.Object
com.sun.labs.minion.lexmorph.Phrase
- All Implemented Interfaces:
- Value
- Direct Known Subclasses:
- ATNPhraseExtractor.AdjPhrase, ATNPhraseExtractor.AdvPhrase, ATNPhraseExtractor.CityPhrase, ATNPhraseExtractor.DatePhrase, ATNPhraseExtractor.NamePhrase, ATNPhraseExtractor.NounPhrase, ATNPhraseExtractor.PlaceNamePhrase, ATNPhraseExtractor.PossPhrase, ATNPhraseExtractor.PrepPhrase, ATNPhraseExtractor.TimePhrase, ATNPhraseExtractor.TimeSpecPhrase, ATNPhraseExtractor.VerbPhrase
public class Phrase
- extends java.lang.Object
- implements Value
Constructor Summary |
Phrase()
the other forms of Value are more private so that only
make[Atom/List/Word] can make one of them
BUT we opened this one up so that "new" constructors for each
phrase type will work .... |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Phrase
public Phrase()
- the other forms of Value are more private so that only
make[Atom/List/Word] can make one of them
BUT we opened this one up so that "new" constructors for each
phrase type will work ....
listp
public boolean listp()
- Specified by:
listp
in interface Value
phrasep
public boolean phrasep()
- Specified by:
phrasep
in interface Value
wordp
public boolean wordp()
- Specified by:
wordp
in interface Value
categoryp
public boolean categoryp()
- Specified by:
categoryp
in interface Value
numericalValue
public java.lang.Number numericalValue()
- Specified by:
numericalValue
in interface Value
lexicon
public Lexicon lexicon()
isInArray
public boolean isInArray(Value[] array)
- Specified by:
isInArray
in interface Value
eq
public boolean eq(Value obj)
- Specified by:
eq
in interface Value
equal
public boolean equal(Value obj)
- Specified by:
equal
in interface Value
getWordString
public java.lang.String getWordString()
- Specified by:
getWordString
in interface Value
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
printString
public java.lang.String printString()
- Specified by:
printString
in interface Value
safePrintString
public java.lang.String safePrintString()
- Specified by:
safePrintString
in interface Value
phraseNameString
public java.lang.String phraseNameString()
- Specified by:
phraseNameString
in interface Value