Interface NodeFactory
-
- All Known Implementing Classes:
NodeFactoryImpl
public interface NodeFactory
INTERNALPurpose: This interface specifies methods to create parse trees and parse tree nodes.
Responsibilities:
- Used by the EJBQLParser to create an internal representation of an EJBQL query.
- Abstract from concrete parse tree and parse tree node implementation classes.
- The parse is created in a bottom-up fashion. All methods takes any child nodes for the parse tree node to be created as arguments. It is the responsibility of the new<XXX> method to set the parent-child relationship between the returned node any any of the child nodes passed as arguments.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
NodeFactory.TrimSpecification
Trim specification constants.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object
newAbs(int line, int column, Object arg)
Object
newAll(int line, int column, Object subquery)
Object
newAnd(int line, int column, Object left, Object right)
Object
newAny(int line, int column, Object subquery)
Object
newAscOrdering(int line, int column, Object arg)
Object
newAttribute(int line, int column, String identifier)
Object
newAvg(int line, int column, boolean ditinct, Object arg)
Object
newBetween(int line, int column, boolean not, Object arg, Object lower, Object upper)
Object
newBooleanLiteral(int line, int column, Object value)
Object
newCaseClause(int line, int column, Object base, List whenClauses, Object elseClause)
Object
newCoalesceClause(int line, int column, List clauses)
Object
newCollectionMemberVariableDecl(int line, int column, Object path, String variable)
Object
newConcat(int line, int column, List objects)
Object
newConstructor(int line, int colimn, String className, List args)
Object
newCount(int line, int column, boolean ditinct, Object arg)
Object
newCurrentDate(int line, int column)
Object
newCurrentTime(int line, int column)
Object
newCurrentTimestamp(int line, int column)
Object
newDateLiteral(int line, int column, Object object)
Object
newDeleteClause(int line, int column, String schema, String variable)
Object
newDeleteStatement(int line, int column, Object delete, Object where)
Object
newDescOrdering(int line, int column, Object arg)
Object
newDivide(int line, int column, Object left, Object right)
Object
newDot(int line, int column, Object left, Object right)
Object
newDoubleLiteral(int line, int column, Object value)
Object
newEquals(int line, int column, Object left, Object right)
Object
newEscape(int line, int column, Object arg)
Object
newExists(int line, int column, boolean not, Object subquery)
Object
newFetchJoin(int line, int column, boolean outer, Object path)
Object
newFloatLiteral(int line, int column, Object value)
Object
newFromClause(int line, int column, List varDecls)
Object
newFunc(int line, int column, String name, List parameters)
Object
newGreaterThan(int line, int column, Object left, Object right)
Object
newGreaterThanEqual(int line, int column, Object left, Object right)
Object
newGroupByClause(int line, int column, List items)
Object
newHavingClause(int line, int column, Object arg)
Object
newIn(int line, int column, boolean not, Object expr, Object subquery)
Object
newIn(int line, int column, boolean not, Object expr, List items)
Object
newIndex(int line, int column, Object object)
Object
newIntegerLiteral(int line, int column, Object value)
Object
newIsEmpty(int line, int column, boolean not, Object expr)
Object
newIsNull(int line, int column, boolean not, Object expr)
Object
newJoinVariableDecl(int line, int column, boolean outer, Object path, String variable, Object downcast)
Object
newKey(int line, int column, Object left)
Object
newLength(int line, int column, Object arg)
Object
newLessThan(int line, int column, Object left, Object right)
Object
newLessThanEqual(int line, int column, Object left, Object right)
Object
newLike(int line, int column, boolean not, Object string, Object pattern, Object escape)
Object
newLocate(int line, int column, Object pattern, Object arg, Object startPos)
Object
newLongLiteral(int line, int column, Object value)
Object
newLower(int line, int column, Object arg)
Object
newMapEntry(int line, int column, Object arg)
Object
newMax(int line, int column, boolean ditinct, Object arg)
Object
newMemberOf(int line, int column, boolean not, Object expr, Object collection)
Object
newMin(int line, int column, boolean ditinct, Object arg)
Object
newMinus(int line, int column, Object left, Object right)
Object
newMod(int line, int column, Object left, Object right)
Object
newMultiply(int line, int column, Object left, Object right)
Object
newNamedParameter(int line, int colimn, String name)
Object
newNot(int line, int column, Object arg)
Object
newNotEquals(int line, int column, Object left, Object right)
Object
newNullIfClause(int line, int column, Object left, Object right)
Object
newNullLiteral(int line, int column)
Object
newOr(int line, int column, Object left, Object right)
Object
newOrderByClause(int line, int column, List items)
Object
newPlus(int line, int column, Object left, Object right)
Object
newPositionalParameter(int line, int colimn, String position)
Object
newQualifiedAttribute(int line, int column, String variable, String attribute)
Object
newRangeVariableDecl(int line, int column, String schema, String variable)
Object
newSelectClause(int line, int column, boolean distinct, List selectExprs)
Object
newSelectClause(int line, int column, boolean distinct, List selectExprs, List identifiers)
Object
newSelectStatement(int line, int column, Object select, Object from, Object where, Object groupBy, Object having, Object orderBy)
Object
newSetAssignmentClause(int line, int column, Object target, Object value)
Object
newSetClause(int line, int colimn, List assignments)
Object
newSize(int line, int column, Object arg)
Object
newSome(int line, int column, Object subquery)
Object
newSqrt(int line, int column, Object arg)
Object
newStringLiteral(int line, int column, Object value)
Object
newSubquery(int line, int column, Object select, Object from, Object where, Object groupBy, Object having)
Object
newSubstring(int line, int column, Object string, Object start, Object length)
Object
newSum(int line, int column, boolean ditinct, Object arg)
Object
newTimeLiteral(int line, int column, Object object)
Object
newTimeStampLiteral(int line, int column, Object object)
Object
newTrim(int line, int column, NodeFactory.TrimSpecification trimSpec, Object trimChar, Object string)
Object
newType(int line, int column, Object left)
Object
newUnaryMinus(int line, int column, Object arg)
Object
newUnaryPlus(int line, int column, Object arg)
Object
newUpdateClause(int line, int column, String schema, String variable)
Object
newUpdateStatement(int line, int column, Object update, Object set, Object where)
Object
newUpper(int line, int column, Object arg)
Object
newVariableAccessOrTypeConstant(int line, int column, String identifier)
Object
newVariableDecl(int line, int column, Object path, String variable)
Object
newWhenClause(int line, int column, Object conditionClause, Object theClause)
Object
newWhereClause(int line, int column, Object condition)
-
-
-
Method Detail
-
newSelectStatement
Object newSelectStatement(int line, int column, Object select, Object from, Object where, Object groupBy, Object having, Object orderBy)
-
newUpdateStatement
Object newUpdateStatement(int line, int column, Object update, Object set, Object where)
-
newSelectClause
Object newSelectClause(int line, int column, boolean distinct, List selectExprs, List identifiers)
-
newRangeVariableDecl
Object newRangeVariableDecl(int line, int column, String schema, String variable)
-
newJoinVariableDecl
Object newJoinVariableDecl(int line, int column, boolean outer, Object path, String variable, Object downcast)
-
newCollectionMemberVariableDecl
Object newCollectionMemberVariableDecl(int line, int column, Object path, String variable)
-
newVariableAccessOrTypeConstant
Object newVariableAccessOrTypeConstant(int line, int column, String identifier)
-
newQualifiedAttribute
Object newQualifiedAttribute(int line, int column, String variable, String attribute)
-
newBetween
Object newBetween(int line, int column, boolean not, Object arg, Object lower, Object upper)
-
newLike
Object newLike(int line, int column, boolean not, Object string, Object pattern, Object escape)
-
newNullLiteral
Object newNullLiteral(int line, int column)
-
newTrim
Object newTrim(int line, int column, NodeFactory.TrimSpecification trimSpec, Object trimChar, Object string)
-
newCurrentDate
Object newCurrentDate(int line, int column)
-
newCurrentTime
Object newCurrentTime(int line, int column)
-
newCurrentTimestamp
Object newCurrentTimestamp(int line, int column)
-
newSubquery
Object newSubquery(int line, int column, Object select, Object from, Object where, Object groupBy, Object having)
-
newSetAssignmentClause
Object newSetAssignmentClause(int line, int column, Object target, Object value)
-
newCaseClause
Object newCaseClause(int line, int column, Object base, List whenClauses, Object elseClause)
-
-