Class ExpressionIdentifier


  • public final class ExpressionIdentifier
    extends Expression
    Expression that successfully parses, if a thing identifier token is found. This class is immutable.
    Author:
    Tilman Kamp - Initial contribution
    • Constructor Detail

      • ExpressionIdentifier

        public ExpressionIdentifier​(AbstractRuleBasedInterpreter interpreter)
        Constructs a new instance.
        Parameters:
        interpreter - the interpreter it belongs to. Used for dynamically fetching item name tokens
      • ExpressionIdentifier

        public ExpressionIdentifier​(AbstractRuleBasedInterpreter interpreter,
                                    Expression stopper)
        Constructs a new instance.
        Parameters:
        interpreter - the interpreter it belongs to. Used for dynamically fetching item name tokens
        stopper - Expression that should not match, if the current token should be accepted as identifier