Class TokenAdapter

  • All Implemented Interfaces:
    IToken

    public class TokenAdapter
    extends Object
    implements IToken
    Adapts Token to IToken.

    Token class is generated by javacc, this adapter allows reuse this class in different context (Parser, Compiler and FilterBuilder)

    The token class, used by the specific parser, requires to be adapted to implementing the interface IToken which is used by the CQLFilterBuilder and ECQL}.

    Warning: This component is not published. It is part of module implementation. Client module should not use this feature.

    Since:
    2.5
    Author:
    Mauricio Pazos (Axios Engineering)
    See Also:
    IToken, CQLFilterBuilder, CQLCompiler, CQLParser
    • Method Detail

      • newAdapterFor

        public static IToken newAdapterFor​(Token token)
      • toString

        public String toString()
        Specified by:
        toString in interface IToken
        Overrides:
        toString in class Object
      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface IToken
      • beginColumn

        public int beginColumn()
        Specified by:
        beginColumn in interface IToken
      • endColumn

        public int endColumn()
        Specified by:
        endColumn in interface IToken