java.lang.Object
org.rrd4j.data.RpnCalculator.Token
- Enclosing class:
RpnCalculator
Token class.
Field Summary
FieldsModifier and TypeFieldDescription(package private) final RpnCalculator.Token_SymbolThe token this represents.(package private) final doubleThe literal number, if this is one.(package private) final double[]The variable's values, if this is one.(package private) final StringThe variable's name, if this is one.Constructor Summary
ConstructorsConstructorDescriptionCreates an operator or constant token.Token(RpnCalculator.Token_Symbol id, double number) Creates a literal-number token.Token(RpnCalculator.Token_Symbol id, String variable, double[] values) Creates a variable token.Method Summary
Field Details
id
The token this represents.number
final double numberThe literal number, if this is one.variable
The variable's name, if this is one.values
final double[] valuesThe variable's values, if this is one.
Constructor Details
Token
Token(RpnCalculator.Token_Symbol id) Creates an operator or constant token.- Parameters:
id- the token to create
Token
Token(RpnCalculator.Token_Symbol id, String variable, double[] values) Creates a variable token.- Parameters:
id- the token to createvariable- the variable's namevalues- the variable's values
Token
Token(RpnCalculator.Token_Symbol id, double number) Creates a literal-number token.- Parameters:
id- the token to createnumber- the literal value