Class PrimitiveType

java.lang.Object
org.glassfish.rmic.iiop.Type
org.glassfish.rmic.iiop.PrimitiveType
All Implemented Interfaces:
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 Details

    • PrimitiveType

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

    • 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 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 String getTypeDescription()
      Return a string describing this type.
      Specified by:
      getTypeDescription in class Type
    • getQualifiedIDLName

      public 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 Class loadClass()
      Specified by:
      loadClass in class Type