public class DecimalNumberImpl extends ConstraintImpl implements IDecimalNumber
childIndex, parent, startIndex, stopIndex, tokenNEWLINE| Constructor and Description |
|---|
DecimalNumberImpl(org.antlr.runtime.Token token) |
| Modifier and Type | Method and Description |
|---|---|
String |
dump(int indent)
Dump the AST and its children for debugging purposes
|
double |
getNumber()
Return the number.
|
BigDecimal |
getNumberAsBigDecimal()
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 double getNumber()
IDecimalNumbergetNumber in interface IDecimalNumberpublic BigDecimal getNumberAsBigDecimal()
IDecimalNumberBigDecimal. This ensures there is no loss of
precision when parsing decimal numbers.getNumberAsBigDecimal in interface IDecimalNumberCopyright © 2006-2013. All Rights Reserved.