public class NumericLiteralNode extends LiteralNode implements INumericLiteralNode
INumericLiteralNode.INumericValue
ILiteralNode.LiteralType
type, value
flags
emptyNodeArray, parent
MAX_INT_VALUE, MAX_NUMBER_VALUE, MAX_UINT_VALUE, MIN_INT_VALUE, MIN_NUMBER_VALUE
UNKNOWN
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, setSynthetic
computeNamespaceReference, copyForInitializer, getASScope, getBaseExpression, getDecorationNode, getDependencyType, getMName, getParentExpression, hasParenthesis, inFilter, inWith, isPackageReference, resolve, setHasParenthesis
analyze, 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, 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
copyForInitializer, hasParenthesis, resolve
contains, getAncestorOfType, getChild, getChildCount, getContainingNode, getContainingScope, getFileSpecification, getPackageName, getParent, getSpanningStart, getSucceedingNode
getAbsoluteEnd, getAbsoluteStart, getColumn, getEnd, getEndColumn, getEndLine, getLine, getSourcePath, getStart
public 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()
IASNode
getNodeID
in interface IASNode
getNodeID
in class LiteralNode
protected NumericLiteralNode copy()
ExpressionNodeBase
copy
in class LiteralNode
public INumericLiteralNode.INumericValue getNumericValue() throws NumberFormatException
getNumericValue
in interface INumericLiteralNode
NumberFormatException
public boolean isHex()
true
if the numeric literal is in hexadecimal format.Copyright © 2016 The Apache Software Foundation. All rights reserved.