public final class ConfigConditionBlockNode extends BlockNode
CONFIG::DEBUG { import my.debug.classes.*; }
IContainerNode.ContainerType
EMPTY_CONTAINER
emptyNodeArray, parent
UNKNOWN
Constructor and Description |
---|
ConfigConditionBlockNode(boolean enabled)
Create a enabled or disabled configuration config block.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
buildInnerString(StringBuilder sb)
For debugging only.
|
int |
getChildCount()
Disabled configuration condition block doesn't have children.
|
ASTNodeID |
getNodeID()
Get the opcode of this node
|
getScope, replaceChild
addItem, addItemAfterNormalization, addTemporaryItem, contains, getContainerType, getRemovedConditionalCompileNode, removeItem, removeTemporaryItem, setContainerType, setRemovedConditionalCompileNode
addChild, addChild, addChildInOrder, addChildPostNormalize, addTemporaryChild, getChild, 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, getContainingNode, getContainingScope, getFileSpecification, getPackageName, getParent, getSpanningStart, getSucceedingNode, isTerminal
getAbsoluteEnd, getAbsoluteStart, getColumn, getEnd, getEndColumn, getEndLine, getLine, getSourcePath, getStart
public ConfigConditionBlockNode(boolean enabled)
enabled
- True if the configuration condition evaluates to true.public int getChildCount()
getChildCount
in interface IASNode
getChildCount
in class TreeNode
protected boolean buildInnerString(StringBuilder sb)
NodeBase
buildOuterString()
.
It is overridden by subclasses to display optional node-specific
information in the middle of the string, between the node type and the
location information.buildInnerString
in class ContainerNode
Copyright © 2016 The Apache Software Foundation. All rights reserved.