Enum PrimitiveType

    • Field Detail

      • javaNameMap

        public static final java.util.Map<java.lang.String,​PrimitiveType> javaNameMap
    • Method Detail

      • values

        public static PrimitiveType[] 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 (PrimitiveType c : PrimitiveType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static PrimitiveType 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
      • getJavaName

        public java.lang.String getJavaName()
      • accept

        public <P,​R> R accept​(Type.Visitor<P,​R> visitor,
                                    P par)
        Specified by:
        accept in interface Type
      • accept

        public <P,​R> R accept​(org.fulib.scenarios.ast.type.PrimitiveType.Visitor<P,​R> visitor,
                                    P par)
      • primitiveToWrapper

        public static Type primitiveToWrapper​(Type type)
      • isNumeric

        public static boolean isNumeric​(Type type)
      • isNumeric

        public static boolean isNumeric​(PrimitiveType type)
      • isIntegral

        public static boolean isIntegral​(Type type)
      • isIntegral

        public static boolean isIntegral​(PrimitiveType type)
      • isPrimitiveOrWrapperValue

        public static boolean isPrimitiveOrWrapperValue​(Type type)
      • isPrimitiveOrWrapperValue

        public static boolean isPrimitiveOrWrapperValue​(PrimitiveType type)