Package gudusoft.gsqlparser.nodes
Class TNodeFactory
Object
gudusoft.gsqlparser.nodes.TNodeFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateColumnReference(TObjectName objectname) createColumnReference(TSourceToken objectname) createCompoundExpression(EExpressionType operatorType, TExpression leftOperand, TExpression rightOperand) createConstant(TSourceToken st, ENodeType ent) createExpression(EExpressionType operatorType) createExpression(EExpressionType operatorType, TExpression leftOperand, TExpression rightOperand) createFunctionCall(EFunctionType eFunctionType, TObjectName functionName) createNode(int nodeType) Get a node that takes no initializer arguments.final TParseTreeNodecreateNode(int nodeType, Object arg1) Get a node that takes one initializer argument.final TParseTreeNodecreateNode(int nodeType, Object arg1, Object arg2) Get a node that takes one initializer argument.final TParseTreeNodecreateNode(int nodeType, Object arg1, Object arg2, Object arg3) Get a node that takes one initializer argument.final TParseTreeNodecreateNode(int nodeType, Object arg1, Object arg2, Object arg3, Object arg4) final TParseTreeNodefinal TParseTreeNodecreateNode(int nodeType, Object arg1, Object arg2, Object arg3, Object arg4, Object arg5, Object arg6) createObjectName(EDbObjectType dbObjectType, TSourceToken schema, TSourceToken object, TSourceToken part) createObjectName(TSourceToken schema, TSourceToken object, TSourceToken part) create a database object with schema, object and part name, type of this object will be determined later in the context where it appears.createObjectNameWithPartAndObject(TSourceToken object, TSourceToken part) createObjectNameWithType(EDbObjectType dbObjectType, TSourceToken part) createObjectNameWithType(EDbObjectType dbObjectType, TSourceToken object, TSourceToken part) createObjectNameWithType(EDbObjectType dbObjectType, TSourceToken schema, TSourceToken object, TSourceToken part) createObjectReference(TObjectName objectname, int objecttype) <T> TPTNodeList<T>createPTNodeList(T c) createSimpleExpression(THiveVariable variable) createTableReference(TObjectName objectname) protected StringnodeName(int nodeType) Translate a node type to a class namevoidsetDbVendor(EDbVendor dbVendor) voidsetGsqlParser(TGSqlParser parser)
-
Constructor Details
-
TNodeFactory
public TNodeFactory() -
TNodeFactory
-
-
Method Details
-
getDbVendor
-
setDbVendor
-
setGsqlParser
-
createColumnReference
-
createColumnReference
-
createTableReference
-
createObjectReference
-
createIntervalExpression
-
createDatetimeExpression
-
createFunctionCall
-
createSelectSqlNode
-
createExpression
-
createExpression
public TParseTreeNode createExpression(EExpressionType operatorType, TExpression leftOperand, TExpression rightOperand) -
createCompoundExpression
public TParseTreeNode createCompoundExpression(EExpressionType operatorType, TExpression leftOperand, TExpression rightOperand) -
createSimpleExpression
-
createObjectNameWithType
-
createObjectNameWithType
public TObjectName createObjectNameWithType(EDbObjectType dbObjectType, TSourceToken object, TSourceToken part) -
createObjectNameWithType
public TObjectName createObjectNameWithType(EDbObjectType dbObjectType, TSourceToken schema, TSourceToken object, TSourceToken part) -
createObjectName
public TObjectName createObjectName(EDbObjectType dbObjectType, TSourceToken schema, TSourceToken object, TSourceToken part) -
createObjectName
create a database object with schema, object and part name, type of this object will be determined later in the context where it appears.- Parameters:
schema- schema name of this object.object- object name such as table, view, function and etc.part- part of object, depends on object, if object is table, then part will be column name; will be null if object is function- Returns:
-
createObjectNameWithPart
-
createObjectNameWithObject
-
createObjectNameWithPartAndObject
-
createSimpleExpression
-
createSimpleExpression
-
createSimpleExpression
-
createConstant
-
createNode
Get a node that takes no initializer arguments.- Parameters:
nodeType- Identifier for the type of node.- Returns:
- A new ParseTree node.
-
createPTNodeList
-
nodeName
Translate a node type to a class name- Parameters:
nodeType- A node type identifier
-
createNode
Get a node that takes one initializer argument.- Parameters:
nodeType- Identifier for the type of node.arg1- The initializer argument- Returns:
- A new ParseTree node.
-
createNode
Get a node that takes one initializer argument.- Parameters:
nodeType- Identifier for the type of node.arg1- The initializer argumentarg2- The initializer argument- Returns:
- A new ParseTreeNode node.
-
createNode
Get a node that takes one initializer argument.- Parameters:
nodeType- Identifier for the type of node.arg1- The initializer argumentarg2- The initializer argumentarg3- The initializer argument- Returns:
- A new ParseTreeNode node.
-
createNode
public final TParseTreeNode createNode(int nodeType, Object arg1, Object arg2, Object arg3, Object arg4) -
createNode
public final TParseTreeNode createNode(int nodeType, Object arg1, Object arg2, Object arg3, Object arg4, Object arg5) -
createNode
public final TParseTreeNode createNode(int nodeType, Object arg1, Object arg2, Object arg3, Object arg4, Object arg5, Object arg6)
-