Package net.orbyfied.j8.util.math.expr
Enum Class ExpressionValue.Type
- All Implemented Interfaces:
Serializable,Comparable<ExpressionValue.Type>,Constable
- Enclosing class:
- ExpressionValue<T>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA list structure based on a Java array list.A callable function.A value representing nothing, the absence of a value.A 64-bit floating point number.A string.A key-value structure based on a hash map.User data, wraps any JavaObject -
Method Summary
Modifier and TypeMethodDescriptiongetName()Class<?>static ExpressionValue.TypeReturns the enum constant of this class with the specified name.static ExpressionValue.Type[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NUMBER
A 64-bit floating point number. The default type for all numbers in an expression. Encapsulates adouble, with runtime typeDouble.TYPE -
STRING
A string. Obviously encapsulates aString -
TABLE
A key-value structure based on a hash map. Obviously encapsulates aHashMap -
ARRAY
A list structure based on a Java array list. Encapsulates anArrayList -
FUNCTION
A callable function. Encapsulates anExpressionFunction -
USER
User data, wraps any JavaObject -
NIL
A value representing nothing, the absence of a value. It has a runtime type ofVoid.TYPE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getName
-
getRuntimeType
-