Class SymTypePrimitive

    • Field Detail

      • primitiveTypes

        @Deprecated(forRemoval=true)
        public static final java.util.List<java.lang.String> primitiveTypes
        Deprecated, for removal: This API element is subject to removal in a future version.
        cannot assume fixed set for all languages
        List of potential constants (on purpose not implemented as enum)
      • unboxMap

        @Deprecated
        public static final java.util.Map<java.lang.String,​java.lang.String> unboxMap
        Deprecated.
        Map for unboxing const types (e.g. "java.lang.Boolean" -> "boolean")
      • boxMap

        @Deprecated
        public static final java.util.Map<java.lang.String,​java.lang.String> boxMap
        Deprecated.
        Map for boxing const types (e.g. "boolean" -> "java.lang.Boolean") Results are fully qualified.
    • Constructor Detail

      • SymTypePrimitive

        public SymTypePrimitive​(TypeSymbol typeSymbol)
    • Method Detail

      • getPrimitiveName

        public java.lang.String getPrimitiveName()
      • getBaseOfBoxedName

        @Deprecated(forRemoval=true)
        public java.lang.String getBaseOfBoxedName()
        Deprecated, for removal: This API element is subject to removal in a future version.
        only used in 1 test ONCE... in our main projects
      • setPrimitiveName

        @Deprecated(forRemoval=true)
        public void setPrimitiveName​(java.lang.String constName)
        Deprecated, for removal: This API element is subject to removal in a future version.
        only used in tests in our main projects
      • unbox

        @Deprecated
        public static java.lang.String unbox​(java.lang.String boxedName)
        Deprecated.
        use SymTypeUnboxingVisitor
        unboxing const types (e.g. "java.lang.Boolean" -> "boolean"). otherwise return is unchanged
        Parameters:
        boxedName -
        Returns:
      • box

        @Deprecated
        public static java.lang.String box​(java.lang.String unboxedName)
        Deprecated.
        use SymTypeBoxingVisitor
        Boxing const types (e.g. "boolean" -> "java.lang.Boolean") Results are fully qualified. Otherwise return is unchanged
        Parameters:
        unboxedName -
        Returns:
      • isIntegralType

        public boolean isIntegralType()
        Checks whether it is an integer type (incl. byte, long, char)
        Returns:
        true if the given type is an integral type
      • isNumericType

        public boolean isNumericType()
        Checks whether it is a numeric type (incl. byte, long, char, float)
        Returns:
        true if the given type is a numeric type