Module io.jenetics.ext
Package io.jenetics.ext.internal.util
Interface FormulaParser.TokenConverter<T,V>
- Type Parameters:
T
- the token typeV
- the converted value type
- Enclosing class:
- FormulaParser<T>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Conversion function which is used for converting tokens into another
type.
-
Method Summary
Modifier and TypeMethodDescriptionconvert
(T token, FormulaParser.TokenType type) Convert the giventoken
into another value.
-
Method Details
-
convert
Convert the giventoken
into another value. The conversion can use the token type, recognized during the parsing process.- Parameters:
token
- the token value to converttype
- the token type, recognized during the parsing process- Returns:
- the converted value
-