Enum BuiltInType

    • Method Detail

      • values

        public static BuiltInType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (BuiltInType c : BuiltInType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static BuiltInType valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface Type
      • getNames

        public java.lang.String[] getNames()
      • fromString

        public java.lang.Object fromString​(java.lang.String value)
      • toString

        public java.lang.String toString​(java.lang.Object value)
      • justNull

        public static <T> java.util.function.Function<org.kie.dmn.api.feel.runtime.events.FEELEvent,​T> justNull()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Enum<BuiltInType>
      • determineTypeFromName

        public static Type determineTypeFromName​(java.lang.String name)
      • determineTypeFromInstance

        public static Type determineTypeFromInstance​(java.lang.Object o)
      • isInstanceOf

        public static boolean isInstanceOf​(java.lang.Object o,
                                           Type t)
      • isInstanceOf

        public static boolean isInstanceOf​(java.lang.Object o,
                                           java.lang.String name)
      • isInstanceOf

        public boolean isInstanceOf​(java.lang.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​(java.lang.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.
      • conformsTo

        public boolean conformsTo​(Type t)
        Description copied from interface: Type
        Check if this type does Conform to specified type t accordingly to FEEL DMN specification 10.3.2.9.2 Type Conformance
        Specified by:
        conformsTo in interface Type
        Returns:
        if this type does conform to specified type.