Package org.apache.calcite.sql.parser
Class SqlParserUtil.OldTokenSequenceImpl
- java.lang.Object
-
- org.apache.calcite.sql.parser.SqlParserUtil.OldTokenSequenceImpl
-
- All Implemented Interfaces:
SqlSpecialOperator.TokenSequence
- Enclosing class:
- SqlParserUtil
private static class SqlParserUtil.OldTokenSequenceImpl extends java.lang.Object implements SqlSpecialOperator.TokenSequence
Implementation ofSqlSpecialOperator.TokenSequence
.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.List<java.lang.Object>
list
-
Constructor Summary
Constructors Modifier Constructor Description private
OldTokenSequenceImpl(java.util.List<java.lang.Object> list)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isOp(int i)
SqlNode
node(int i)
SqlOperator
op(int i)
PrecedenceClimbingParser
parser(int start, java.util.function.Predicate<PrecedenceClimbingParser.Token> predicate)
Creates a parser whose token sequence is a copy of a subset of this token sequence.SqlParserPos
pos(int i)
void
replaceSublist(int start, int end, SqlNode e)
int
size()
-
-
-
Method Detail
-
parser
public PrecedenceClimbingParser parser(int start, java.util.function.Predicate<PrecedenceClimbingParser.Token> predicate)
Description copied from interface:SqlSpecialOperator.TokenSequence
Creates a parser whose token sequence is a copy of a subset of this token sequence.- Specified by:
parser
in interfaceSqlSpecialOperator.TokenSequence
-
size
public int size()
- Specified by:
size
in interfaceSqlSpecialOperator.TokenSequence
-
op
public SqlOperator op(int i)
- Specified by:
op
in interfaceSqlSpecialOperator.TokenSequence
-
pos
public SqlParserPos pos(int i)
- Specified by:
pos
in interfaceSqlSpecialOperator.TokenSequence
-
isOp
public boolean isOp(int i)
- Specified by:
isOp
in interfaceSqlSpecialOperator.TokenSequence
-
node
public SqlNode node(int i)
- Specified by:
node
in interfaceSqlSpecialOperator.TokenSequence
-
replaceSublist
public void replaceSublist(int start, int end, SqlNode e)
- Specified by:
replaceSublist
in interfaceSqlSpecialOperator.TokenSequence
-
-