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
|
flags
emptyNodeArray, parent
UNKNOWN
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, setHasParenthesis
analyze, 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, 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
getExpressionType, getOperator
copyForInitializer, hasParenthesis, isDynamicExpression, resolve, resolveType
contains, getAncestorOfType, getChild, getChildCount, getContainingNode, getContainingScope, getFileSpecification, getNodeID, getPackageName, getParent, getSpanningStart, getSucceedingNode
getAbsoluteEnd, getAbsoluteStart, getColumn, getEnd, getEndColumn, getEndLine, getLine, getSourcePath, getStart
public OperatorNodeBase(IASToken operator)
operator
- ASToken holding the operator itselfprotected OperatorNodeBase(OperatorNodeBase other)
other
- The node to copy.public boolean isTerminal()
IASNode
isTerminal
in interface IASNode
isTerminal
in class FixedChildrenNode
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 NodeBase
public int getOperatorStart()
IOperatorNode
getOperatorStart
in interface IOperatorNode
public int getOperatorEnd()
IOperatorNode
getOperatorEnd
in interface IOperatorNode
public int getOperatorAbsoluteStart()
IOperatorNode
getOperatorAbsoluteStart
in interface IOperatorNode
public int getOperatorAbsoluteEnd()
IOperatorNode
getOperatorAbsoluteEnd
in interface IOperatorNode
public String getOperatorText()
Copyright © 2016 The Apache Software Foundation. All rights reserved.