Class TerminalConsumer

    • Field Detail

      • SUCCESS

        protected int SUCCESS
    • Method Detail

      • consume

        public final int consume​(java.lang.String feature,
                                 boolean isMany,
                                 boolean isBoolean,
                                 AbstractElement element,
                                 ISequenceMatcher notMatching,
                                 boolean optional)
        Description copied from interface: ITerminalConsumer
        Scan the configured input source for a consumable terminal at the current offset. If it can be found, create a configured parsed token and increase the offset of the input.
        Specified by:
        consume in interface ITerminalConsumer
      • consume

        public final int consume()
        Description copied from interface: ITerminalConsumer
        Scan the configured input source for a consumable terminal at the current offset. If it can be found, do nothing but increase the offset of the input.
        Specified by:
        consume in interface ITerminalConsumer
      • consume

        public final int consume​(ISequenceMatcher notMatching)
        Description copied from interface: ITerminalConsumer
        Scan the configured input source for a consumable terminal at the current offset. If it can be found, do nothing but increase the offset of the input.
        Specified by:
        consume in interface ITerminalConsumer
      • incOffset

        protected void incOffset()
      • readAnyChar

        protected boolean readAnyChar​(char... candidates)
      • readChar

        protected boolean readChar​(char candidate)
      • readChar

        protected boolean readChar​(ICharacterClass characterClass)
      • getChar

        protected char getChar()
      • peekChar

        protected boolean peekChar​(ICharacterClass characterClass)
      • readCharBetween

        protected boolean readCharBetween​(char min,
                                          char max)
      • readAnyChars

        protected boolean readAnyChars​(char... candidates)
      • readChars

        protected boolean readChars​(char candidate)
      • readChars

        protected boolean readChars​(ICharacterClass characterClass)
      • readCharsBetween

        protected boolean readCharsBetween​(char min,
                                           char max)
      • readString

        protected boolean readString​(java.lang.CharSequence seq)
      • readUntil

        protected boolean readUntil​(java.lang.CharSequence seq)
      • doConsume

        protected abstract int doConsume()
      • getGrammarElement

        public abstract org.eclipse.emf.ecore.EObject getGrammarElement()
      • getRuleName

        protected abstract java.lang.String getRuleName()
      • eof

        protected boolean eof()
      • mark

        protected int mark()
      • rollbackTo

        protected void rollbackTo​(int marker)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object