Class ImplementationType

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

      • ImplementationType

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

      • 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 java.lang.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,
                                              java.util.Vector list)
      • checkMethods

        private boolean checkMethods​(ClassDefinition theClass,
                                     java.util.Vector list,
                                     ContextStack stack,
                                     boolean quiet)