Package org.kie.dmn.feel.lang.impl
Class MapBackedType
- java.lang.Object
-
- org.kie.dmn.feel.lang.impl.MapBackedType
-
- All Implemented Interfaces:
CompositeType,Type
public class MapBackedType extends Object implements CompositeType
A map-based type descriptor
-
-
Constructor Summary
Constructors Constructor Description MapBackedType()MapBackedType(String typeName)MapBackedType(String typeName, Map<String,Type> fields)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MapBackedTypeaddField(String name, Type type)Map<String,Type>getFields()StringgetName()booleanisAssignableValue(Object value)Check if the value passed as parameter can be assigned to this type.booleanisInstanceOf(Object o)Definition of `instance of` accordingly to FEEL specifications Table 49.-
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
-
-
-
-
Field Detail
-
TYPE_NAME
public static final String TYPE_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
addField
public MapBackedType addField(String name, Type type)
-
getFields
public Map<String,Type> getFields()
- Specified by:
getFieldsin interfaceCompositeType
-
isInstanceOf
public boolean isInstanceOf(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(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.
-
-