Package net.objecthunter.exp4j.tokenizer
Class NumberToken
java.lang.Object
net.objecthunter.exp4j.tokenizer.Token
net.objecthunter.exp4j.tokenizer.NumberToken
-
Field Summary
Fields inherited from class net.objecthunter.exp4j.tokenizer.Token
TOKEN_FUNCTION, TOKEN_NUMBER, TOKEN_OPERATOR, TOKEN_PARENTHESES_CLOSE, TOKEN_PARENTHESES_OPEN, TOKEN_SEPARATOR, TOKEN_VARIABLE -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
NumberToken
public NumberToken(double value) Create a new instance- Parameters:
value- the value of the number
-
-
Method Details
-
getValue
public double getValue()Get the value of the number- Returns:
- the value
-