public class ModifierNode extends FixedChildrenNode implements IModifierNode
emptyNodeArray, parent
UNKNOWN
Constructor and Description |
---|
ModifierNode(IASToken keyword)
Constructor.
|
ModifierNode(String keyword)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
buildInnerString(StringBuilder sb)
For debugging only.
|
ASModifier |
getModifier()
Gets the modifier as an
ASModifier . |
String |
getModifierString()
Gets the modifier as a
String . |
ASTNodeID |
getNodeID()
Get the opcode of this node
|
void |
normalize(boolean fillInOffsets)
Normalize the tree.
|
isTerminal
analyze, buildStringRecursive, canContinueContainmentSearch, collectImportNodes, combineAttributes, connectedToProjectScope, contains, endAfter, endAfter, endBefore, endBefore, fillInOffsets, getAbsoluteEnd, getAbsoluteStart, getAncestorOfType, getASScope, getChild, getChildCount, getContainingFilePath, getContainingNode, getContainingScope, getEnd, getFileScope, getFileSpecification, getInnerString, getNodeKind, getPackageName, getParent, getScopeNode, getSpanningStart, getStart, getSucceedingNode, getWorkspace, isTransparent, looselyContains, replaceChild, runPostProcess, setChildren, setParent, span, span, span, startAfter, startAfter, startBefore, startBefore, swapChildren, 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 ModifierNode(IASToken keyword)
keyword
- The token representing the modifier.public ModifierNode(String keyword)
keyword
- The token representing the modifier.public ASTNodeID getNodeID()
IASNode
public void normalize(boolean fillInOffsets)
NodeBase
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 NodeBase
public ASModifier getModifier()
IModifierNode
ASModifier
.getModifier
in interface IModifierNode
ASModifier
such as ASModifier.FINAL
.public String getModifierString()
IModifierNode
String
.getModifierString
in interface IModifierNode
String
such as "final"
.Copyright © 2016 The Apache Software Foundation. All rights reserved.