public class NamespaceAccessExpressionNode extends BinaryOperatorNodeBase implements INamespaceAccessExpressionNode
IOperatorNode.ExpressionType, IOperatorNode.OperatorType
leftOperandNode, rightOperandNode
operatorStart
flags
emptyNodeArray, parent
UNKNOWN
Modifier | Constructor and Description |
---|---|
|
NamespaceAccessExpressionNode(ExpressionNodeBase left,
IASToken operator,
ExpressionNodeBase right)
Constructor.
|
protected |
NamespaceAccessExpressionNode(NamespaceAccessExpressionNode other)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
INamespaceReference |
computeNamespaceReference()
Generate an INamespaceReference that can serve as the namespace reference for something
like a namespace initializer.
|
protected NamespaceAccessExpressionNode |
copy()
Copy the ExpressionNodeBase and its subtree.
|
ASTNodeID |
getNodeID()
Get the opcode of this node
|
IOperatorNode.OperatorType |
getOperator()
Returns the type of the operator that is referenced from this expression
|
IDefinition |
resolve(ICompilerProject project)
If this expression is statically known to refer to a definition return a
reference to that definition.
|
ITypeDefinition |
resolveType(ICompilerProject project)
The type of the result of this expression.
|
create, fillInOffsets, getChild, getChildCount, getExpressionType, getLeftOperandNode, getRightOperandNode, isOperatingOnArray, resolveAssignmentType, resolveLogicalType, setChildren, setLeftOperandNode, setRightOperandNode
buildInnerString, getOperatorAbsoluteEnd, getOperatorAbsoluteStart, getOperatorEnd, getOperatorStart, getOperatorText, isTerminal
copyForInitializer, getASScope, getBaseExpression, getDecorationNode, getDependencyType, getMName, getParentExpression, hasParenthesis, inFilter, inWith, isDynamicExpression, 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
getLeftOperandNode, getRightOperandNode
getExpressionType, getOperatorAbsoluteEnd, getOperatorAbsoluteStart, getOperatorEnd, getOperatorStart
copyForInitializer, hasParenthesis, isDynamicExpression
contains, getAncestorOfType, getChild, getChildCount, getContainingNode, getContainingScope, getFileSpecification, getPackageName, getParent, getSpanningStart, getSucceedingNode, isTerminal
getAbsoluteEnd, getAbsoluteStart, getColumn, getEnd, getEndColumn, getEndLine, getLine, getSourcePath, getStart
public NamespaceAccessExpressionNode(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 NamespaceAccessExpressionNode(NamespaceAccessExpressionNode other)
other
- The node to copy.public ASTNodeID getNodeID()
IASNode
public IDefinition resolve(ICompilerProject project)
IExpressionNode
resolve
in interface IExpressionNode
resolve
in class ExpressionNodeBase
project
- The ICompilerProject
to use to do lookups.IDefinition
this expression refers to.public ITypeDefinition resolveType(ICompilerProject project)
IExpressionNode
resolveType
in interface IExpressionNode
resolveType
in class BinaryOperatorNodeBase
project
- The ICompilerProject
to use to do lookups.ITypeDefinition
of the type this expression results in.protected NamespaceAccessExpressionNode copy()
ExpressionNodeBase
copy
in class ExpressionNodeBase
public INamespaceReference computeNamespaceReference()
ExpressionNodeBase
computeNamespaceReference
in class ExpressionNodeBase
public IOperatorNode.OperatorType getOperator()
IOperatorNode
getOperator
in interface IOperatorNode
Copyright © 2016 The Apache Software Foundation. All rights reserved.