public class TObjectAccess extends TParseTreeNode
Syntax:
objectExpr.[attribute|method()]+
objectExpr can be a qualified name or function call or expression or subquery:
attributeOrMethods
qualified name: part1.part2.method(), if part1 is a table, then part2 is a column. Otherwise, if part1 is a column, then part2 is an attribute
qualified name: part1.part2.part3.method(), if part1 is a table, then part2 is a column, part3 is an attribute. Otherwise, if part1 is a column, then part2, part3 are attributes
qualified name: part1.part2.[part3]+.method(), if part1 is a table, then part2 is a column, part3 is an attribute. Otherwise, if part1 is a column, then part2, part3 are attributes
dbvendor, doubleLinkedTokenListToString, nodeActionAppend, nodeActionInsert, nodeActionRemove, nodeActionUnknown, nodeActionUpdate, nodeActionUpdateText, nodeChangeEndToken, nodeChangeStartToken
Constructor and Description |
---|
TObjectAccess() |
Modifier and Type | Method and Description |
---|---|
void |
accept(TParseTreeVisitor v)
Accept a visitor
|
void |
acceptChildren(TParseTreeVisitor v)
Accept a visitor to iterate this class and sub-nodes of this class
|
ArrayList<TAttributeOrMethod> |
getAttributeOrMethods() |
TObjectNameList |
getAttributes() |
TFunctionCall |
getMethod() |
TExpression |
getObjectExpr() |
void |
init(Object arg1,
Object arg2) |
void |
init(Object arg1,
Object arg2,
Object arg3) |
void |
setAttributes(TObjectNameList attributes) |
void |
setMethod(TFunctionCall method) |
void |
setObjectExpr(TExpression objectExpr) |
addAllMyTokensToTokenList, addToTokenChain, appendNewNode, calculateTokenCount, doAppendNewNode, doParse, fastSetString, getAnchorNode, getColumnNo, getCommentAfterNode, getCommentBeforeNode, getCompactString, getDummyTag, getEndToken, getEvaluateDatatype, getEvalValue, getGsqlparser, getLineNo, getLocation, getMd5, getNodeStatus, getNodeType, getParentObjectName, getPlainText, getStartToken, getTokenCount, hasNext, init, init, init, init, insertAfterAToken, insertNewNodeBeforeMe, isChanged, isTokensInChain, next, refreshAllNodesTokenCount, remove, removeAllMyTokensFromTokenList, removeTokens, removeTokensBetweenNodes, removeTokensBetweenToken, replaceWithNewNode, resetIterator, setAnchorNode, setChanged, setDummyTag, setEndToken, setEndToken, setEndToken, setEndToken, setEndToken, setEndTokenDirectly, setEvaluateDatatype, setEvalValue, setGsqlparser, setIncludingComment, setLocation, setNewSubNode, setNodeStatus, setNodeType, setParent, setPlainText, setStartToken, setStartToken, setStartToken, setStartToken, setStartTokenDirectly, setString, setString2, subNodeInNode, toScript, toString, toString2
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEachRemaining
public TObjectAccess()
public TObjectNameList getAttributes()
public TFunctionCall getMethod()
public TExpression getObjectExpr()
public ArrayList<TAttributeOrMethod> getAttributeOrMethods()
public void init(Object arg1, Object arg2)
init
in class TParseTreeNode
public void init(Object arg1, Object arg2, Object arg3)
init
in class TParseTreeNode
public void setObjectExpr(TExpression objectExpr)
public void setMethod(TFunctionCall method)
public void setAttributes(TObjectNameList attributes)
public void accept(TParseTreeVisitor v)
TParseTreeNode
accept
in interface Visitable
accept
in class TParseTreeNode
v
- visitor is a descendant class of TParseTreeVisitor
public void acceptChildren(TParseTreeVisitor v)
TParseTreeNode
acceptChildren
in interface Visitable
acceptChildren
in class TParseTreeNode
v
- visitor is a descendant class of TParseTreeVisitor