public class BlockNode extends ContainerNode implements IBlockNode
IContainerNode.ContainerType
EMPTY_CONTAINER
emptyNodeArray, parent
UNKNOWN
Constructor and Description |
---|
BlockNode()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
ASTNodeID |
getNodeID()
Get the opcode of this node
|
IASScope |
getScope()
Get the scope associated with this node as an IASScope
|
void |
replaceChild(NodeBase child,
NodeBase target)
Replaces the child with the given target.
|
addItem, addItemAfterNormalization, addTemporaryItem, buildInnerString, contains, getContainerType, getRemovedConditionalCompileNode, removeItem, removeTemporaryItem, setContainerType, setRemovedConditionalCompileNode
addChild, addChild, addChildInOrder, addChildPostNormalize, addTemporaryChild, getChild, getChildCount, getInitialChildCount, normalize, optimizeChildren, removeAllChildren, removeChild, removeTemporaryChild, sortChildren, swapChildren
analyze, buildStringRecursive, canContinueContainmentSearch, collectImportNodes, combineAttributes, connectedToProjectScope, endAfter, endAfter, endBefore, endBefore, fillInOffsets, getAbsoluteEnd, getAbsoluteStart, getAncestorOfType, getASScope, getContainingFilePath, getContainingNode, getContainingScope, getEnd, getFileScope, getFileSpecification, getInnerString, getNodeKind, getPackageName, getParent, getScopeNode, getSpanningStart, getStart, getSucceedingNode, getWorkspace, isTerminal, isTransparent, looselyContains, runPostProcess, setChildren, setParent, span, span, span, startAfter, startAfter, startBefore, startBefore, 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
contains, getAncestorOfType, getChild, getChildCount, getContainingNode, getContainingScope, getFileSpecification, getPackageName, getParent, getSpanningStart, getSucceedingNode, isTerminal
getAbsoluteEnd, getAbsoluteStart, getColumn, getEnd, getEndColumn, getEndLine, getLine, getSourcePath, getStart
public ASTNodeID getNodeID()
IASNode
getNodeID
in interface IASNode
getNodeID
in class ContainerNode
public void replaceChild(NodeBase child, NodeBase target)
NodeBase
replaceChild
in class TreeNode
child
- the NodeBase
to replacetarget
- the NodeBase
to replace the replacedpublic IASScope getScope()
Copyright © 2016 The Apache Software Foundation. All rights reserved.