public class FoldedExpressionNode extends ExpressionNodeBase implements IExpressionNode
flagsemptyNodeArray, parentUNKNOWN| Constructor and Description |
|---|
FoldedExpressionNode(IASNode rootNode) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(int offset)
Determine whether the offset fits within this node.
|
protected ExpressionNodeBase |
copy()
Copy the ExpressionNodeBase and its subtree.
|
int |
getAbsoluteEnd()
Gets the absolute starting offset.
|
int |
getAbsoluteStart()
Gets the absolute starting offset.
|
IASNode |
getAncestorOfType(Class<? extends IASNode> nodeType)
Get the nearest ancestor of this node that has the specified type.
|
IASNode |
getChild(int i)
Get a particular child of this node
|
int |
getChildCount()
Get the number of children
|
int |
getColumn()
Get the column number where this node starts.
|
IASNode |
getContainingNode(int offset)
Gets the child node that contains the offset
|
IScopedNode |
getContainingScope()
Gets the containing scope for this node
|
int |
getEnd()
Get the node's local end offset.
|
IFileSpecification |
getFileSpecification()
Get the
IFileSpecification that produced this node |
int |
getLine()
Get the line number where this node starts.
|
ASTNodeID |
getNodeID()
Get the opcode of this node
|
String |
getPackageName()
Get package name that applies to this node.
|
IASNode |
getParent()
Get the parent of this node
|
int |
getSpanningStart()
Gets the local offset where the node starts, including any extra items that may
change the appearance of the node's start.
|
int |
getStart()
Get the node's local start offset.
|
IASNode |
getSucceedingNode(int offset)
Get the first node that succeeds the offset (i.e. which starts after the
offset).
|
IASNode |
getUnderLyingNode() |
boolean |
isTerminal()
Determines if this node is a terminal node, meaning it cannot have
children
|
computeNamespaceReference, copyForInitializer, getASScope, getBaseExpression, getDecorationNode, getDependencyType, getMName, getParentExpression, hasParenthesis, inFilter, inWith, isDynamicExpression, isPackageReference, normalize, resolve, resolveType, setHasParenthesisanalyze, buildInnerString, buildStringRecursive, canContinueContainmentSearch, collectImportNodes, combineAttributes, connectedToProjectScope, endAfter, endAfter, endBefore, endBefore, fillInOffsets, getContainingFilePath, getFileScope, getInnerString, getNodeKind, getScopeNode, getWorkspace, isTransparent, looselyContains, replaceChild, runPostProcess, setChildren, setParent, span, span, span, startAfter, startAfter, startBefore, startBefore, swapChildren, toString, tryGetOffsetLookup, verifygetEndColumn, getEndLine, getLineColumnString, getOffsetsString, getSourcePath, getSourcePathString, setColumn, setEnd, setEndColumn, setEndLine, setLine, setSourceLocation, setSourcePath, setStart, span, spanclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcopyForInitializer, hasParenthesis, isDynamicExpression, resolve, resolveTypegetEndColumn, getEndLine, getSourcePathpublic FoldedExpressionNode(IASNode rootNode)
public int getStart()
NodeBasegetStart in interface ISourceLocationgetStart in class NodeBasepublic int getEnd()
NodeBasegetEnd in interface ISourceLocationgetEnd in class NodeBasepublic int getLine()
SourceLocationgetLine in interface ISourceLocationgetLine in class SourceLocationpublic int getColumn()
SourceLocationgetColumn in interface ISourceLocationgetColumn in class SourceLocationpublic int getAbsoluteStart()
ISourceLocationgetAbsoluteStart in interface ISourceLocationgetAbsoluteStart in class NodeBasepublic int getAbsoluteEnd()
ISourceLocationgetAbsoluteEnd in interface ISourceLocationgetAbsoluteEnd in class NodeBasepublic ASTNodeID getNodeID()
IASNodepublic boolean contains(int offset)
IASNodepublic IASNode getAncestorOfType(Class<? extends IASNode> nodeType)
IASNodegetAncestorOfType in interface IASNodegetAncestorOfType in class NodeBasenodeType - the node type for which to searchpublic IASNode getChild(int i)
IASNodepublic int getChildCount()
IASNodegetChildCount in interface IASNodegetChildCount in class NodeBasepublic IASNode getContainingNode(int offset)
IASNodegetContainingNode in interface IASNodegetContainingNode in class NodeBaseoffset - an offestpublic IScopedNode getContainingScope()
IASNodegetContainingScope in interface IASNodegetContainingScope in class NodeBaseIScopedNodepublic String getPackageName()
IASNodegetPackageName in interface IASNodegetPackageName in class NodeBasepublic IASNode getParent()
IASNodepublic IFileSpecification getFileSpecification()
IASNodeIFileSpecification that produced this nodegetFileSpecification in interface IASNodegetFileSpecification in class NodeBasepublic int getSpanningStart()
IASNodegetSpanningStart in interface IASNodegetSpanningStart in class NodeBasepublic IASNode getSucceedingNode(int offset)
IASNodegetSucceedingNode in interface IASNodegetSucceedingNode in class NodeBaseoffset - the offset for which to searchpublic boolean isTerminal()
IASNodeisTerminal in interface IASNodeisTerminal in class FixedChildrenNodepublic IASNode getUnderLyingNode()
protected ExpressionNodeBase copy()
ExpressionNodeBasecopy in class ExpressionNodeBaseCopyright © 2016 The Apache Software Foundation. All rights reserved.