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 |
ANY, BOOLEAN, CONTEXT, DATE, DATE_AND_TIME, DAYS_AND_TIME_DURATION, FUNCTION, LIST, NUMBER, STRING, TIME, YEARS_AND_MONTHS_DURATION
Modifier and Type | Method and Description |
---|---|
boolean |
conformsTo(Type t)
Check if this type does Conform to specified type
t accordingly to FEEL DMN specification 10.3.2.9.2 Type Conformance |
static Type |
determineTypeFromInstance(Object o) |
static Type |
determineTypeFromName(String name) |
Object |
fromString(String value) |
String |
getName() |
String[] |
getNames() |
Collection<BuiltInTypeSymbol> |
getSymbols() |
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 Collection<BuiltInTypeSymbol> getSymbols()
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
public boolean conformsTo(Type t)
Type
t
accordingly to FEEL DMN specification 10.3.2.9.2 Type ConformanceconformsTo
in interface Type
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.