public enum BuiltInType extends Enum<BuiltInType> implements SimpleType
Enum Constant and Description |
---|
BOOLEAN |
CONTEXT |
DATE |
DATE_TIME |
DURATION |
FUNCTION |
LIST |
NUMBER |
RANGE |
STRING |
TIME |
UNARY_TEST |
UNKNOWN |
Modifier and Type | Method and Description |
---|---|
static Type |
determineTypeFromInstance(Object o) |
static Type |
determineTypeFromName(String name) |
Object |
fromString(String value) |
String |
getName() |
String[] |
getNames() |
Symbol |
getSymbol() |
boolean |
isAssignableValue(Object value)
Check if the value passed as parameter can be assigned to this type.
|
boolean |
isInstanceOf(Object o)
Definition of `instance of` accordingly to FEEL specifications Table 49.
|
static boolean |
isInstanceOf(Object o,
String name) |
static boolean |
isInstanceOf(Object o,
Type t) |
static <T> Function<org.kie.dmn.api.feel.runtime.events.FEELEvent,T> |
justNull() |
String |
toString() |
String |
toString(Object value) |
static BuiltInType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BuiltInType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BuiltInType UNKNOWN
public static final BuiltInType NUMBER
public static final BuiltInType STRING
public static final BuiltInType DATE
public static final BuiltInType TIME
public static final BuiltInType DATE_TIME
public static final BuiltInType DURATION
public static final BuiltInType BOOLEAN
public static final BuiltInType RANGE
public static final BuiltInType FUNCTION
public static final BuiltInType LIST
public static final BuiltInType CONTEXT
public static final BuiltInType UNARY_TEST
public static BuiltInType[] values()
for (BuiltInType c : BuiltInType.values()) System.out.println(c);
public static BuiltInType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String[] getNames()
public static <T> Function<org.kie.dmn.api.feel.runtime.events.FEELEvent,T> justNull()
public Symbol getSymbol()
public String toString()
toString
in class Enum<BuiltInType>
public boolean isInstanceOf(Object o)
Type
isInstanceOf
in interface Type
public boolean isAssignableValue(Object value)
Type
isAssignableValue
in interface Type
Copyright © 2001–2018 JBoss by Red Hat. All rights reserved.