Package org.kie.dmn.feel.lang.impl
Class JavaBackedType
- java.lang.Object
-
- org.kie.dmn.feel.lang.impl.JavaBackedType
-
- All Implemented Interfaces:
CompositeType,Type
public class JavaBackedType extends java.lang.Object implements CompositeType
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TypedetermineTypeFromClass(java.lang.Class<?> clazz)java.util.Map<java.lang.String,Type>getFields()java.lang.StringgetName()java.lang.Class<?>getWrapped()booleanisAssignableValue(java.lang.Object value)Check if the value passed as parameter can be assigned to this type.booleanisInstanceOf(java.lang.Object o)Definition of `instance of` accordingly to FEEL specifications Table 49.static Typeof(java.lang.Class<?> clazz)If clazz can be represented as a JavaBackedType, returns a JavaBackedType for representing clazz.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.kie.dmn.feel.lang.CompositeType
conformsTo
-
-
-
-
Method Detail
-
of
public static Type of(java.lang.Class<?> clazz)
If clazz can be represented as a JavaBackedType, returns a JavaBackedType for representing clazz. If clazz can not be represented as a JavaBackedType, returns BuiltInType.UNKNOWN. This method performs memoization when necessary.- Parameters:
clazz- the class to be represented as JavaBackedType- Returns:
- JavaBackedType representing clazz or BuiltInType.UNKNOWN
-
getWrapped
public java.lang.Class<?> getWrapped()
-
getFields
public java.util.Map<java.lang.String,Type> getFields()
- Specified by:
getFieldsin interfaceCompositeType
-
isInstanceOf
public boolean isInstanceOf(java.lang.Object o)
Description copied from interface:TypeDefinition of `instance of` accordingly to FEEL specifications Table 49.- Specified by:
isInstanceOfin interfaceType- Returns:
- if o is instance of the type represented by this type. If the parameter is null, returns false.
-
isAssignableValue
public boolean isAssignableValue(java.lang.Object value)
Description copied from interface:TypeCheck if the value passed as parameter can be assigned to this type.- Specified by:
isAssignableValuein interfaceType- Returns:
- if value can be assigned to the type represented by this type. If the parameter is null, returns true.
-
determineTypeFromClass
public static Type determineTypeFromClass(java.lang.Class<?> clazz)
-
-