org.geotools.filter.text.commons
Class TokenAdapter
Object
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
- Module:
modules/library/cql (gt-cql.jar)
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
next
public IToken next()
- Specified by:
next
in interface IToken
beginColumn
public int beginColumn()
- Specified by:
beginColumn
in interface IToken
endColumn
public int endColumn()
- Specified by:
endColumn
in interface IToken
getAdapted
public Token getAdapted()
- Specified by:
getAdapted
in interface IToken
Copyright © 1996-2009 Geotools. All Rights Reserved.