Uses of Class
games.stendhal.common.parser.Expression
Packages that use Expression
Package
Description
implements the NPC conversation parser.
-
Uses of Expression in games.stendhal.common.grammar
Methods in games.stendhal.common.grammar that return ExpressionModifier and TypeMethodDescriptionstatic ExpressionGrammar.mergeCompoundNoun(Expression word1, Expression word2) Merge two expressions into a compound noun.Methods in games.stendhal.common.grammar with parameters of type ExpressionModifier and TypeMethodDescriptionstatic ExpressionGrammar.mergeCompoundNoun(Expression word1, Expression word2) Merge two expressions into a compound noun. -
Uses of Expression in games.stendhal.common.parser
Fields in games.stendhal.common.parser declared as ExpressionModifier and TypeFieldDescriptionstatic final ExpressionExpression.EMPTY_EXPRESSIONInstance of an empty Expression.Fields in games.stendhal.common.parser with type parameters of type ExpressionMethods in games.stendhal.common.parser that return ExpressionModifier and TypeMethodDescriptionstatic ExpressionConversationParser.createTriggerExpression(String text) Create trigger expression to match the parsed user input in the FSM engine.static ExpressionConversationParser.createTriggerExpression(String text, ExpressionMatcher matcher) Create trigger expression to match the parsed user input in the FSM engine.final ExpressionTriggerList.find(Expression expr) Search for the given expression in the list.Sentence.getExpression(int idx, String typePrefix) Return verb [i] of the sentence.protected Expression[]Sentence.getExpressionsArrayList()Return an array of the expressions.Sentence.getNumeral()Return the single numeral of the parsed sentence.Sentence.getNumeral(int i) Return numeral [i] of the parsed sentence.Sentence.getObject(int i) Return object [i] of the parsed sentence (e.g.Sentence.getPreposition(int i) Return the preposition [i] of the parsed sentence.Sentence.getSubject(int i) Return subject [i] of the sentence.Sentence.getTriggerExpression()Return trigger Expression for the FSM engine.Sentence.getUnknownTypeExpression(int idx) Return unknown word [i] of the sentence.Sentence.getVerb()Return verb as Expression object for the special case of sentences with only one verb.Sentence.getVerb(int i) Return verb [i] of the sentence.Sentence.nextValid(Iterator<Expression> it) Advance the iterator and return the next non-ignorable Expression.Methods in games.stendhal.common.parser that return types with arguments of type ExpressionModifier and TypeMethodDescriptionSentence.getExpressions()Return the list of expressions.Sentence.iterator()Return an iterator over all expressions.Methods in games.stendhal.common.parser with parameters of type ExpressionModifier and TypeMethodDescriptionfinal ExpressionTriggerList.find(Expression expr) Search for the given expression in the list.protected booleanSentence.isIgnorable(Expression expr) Check if the given Expression should be ignored.booleanExpressionMatcher.match(Expression expr1, Expression expr2) Match two Expressions using the mode in matchingFlags.booleanExpression.matches(Expression other) Check if two Expressions match exactly.booleanExpression.matchesNormalized(Expression other) Check if two Expressions match each other.booleanExpression.matchesNormalizedSimilar(Expression other) Check if the Expression is similar to another Expression.voidExpression.mergeLeft(Expression prec, boolean mergeNormalized) Merge the given preceding Expression into this Expression, while leaving mainWord unchanged.voidExpression.mergeName(Expression next, ExpressionType newType) Merge the given following name component into this Expression.voidExpression.mergeRight(Expression other, boolean mergeNormalized) Merge the given following Expression into this Expression, while leaving mainWord unchanged.voidExpression.mergeSimple(Expression other) Merge the given preceding Expression into this Expression while leaving mainWord unchanged.The members normalized and original are only touched when negating the expression.booleanNameSearch.search(Expression item) Searches for item to match the given Expression.Method parameters in games.stendhal.common.parser with type arguments of type ExpressionModifier and TypeMethodDescriptionintSentenceBuilder.appendUntilBreak(Iterator<Expression> it) Append a sequence of Expressions until we find a break flag or there is no more Expression.booleanCompoundName.matches(AbstractList<Expression> expressions, int idx) Compare this compound name with the words in the expressions list starting at index idx.Sentence.nextValid(Iterator<Expression> it) Advance the iterator and return the next non-ignorable Expression.WordList.searchCompoundName(AbstractList<Expression> expressions, int idx) Search for compound names.Constructors in games.stendhal.common.parser with parameters of type ExpressionModifierConstructorDescriptionSentenceImplementation(Expression... exprs) Create a SentenceImplementation object for testing purposes. -
Uses of Expression in games.stendhal.server.entity.npc.fsm
Methods in games.stendhal.server.entity.npc.fsm that return types with arguments of type ExpressionModifier and TypeMethodDescriptionTransition.getTriggers()TransitionList.getTriggersForState(ConversationStates state) returns a set of triggers for a given source state.Methods in games.stendhal.server.entity.npc.fsm with parameters of type ExpressionModifier and TypeMethodDescriptionTransitionList.getTransitionsForStateAndTrigger(ConversationStates state, Expression trigger) returns a list of transitions for this state-trigger pair.booleanTransition.matches(ConversationStates state, Expression trigger) Checks whether this transition is possible now.booleanTransition.matchesNormalized(ConversationStates state, Expression trigger) Checks whether this transition is possible now by using matching of the normalized expression.booleanTransition.matchesNormalizedWithCondition(ConversationStates state, Expression trigger, PreTransitionCondition condition) Checks for normalized match with the given state/trigger/condition combination.booleanTransition.matchesWithCondition(ConversationStates state, Expression trigger, PreTransitionCondition condition) Checks for match with the given state/trigger/condition combination.Method parameters in games.stendhal.server.entity.npc.fsm with type arguments of type ExpressionModifier and TypeMethodDescriptionvoidEngine.add(Collection<Expression> triggerExpressions, ConversationStates state, ChatCondition condition, boolean secondary, ConversationStates nextState, String reply, ChatAction action) Adds a new set of transitions to the FSM.voidEngine.add(Collection<Expression> triggerExpressions, ConversationStates state, ChatCondition condition, boolean secondary, ConversationStates nextState, String reply, ChatAction action, String label) Adds a new set of transitions to the FSM.Constructor parameters in games.stendhal.server.entity.npc.fsm with type arguments of type ExpressionModifierConstructorDescriptionTransition(ConversationStates currentState, Collection<Expression> triggers, PreTransitionCondition condition, boolean secondary, ConversationStates nextState, String reply, PostTransitionAction action) Creates a new transition.Transition(ConversationStates currentState, Collection<Expression> triggers, PreTransitionCondition condition, boolean secondary, ConversationStates nextState, String reply, PostTransitionAction action, String label) Creates a new transition.