public class IntegerNumberImpl extends ConstraintImpl implements IIntegerNumber
childIndex, parent, startIndex, stopIndex, tokenNEWLINE| Constructor and Description |
|---|
IntegerNumberImpl(org.antlr.runtime.Token token) |
| Modifier and Type | Method and Description |
|---|---|
String |
dump(int indent)
Dump the AST and its children for debugging purposes
|
int |
getNumber()
Return the number.
|
BigInteger |
getNumberAsBigInteger()
Return the number as a
. |
getNRLDataType, setNRLDataTypeaccept, doIndent, getColumn, getLine, getUserData, initialisePositionFromChild, setColumn, setLine, setUserDatadupNode, getCharPositionInLine, getChildIndex, getParent, getText, getToken, getTokenStartIndex, getTokenStopIndex, getType, isNil, setChildIndex, setParent, setTokenStartIndex, setTokenStopIndex, setUnknownTokenBoundaries, toStringaddChild, addChildren, createChildrenList, deleteChild, freshenParentAndChildIndexes, freshenParentAndChildIndexes, getAncestor, getAncestors, getChild, getChildCount, getChildren, getFirstChildWithType, hasAncestor, replaceChildren, sanityCheckParentAndChildIndexes, sanityCheckParentAndChildIndexes, setChild, toStringTreeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetNRLDataType, setNRLDataTypeaccept, getColumn, getLine, getUserData, setUserDatapublic String dump(int indent)
INRLAstNodedump in interface INRLAstNodedump in class Antlr3NRLBaseAstindent - the indentation count, 0 on first callpublic int getNumber()
IIntegerNumbergetNumber in interface IIntegerNumberpublic BigInteger getNumberAsBigInteger()
IIntegerNumberBigInteger. This ensures there is no loss of
precision when parsing integral numbers.getNumberAsBigInteger in interface IIntegerNumberCopyright © 2006-2013. All Rights Reserved.