Package games.stendhal.common.parser
Class SentenceImplementation
java.lang.Object
games.stendhal.common.ErrorBuffer
games.stendhal.common.parser.Sentence
games.stendhal.common.parser.SentenceImplementation
- All Implemented Interfaces:
ErrorDrain
,Iterable<Expression>
SentenceImplementation contains the implementation details of building Sentence objects.
- Author:
- Martin Fuchs
-
Nested Class Summary
Nested classes/interfaces inherited from class games.stendhal.common.parser.Sentence
Sentence.SentenceType
-
Field Summary
Fields inherited from class games.stendhal.common.parser.Sentence
context, expressions, originalText, sentenceType
Fields inherited from class games.stendhal.common.ErrorBuffer
errorBuffer
-
Constructor Summary
ConstructorDescriptionSentenceImplementation(Expression... exprs)
Create a SentenceImplementation object for testing purposes. -
Method Summary
Methods inherited from class games.stendhal.common.parser.Sentence
appendPunctation, diffNormalized, equalsNormalized, findMatchingName, getExpression, getExpressions, getExpressionsArrayList, getExpressionStringAfterVerb, getMatcher, getNormalized, getNumeral, getNumeral, getNumeralCount, getObject, getObjectCount, getObjectName, getObjectName, getOriginalText, getPreposition, getPrepositionCount, getSubject, getSubjectCount, getSubjectName, getTriggerExpression, getTrimmedText, getType, getUnknownTypeCount, getUnknownTypeExpression, getVerb, getVerb, getVerbCount, getVerbString, isEmpty, isIgnorable, iterator, matchesFull, matchesNormalized, matchesNormalizedStart, matchesStart, matchesStartNormalized, nextValid, parse, parseAsMatchingSource, toString
Methods inherited from class games.stendhal.common.ErrorBuffer
getErrorString, hasError, setError
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
SentenceImplementation
Create a SentenceImplementation object for testing purposes. note: This constructor does not set originalText.- Parameters:
exprs
-
-
-
Method Details
-
mergeCompoundNames
public int mergeCompoundNames()Merge compound names.- Returns:
- number of merges performed
-