Class JavaBackedType

    • Method Detail

      • of

        public static Type of​(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 Class<?> getWrapped()
      • isInstanceOf

        public boolean isInstanceOf​(Object o)
        Description copied from interface: Type
        Definition of `instance of` accordingly to FEEL specifications Table 49.
        Specified by:
        isInstanceOf in interface Type
        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: Type
        Check if the value passed as parameter can be assigned to this type.
        Specified by:
        isAssignableValue in interface Type
        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​(Class<?> clazz)