public interface IASNode extends ISourceLocation
UNKNOWN
Modifier and Type | Method and Description |
---|---|
boolean |
contains(int offset)
Determine whether the offset fits within this node.
|
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
|
IASNode |
getContainingNode(int offset)
Gets the child node that contains the offset
|
IScopedNode |
getContainingScope()
Gets the containing scope for this node
|
IFileSpecification |
getFileSpecification()
Get the
IFileSpecification that produced this node |
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.
|
IASNode |
getSucceedingNode(int offset)
Get the first node that succeeds the offset (i.e. which starts after the
offset).
|
boolean |
isTerminal()
Determines if this node is a terminal node, meaning it cannot have
children
|
getAbsoluteEnd, getAbsoluteStart, getColumn, getEnd, getEndColumn, getEndLine, getLine, getSourcePath, getStart
ASTNodeID getNodeID()
boolean contains(int offset)
offset
- the offset to testIASNode getAncestorOfType(Class<? extends IASNode> nodeType)
nodeType
- the node type for which to searchIASNode getChild(int i)
i
- the child's indexint getChildCount()
IASNode getContainingNode(int offset)
offset
- an offestIScopedNode getContainingScope()
IScopedNode
String getPackageName()
IASNode getParent()
IFileSpecification getFileSpecification()
IFileSpecification
that produced this nodeint getSpanningStart()
IASNode getSucceedingNode(int offset)
offset
- the offset for which to searchboolean isTerminal()
Copyright © 2016 The Apache Software Foundation. All rights reserved.