Class GQLLexer

  • All Implemented Interfaces:
    java.lang.Iterable<GQLToken>

    public class GQLLexer
    extends net.morimekta.util.lexer.Lexer<GQLTokenType,​GQLToken>
    • Constructor Summary

      Constructors 
      Constructor Description
      GQLLexer​(java.io.Reader reader)
      Create a lexer instance using a specific tokenizer.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      GQLToken getLastToken()  
      GQLToken next()  
      • Methods inherited from class net.morimekta.util.lexer.Lexer

        eofFailure, expect, expect, expect, expectSymbol, failure, hasNext, iterator, peek, peek, readUntil, toString
      • 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 Detail

      • GQLLexer

        public GQLLexer​(java.io.Reader reader)
        Create a lexer instance using a specific tokenizer.
        Parameters:
        reader - Reader to read graphql from.
    • Method Detail

      • next

        @Nullable
        public GQLToken next()
                      throws java.io.IOException
        Overrides:
        next in class net.morimekta.util.lexer.Lexer<GQLTokenType,​GQLToken>
        Throws:
        java.io.IOException
      • getLastToken

        public GQLToken getLastToken()