public class DummyNode extends SourceLocation implements IASNode
UNKNOWN| Constructor and Description |
|---|
DummyNode() |
| 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.
|
boolean |
isTerminal()
Determines if this node is a terminal node, meaning it cannot have
children
|
getAbsoluteEnd, getAbsoluteStart, getColumn, getEnd, getEndColumn, getEndLine, getLine, getLineColumnString, getOffsetsString, getSourcePath, getSourcePathString, getStart, setColumn, setEnd, setEndColumn, setEndLine, setLine, setSourceLocation, setSourcePath, setStart, span, span, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAbsoluteEnd, getAbsoluteStart, getColumn, getEnd, getEndColumn, getEndLine, getLine, getSourcePath, getStartpublic ASTNodeID getNodeID()
public boolean contains(int offset)
public IASNode getAncestorOfType(Class<? extends IASNode> nodeType)
getAncestorOfType in interface IASNodenodeType - the node type for which to searchpublic IASNode getChild(int i)
public int getChildCount()
getChildCount in interface IASNodepublic IASNode getContainingNode(int offset)
getContainingNode in interface IASNodeoffset - an offestpublic IScopedNode getContainingScope()
getContainingScope in interface IASNodeIScopedNodepublic String getPackageName()
getPackageName in interface IASNodepublic IASNode getParent()
public IFileSpecification getFileSpecification()
IFileSpecification that produced this nodegetFileSpecification in interface IASNodepublic int getSpanningStart()
getSpanningStart in interface IASNodepublic IASNode getSucceedingNode(int offset)
getSucceedingNode in interface IASNodeoffset - the offset for which to searchpublic boolean isTerminal()
isTerminal in interface IASNodeCopyright © 2021 The Apache Software Foundation. All rights reserved.