Class AbstractType

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

public class AbstractType extends RemoteType
AbstractType represents any non-special interface which does not inherit from java.rmi.Remote, for which all methods throw RemoteException.

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

  • Constructor Details

    • AbstractType

      private AbstractType(ContextStack stack, ClassDefinition classDef)
      Create a AbstractType instance for the given class. The resulting object is not yet completely initialized.
  • Method Details

    • forAbstract

      public static AbstractType forAbstract(ClassDefinition classDef, ContextStack stack, boolean quiet)
      Create an AbstractType 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.
      Overrides:
      getTypeDescription in class RemoteType
    • couldBeAbstract

      private static boolean couldBeAbstract(ContextStack stack, ClassDefinition classDef, boolean quiet)
    • initialize

      private boolean initialize(boolean quiet, ContextStack stack)
      Initialize this instance.