|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object isql.builder.ExpressionBuilder
public abstract class ExpressionBuilder
From the parsed expressions (in the select part or in the where part of the SQL statement) extracts expression trees that can be used to calculate the result set
Constructor Summary | |
---|---|
ExpressionBuilder(ColumnValues values)
Constructor |
Method Summary | |
---|---|
IConstant |
buildConstant(ISQLSelectParser.IConstant constant)
Builds a constant object from an ANTLR parsed constant (t can be a numeric, text, date, boolean) |
IExpression |
buildExpression(ISQLSelectParser.IExpression expression)
The main method to extract the expression tree from an ANTLR parsed expression. |
static ColumnKey |
buildTableColumn(ISQLSelectParser.TableColumn tableColumn)
Builds a table column object from the column identifier coming from ANTLR |
static java.sql.Timestamp |
fromPartialString(java.lang.String partial)
extracts a date (Timestamp) from a date string |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExpressionBuilder(ColumnValues values)
values
- the columns built from the arrays matching the select itemsMethod Detail |
---|
public IExpression buildExpression(ISQLSelectParser.IExpression expression) throws ISQLException
expression
- the ANTLR expression
ISQLException
public static ColumnKey buildTableColumn(ISQLSelectParser.TableColumn tableColumn)
tableColumn
- the ANTLR column identifier
public IConstant buildConstant(ISQLSelectParser.IConstant constant) throws java.lang.AssertionError, ISQLException
constant
- the constant coming from ANTLR
java.lang.AssertionError
ISQLException
public static java.sql.Timestamp fromPartialString(java.lang.String partial) throws java.lang.IllegalArgumentException
partial
- the date string
java.lang.IllegalArgumentException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |