public class FullNameNode extends MemberAccessExpressionNode implements IIdentifierNode
IIdentifierNode.IdentifierType
IOperatorNode.ExpressionType, IOperatorNode.OperatorType
leftOperandNode, rightOperandNode
operatorStart
flags
emptyNodeArray, parent
UNKNOWN
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, stemIsPackage
create, fillInOffsets, getChild, getChildCount, getExpressionType, getLeftOperandNode, getRightOperandNode, isOperatingOnArray, resolveAssignmentType, resolveLogicalType, setChildren, setLeftOperandNode
getOperatorAbsoluteEnd, getOperatorAbsoluteStart, getOperatorEnd, getOperatorStart, isTerminal
copyForInitializer, getASScope, getBaseExpression, getDecorationNode, getDependencyType, getParentExpression, hasParenthesis, inFilter, inWith, isPackageReference, normalize, setHasParenthesis
analyze, 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, verify
getColumn, getEndColumn, getEndLine, getLine, getLineColumnString, getOffsetsString, getSourcePath, getSourcePathString, setColumn, setEnd, setEndColumn, setEndLine, setLine, setSourceLocation, setSourcePath, setStart, span, span
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
copyForInitializer, hasParenthesis, isDynamicExpression, resolve, resolveType
contains, getAncestorOfType, getChild, getChildCount, getContainingNode, getContainingScope, getFileSpecification, getPackageName, getParent, getSpanningStart, getSucceedingNode, isTerminal
getAbsoluteEnd, getAbsoluteStart, getColumn, getEnd, getEndColumn, getEndLine, getLine, getSourcePath, getStart
getLeftOperandNode, getRightOperandNode
getExpressionType, getOperatorAbsoluteEnd, getOperatorAbsoluteStart, getOperatorEnd, getOperatorStart
public 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()
IASNode
getNodeID
in interface IASNode
getNodeID
in class MemberAccessExpressionNode
protected boolean buildInnerString(StringBuilder sb)
NodeBase
buildOuterString()
.
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 OperatorNodeBase
protected FullNameNode copy()
ExpressionNodeBase
copy
in class MemberAccessExpressionNode
public String computeSimpleReference()
ExpressionNodeBase
public void setRightOperandNode(ExpressionNodeBase right)
BinaryOperatorNodeBase
setRightOperandNode
in class BinaryOperatorNodeBase
right
- ExpressionNodeBase to the right of the operatorpublic String getName()
IIdentifierNode
getName
in interface IIdentifierNode
public IIdentifierNode.IdentifierType getIdentifierType()
IIdentifierNode
getIdentifierType
in interface IIdentifierNode
IIdentifierNode.IdentifierType
Copyright © 2016 The Apache Software Foundation. All rights reserved.