public class ModifierNode extends FixedChildrenNode implements IModifierNode
emptyNodeArray, parentUNKNOWN| 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.
|
isTerminalanalyze, 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, verifygetColumn, getEndColumn, getEndLine, getLine, getLineColumnString, getOffsetsString, getSourcePath, getSourcePathString, setColumn, setEnd, setEndColumn, setEndLine, setLine, setSourceLocation, setSourcePath, setStart, span, spanclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcontains, getAncestorOfType, getChild, getChildCount, getContainingNode, getContainingScope, getFileSpecification, getPackageName, getParent, getSpanningStart, getSucceedingNode, isTerminalgetAbsoluteEnd, getAbsoluteStart, getColumn, getEnd, getEndColumn, getEndLine, getLine, getSourcePath, getStartpublic ModifierNode(IASToken keyword)
keyword - The token representing the modifier.public ModifierNode(String keyword)
keyword - The token representing the modifier.public ASTNodeID getNodeID()
IASNodepublic void normalize(boolean fillInOffsets)
NodeBaseprotected boolean buildInnerString(StringBuilder sb)
NodeBasebuildOuterString().
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 NodeBasepublic ASModifier getModifier()
IModifierNodeASModifier.getModifier in interface IModifierNodeASModifier such as ASModifier.FINAL.public String getModifierString()
IModifierNodeString.getModifierString in interface IModifierNodeString such as "final".Copyright © 2016 The Apache Software Foundation. All rights reserved.