public class NamespaceAccessExpressionNode extends BinaryOperatorNodeBase implements INamespaceAccessExpressionNode
IOperatorNode.ExpressionType, IOperatorNode.OperatorTypeleftOperandNode, rightOperandNodeoperatorStartflagsemptyNodeArray, parentUNKNOWN| 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, setRightOperandNodebuildInnerString, getOperatorAbsoluteEnd, getOperatorAbsoluteStart, getOperatorEnd, getOperatorStart, getOperatorText, isTerminalcopyForInitializer, getASScope, getBaseExpression, getDecorationNode, getDependencyType, getMName, getParentExpression, hasParenthesis, inFilter, inWith, isDynamicExpression, 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, waitgetLeftOperandNode, getRightOperandNodegetExpressionType, getOperatorAbsoluteEnd, getOperatorAbsoluteStart, getOperatorEnd, getOperatorStartcopyForInitializer, hasParenthesis, isDynamicExpressioncontains, getAncestorOfType, getChild, getChildCount, getContainingNode, getContainingScope, getFileSpecification, getPackageName, getParent, getSpanningStart, getSucceedingNode, isTerminalgetAbsoluteEnd, getAbsoluteStart, getColumn, getEnd, getEndColumn, getEndLine, getLine, getSourcePath, getStartpublic 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()
IASNodepublic IDefinition resolve(ICompilerProject project)
IExpressionNoderesolve in interface IExpressionNoderesolve in class ExpressionNodeBaseproject - The ICompilerProject to use to do lookups.IDefinition this expression refers to.public ITypeDefinition resolveType(ICompilerProject project)
IExpressionNoderesolveType in interface IExpressionNoderesolveType in class BinaryOperatorNodeBaseproject - The ICompilerProject to use to do lookups.ITypeDefinition of the type this expression results in.protected NamespaceAccessExpressionNode copy()
ExpressionNodeBasecopy in class ExpressionNodeBasepublic INamespaceReference computeNamespaceReference()
ExpressionNodeBasecomputeNamespaceReference in class ExpressionNodeBasepublic IOperatorNode.OperatorType getOperator()
IOperatorNodegetOperator in interface IOperatorNodeCopyright © 2016 The Apache Software Foundation. All rights reserved.