Class PrimitiveType

  • All Implemented Interfaces:
    java.lang.Cloneable, Constants, Constants, ContextElement, Constants, RuntimeConstants

    public class PrimitiveType
    extends Type
    PrimitiveType wraps primitive types and void.

    The static forPrimitive(...) method must be used to obtain an instance, and will return null if the type is non-conforming.

    • Constructor Detail

      • PrimitiveType

        private PrimitiveType​(ContextStack stack,
                              int typeCode)
        IDL_Naming Create an PrimitiveType instance for the given class.
    • Method Detail

      • forPrimitive

        public static PrimitiveType forPrimitive​(Type type,
                                                 ContextStack stack)
        Create a PrimitiveType object for the given type. If the type is not a properly formed or if some other error occurs, the return value will be null, and errors will have been reported to the supplied BatchEnvironment.
      • getSignature

        public java.lang.String getSignature()
        Return signature for this type (e.g. com.acme.Dynamite would return "com.acme.Dynamite", byte = "B")
        Specified by:
        getSignature in class Type
      • getTypeDescription

        public java.lang.String getTypeDescription()
        Return a string describing this type.
        Specified by:
        getTypeDescription in class Type
      • getQualifiedIDLName

        public java.lang.String getQualifiedIDLName​(boolean global)
        IDL_Naming Return the fully qualified IDL name for this type (e.g. com.acme.Dynamite would return "com::acme::Dynamite").
        Overrides:
        getQualifiedIDLName in class Type
        Parameters:
        global - If true, prepends "::".
      • loadClass

        protected java.lang.Class loadClass()
        Specified by:
        loadClass in class Type