public class NumericLiteralNode extends LiteralNode implements INumericLiteralNode
INumericLiteralNode.INumericValueILiteralNode.LiteralTypetype, valueflagsemptyNodeArray, parentMAX_INT_VALUE, MAX_NUMBER_VALUE, MAX_UINT_VALUE, MIN_INT_VALUE, MIN_NUMBER_VALUEUNKNOWN| Modifier | Constructor and Description |
|---|---|
|
NumericLiteralNode(ASToken t)
Constructor.
|
protected |
NumericLiteralNode(NumericLiteralNode other)
Copy constructor.
|
|
NumericLiteralNode(String text)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected NumericLiteralNode |
copy()
Copy the ExpressionNodeBase and its subtree.
|
ASTNodeID |
getNodeID()
Get the opcode of this node
|
INumericLiteralNode.INumericValue |
getNumericValue() |
boolean |
isHex() |
buildInnerString, getLiteralType, getValue, getValue, isDynamicExpression, isSynthetic, isTerminal, normalize, resolveType, setSyntheticcomputeNamespaceReference, copyForInitializer, getASScope, getBaseExpression, getDecorationNode, getDependencyType, getMName, getParentExpression, hasParenthesis, inFilter, inWith, isPackageReference, resolve, setHasParenthesisanalyze, buildStringRecursive, canContinueContainmentSearch, collectImportNodes, combineAttributes, connectedToProjectScope, contains, endAfter, endAfter, endBefore, endBefore, fillInOffsets, getAbsoluteEnd, getAbsoluteStart, getAncestorOfType, 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, waitcopyForInitializer, hasParenthesis, resolvecontains, getAncestorOfType, getChild, getChildCount, getContainingNode, getContainingScope, getFileSpecification, getPackageName, getParent, getSpanningStart, getSucceedingNodegetAbsoluteEnd, getAbsoluteStart, getColumn, getEnd, getEndColumn, getEndLine, getLine, getSourcePath, getStartpublic NumericLiteralNode(String text)
text - The text of the numeric literal.public NumericLiteralNode(ASToken t)
protected NumericLiteralNode(NumericLiteralNode other)
other - The node to copy.public ASTNodeID getNodeID()
IASNodegetNodeID in interface IASNodegetNodeID in class LiteralNodeprotected NumericLiteralNode copy()
ExpressionNodeBasecopy in class LiteralNodepublic INumericLiteralNode.INumericValue getNumericValue() throws NumberFormatException
getNumericValue in interface INumericLiteralNodeNumberFormatExceptionpublic boolean isHex()
true if the numeric literal is in hexadecimal format.Copyright © 2016 The Apache Software Foundation. All rights reserved.