Class SpecialInterfaceType

All Implemented Interfaces:
Cloneable, Constants, Constants, ContextElement, Constants, RuntimeConstants

public class SpecialInterfaceType extends InterfaceType
SpecialInterfaceType represents any one of the following types:
    java.rmi.Remote
    java.io.Serializable
    java.io.Externalizable
    org.omg.CORBA.Object
    org.omg.CORBA.portable.IDLEntity
 
all of which are treated as special cases. For all but CORBA.Object, the type must match exactly. For CORBA.Object, the type must either be CORBA.Object or inherit from it.

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

  • Constructor Details

    • SpecialInterfaceType

      private SpecialInterfaceType(ContextStack stack, int typeCode, ClassDefinition theClass)
      Create an SpecialInterfaceType instance for the given class.
  • Method Details

    • forSpecial

      public static SpecialInterfaceType forSpecial(ClassDefinition theClass, ContextStack stack)
      Create a SpecialInterfaceType object for the given class. If the class 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.
    • getTypeDescription

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

      private static boolean isSpecial(Type type, ClassDefinition theClass, ContextStack stack)
    • initialize

      private boolean initialize(Type type, ContextStack stack)