public class FoldedExpressionNode extends ExpressionNodeBase implements IExpressionNode
flags
emptyNodeArray, parent
UNKNOWN
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, setHasParenthesis
analyze, 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, verify
getEndColumn, getEndLine, getLineColumnString, getOffsetsString, getSourcePath, getSourcePathString, setColumn, setEnd, setEndColumn, setEndLine, setLine, setSourceLocation, setSourcePath, setStart, span, span
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
copyForInitializer, hasParenthesis, isDynamicExpression, resolve, resolveType
getEndColumn, getEndLine, getSourcePath
public FoldedExpressionNode(IASNode rootNode)
public int getStart()
NodeBase
getStart
in interface ISourceLocation
getStart
in class NodeBase
public int getEnd()
NodeBase
getEnd
in interface ISourceLocation
getEnd
in class NodeBase
public int getLine()
SourceLocation
getLine
in interface ISourceLocation
getLine
in class SourceLocation
public int getColumn()
SourceLocation
getColumn
in interface ISourceLocation
getColumn
in class SourceLocation
public int getAbsoluteStart()
ISourceLocation
getAbsoluteStart
in interface ISourceLocation
getAbsoluteStart
in class NodeBase
public int getAbsoluteEnd()
ISourceLocation
getAbsoluteEnd
in interface ISourceLocation
getAbsoluteEnd
in class NodeBase
public ASTNodeID getNodeID()
IASNode
public boolean contains(int offset)
IASNode
public IASNode getAncestorOfType(Class<? extends IASNode> nodeType)
IASNode
getAncestorOfType
in interface IASNode
getAncestorOfType
in class NodeBase
nodeType
- the node type for which to searchpublic IASNode getChild(int i)
IASNode
public int getChildCount()
IASNode
getChildCount
in interface IASNode
getChildCount
in class NodeBase
public IASNode getContainingNode(int offset)
IASNode
getContainingNode
in interface IASNode
getContainingNode
in class NodeBase
offset
- an offestpublic IScopedNode getContainingScope()
IASNode
getContainingScope
in interface IASNode
getContainingScope
in class NodeBase
IScopedNode
public String getPackageName()
IASNode
getPackageName
in interface IASNode
getPackageName
in class NodeBase
public IASNode getParent()
IASNode
public IFileSpecification getFileSpecification()
IASNode
IFileSpecification
that produced this nodegetFileSpecification
in interface IASNode
getFileSpecification
in class NodeBase
public int getSpanningStart()
IASNode
getSpanningStart
in interface IASNode
getSpanningStart
in class NodeBase
public IASNode getSucceedingNode(int offset)
IASNode
getSucceedingNode
in interface IASNode
getSucceedingNode
in class NodeBase
offset
- the offset for which to searchpublic boolean isTerminal()
IASNode
isTerminal
in interface IASNode
isTerminal
in class FixedChildrenNode
public IASNode getUnderLyingNode()
protected ExpressionNodeBase copy()
ExpressionNodeBase
copy
in class ExpressionNodeBase
Copyright © 2016 The Apache Software Foundation. All rights reserved.