T
- the literal typepublic class NumericLiteral<T extends Number> extends Literal<T>
Number
.Constructor and Description |
---|
NumericLiteral(T value)
Constructs a numeric literal with the given value.
|
Modifier and Type | Method and Description |
---|---|
static NumericLiteral<Float> |
parseFloat(String value)
Parses a float literal value from a string.
|
static NumericLiteral<Integer> |
parseInteger(String value)
Parses a integer literal value from a string.
|
getLiteralType, getValue, interpret, toString
public NumericLiteral(T value)
value
- the literal valuepublic static NumericLiteral<Float> parseFloat(String value)
value
- the string valuepublic static NumericLiteral<Integer> parseInteger(String value)
value
- the string valueCopyright © 2016 Lexmark Enterprise Software Deutschland GmbH. All rights reserved.