public abstract class OperatorNodeBase extends ExpressionNodeBase implements IOperatorNode
IOperatorNode.ExpressionType, IOperatorNode.OperatorType| Modifier and Type | Field and Description |
|---|---|
protected int |
operatorStart
Offset where the operator starts
|
flagsemptyNodeArray, parentUNKNOWN| Modifier | Constructor and Description |
|---|---|
|
OperatorNodeBase(IASToken operator)
Constructor.
|
protected |
OperatorNodeBase(OperatorNodeBase other)
Copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
buildInnerString(StringBuilder sb)
For debugging only.
|
int |
getOperatorAbsoluteEnd()
Get the absolute offset where the operator ends
|
int |
getOperatorAbsoluteStart()
Get the absolute offset where the operator starts
|
int |
getOperatorEnd()
Get the local offset where the operator ends
|
int |
getOperatorStart()
Get the local offset where the operator starts
|
String |
getOperatorText() |
boolean |
isTerminal()
Determines if this node is a terminal node, meaning it cannot have
children
|
computeNamespaceReference, copy, copyForInitializer, getASScope, getBaseExpression, getDecorationNode, getDependencyType, getMName, getParentExpression, hasParenthesis, inFilter, inWith, isDynamicExpression, isPackageReference, normalize, resolve, resolveType, setHasParenthesisanalyze, buildStringRecursive, canContinueContainmentSearch, collectImportNodes, combineAttributes, connectedToProjectScope, contains, endAfter, endAfter, endBefore, endBefore, fillInOffsets, getAbsoluteEnd, getAbsoluteStart, getAncestorOfType, getChild, getChildCount, getContainingFilePath, getContainingNode, getContainingScope, getEnd, getFileScope, getFileSpecification, getInnerString, getNodeKind, getPackageName, getParent, getScopeNode, getSpanningStart, getStart, getSucceedingNode, getWorkspace, isTransparent, looselyContains, replaceChild, runPostProcess, setChildren, 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, waitgetExpressionType, getOperatorcopyForInitializer, hasParenthesis, isDynamicExpression, resolve, resolveTypecontains, getAncestorOfType, getChild, getChildCount, getContainingNode, getContainingScope, getFileSpecification, getNodeID, getPackageName, getParent, getSpanningStart, getSucceedingNodegetAbsoluteEnd, getAbsoluteStart, getColumn, getEnd, getEndColumn, getEndLine, getLine, getSourcePath, getStartpublic OperatorNodeBase(IASToken operator)
operator - ASToken holding the operator itselfprotected OperatorNodeBase(OperatorNodeBase other)
other - The node to copy.public boolean isTerminal()
IASNodeisTerminal in interface IASNodeisTerminal in class FixedChildrenNodeprotected 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 NodeBasepublic int getOperatorStart()
IOperatorNodegetOperatorStart in interface IOperatorNodepublic int getOperatorEnd()
IOperatorNodegetOperatorEnd in interface IOperatorNodepublic int getOperatorAbsoluteStart()
IOperatorNodegetOperatorAbsoluteStart in interface IOperatorNodepublic int getOperatorAbsoluteEnd()
IOperatorNodegetOperatorAbsoluteEnd in interface IOperatorNodepublic String getOperatorText()
Copyright © 2016 The Apache Software Foundation. All rights reserved.