public class FullNameNode extends MemberAccessExpressionNode implements IIdentifierNode
IIdentifierNode.IdentifierTypeIOperatorNode.ExpressionType, IOperatorNode.OperatorTypeleftOperandNode, rightOperandNodeoperatorStartflagsemptyNodeArray, parentUNKNOWN| Modifier | Constructor and Description |
|---|---|
|
FullNameNode(ExpressionNodeBase left,
IASToken operator,
ExpressionNodeBase right)
Constructor.
|
protected |
FullNameNode(FullNameNode other)
Copy constructor.
|
protected |
FullNameNode(MemberAccessExpressionNode node) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
buildInnerString(StringBuilder sb)
For debugging only.
|
String |
computeSimpleReference()
Generate a simple reference - this is a String representing a name that
can be resolved with the set of open namespaces.
|
protected FullNameNode |
copy()
Copy the ExpressionNodeBase and its subtree.
|
IIdentifierNode.IdentifierType |
getIdentifierType()
Returns of the type of this identifier.
|
String |
getName()
Gets the full name of this identifier
|
ASTNodeID |
getNodeID()
Get the opcode of this node
|
void |
setRightOperandNode(ExpressionNodeBase right)
Sets the right side of the expression
|
static ExpressionNodeBase |
toMemberAccessExpressionNode(ExpressionNodeBase node)
|
computeNamespaceReference, getDisplayString, getMName, getOperator, getOperatorText, isDynamicExpression, isMemberReference, isSuper, resolve, resolveType, setStemAsPackage, stemIsPackagecreate, fillInOffsets, getChild, getChildCount, getExpressionType, getLeftOperandNode, getRightOperandNode, isOperatingOnArray, resolveAssignmentType, resolveLogicalType, setChildren, setLeftOperandNodegetOperatorAbsoluteEnd, getOperatorAbsoluteStart, getOperatorEnd, getOperatorStart, isTerminalcopyForInitializer, getASScope, getBaseExpression, getDecorationNode, getDependencyType, getParentExpression, hasParenthesis, inFilter, inWith, isPackageReference, normalize, setHasParenthesisanalyze, buildStringRecursive, canContinueContainmentSearch, collectImportNodes, combineAttributes, connectedToProjectScope, contains, endAfter, endAfter, endBefore, endBefore, getAbsoluteEnd, getAbsoluteStart, getAncestorOfType, getContainingFilePath, getContainingNode, getContainingScope, getEnd, getFileScope, getFileSpecification, getInnerString, getNodeKind, getPackageName, getParent, getScopeNode, getSpanningStart, getStart, getSucceedingNode, getWorkspace, isTransparent, looselyContains, replaceChild, runPostProcess, setParent, span, span, span, startAfter, startAfter, startBefore, startBefore, swapChildren, toString, tryGetOffsetLookup, verifygetColumn, getEndColumn, getEndLine, getLine, getLineColumnString, getOffsetsString, getSourcePath, getSourcePathString, setColumn, setEnd, setEndColumn, setEndLine, setLine, setSourceLocation, setSourcePath, setStart, span, spanclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcopyForInitializer, hasParenthesis, isDynamicExpression, resolve, resolveTypecontains, getAncestorOfType, getChild, getChildCount, getContainingNode, getContainingScope, getFileSpecification, getPackageName, getParent, getSpanningStart, getSucceedingNode, isTerminalgetAbsoluteEnd, getAbsoluteStart, getColumn, getEnd, getEndColumn, getEndLine, getLine, getSourcePath, getStartgetLeftOperandNode, getRightOperandNodegetExpressionType, getOperatorAbsoluteEnd, getOperatorAbsoluteStart, getOperatorEnd, getOperatorStartpublic FullNameNode(ExpressionNodeBase left, IASToken operator, ExpressionNodeBase right)
left - the expression on the left of the member access (the object)operator - the ASToken holding the member access operator (".")right - the expression on the right of the member access (the
member)protected FullNameNode(MemberAccessExpressionNode node)
protected FullNameNode(FullNameNode other)
other - The node to copy.public static ExpressionNodeBase toMemberAccessExpressionNode(ExpressionNodeBase node)
node is a FullNameNode, recursively convert its
subtree into MemberAccessExpressionNode. Otherwise, return
node.node - Expression node.node is a FullNameNode, the result is a
MemberAccessExpressionNode; Otherwise, node is returned
unchanged.public ASTNodeID getNodeID()
IASNodegetNodeID in interface IASNodegetNodeID in class MemberAccessExpressionNodeprotected boolean buildInnerString(StringBuilder sb)
NodeBasebuildOuterString().
It is overridden by subclasses to display optional node-specific
information in the middle of the string, between the node type and the
location information.buildInnerString in class OperatorNodeBaseprotected FullNameNode copy()
ExpressionNodeBasecopy in class MemberAccessExpressionNodepublic String computeSimpleReference()
ExpressionNodeBasepublic void setRightOperandNode(ExpressionNodeBase right)
BinaryOperatorNodeBasesetRightOperandNode in class BinaryOperatorNodeBaseright - ExpressionNodeBase to the right of the operatorpublic String getName()
IIdentifierNodegetName in interface IIdentifierNodepublic IIdentifierNode.IdentifierType getIdentifierType()
IIdentifierNodegetIdentifierType in interface IIdentifierNodeIIdentifierNode.IdentifierTypeCopyright © 2016 The Apache Software Foundation. All rights reserved.