Class SpecialInterfaceType

  • All Implemented Interfaces:
    java.lang.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 Detail

      • SpecialInterfaceType

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

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