public class NumberToken extends Token
Constructor and Description |
---|
NumberToken(java.lang.String source,
java.lang.Object value)
Construct a number token.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getValue()
Gets the value of the object.
|
boolean |
isImplicitMulRhs()
Whether numbers can appear on the rhs of implicit multiplication 'x 2'.
|
boolean |
isNumber() |
equals, getColumnNumber, getLength, getLineNumber, getSource, hashCode, isBinary, isComment, isFunction, isIdentifier, isOperator, isPrefix, isString, isSuffix, isSymbol, isTerminal, isTernary, isWhiteSpace, setPosition, toString
public NumberToken(java.lang.String source, java.lang.Object value) throws ParseException
source
- text of the input matchedvalue
- value of the objectParseException
- on syntax errorpublic java.lang.Object getValue()
public boolean isImplicitMulRhs()
isImplicitMulRhs
in class Token
Copyright © 2018 Singular Systems http://www.singularsys.com/jep