Class ImplementationType

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

public class ImplementationType extends ClassType
ImplementationType represents any non-special class which implements one or more interfaces which inherit from java.rmi.Remote.

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

  • Constructor Details

    • ImplementationType

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

    • forImplementation

      public static ImplementationType forImplementation(ClassDefinition classDef, ContextStack stack, boolean quiet)
      Create an ImplementationType 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
    • couldBeImplementation

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

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

      private static void copyRemoteMethods(InterfaceType type, Vector list)
    • checkMethods

      private boolean checkMethods(ClassDefinition theClass, Vector list, ContextStack stack, boolean quiet)
    • updateExceptions

      private boolean updateExceptions(MemberDefinition implMethod, CompoundType.Method[] list, ContextStack stack, boolean quiet)