Class RemoteClass.Method

java.lang.Object
org.glassfish.rmic.RemoteClass.Method
All Implemented Interfaces:
Cloneable
Enclosing class:
RemoteClass

public class RemoteClass.Method extends Object implements Cloneable
A RemoteClass.Method object encapsulates RMI-specific information about a particular remote method in the remote implementation class represented by the outer instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected Object
    Cloning is supported by returning a shallow copy of this object.
    Return an array of the exception classes declared to be thrown by this remote method.
    Return the definition of the actual class member corresponing to this method of a remote interface.
    long
    Return the "method hash" used to identify this remote method in the JDK 1.2 version of the stub protocol.
    Return the name of this method.
    Return a string consisting of this method's name followed by its method descriptor, using the Java VM's notation for method descriptors (see section 4.3.3 of The Java Virtual Machine Specification).
    Return the string representation of this method appropriate for the construction of a java.rmi.server.Operation object.
    Return the type of this method.
    Return the string representation of this method.

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Method Details

    • getMemberDefinition

      public MemberDefinition getMemberDefinition()
      Return the definition of the actual class member corresponing to this method of a remote interface. REMIND: Can this method be removed?
    • getName

      public Identifier getName()
      Return the name of this method.
    • getType

      public Type getType()
      Return the type of this method.
    • getExceptions

      public ClassDeclaration[] getExceptions()
      Return an array of the exception classes declared to be thrown by this remote method. For methods with the same name and type signature inherited from multiple remote interfaces, the array will contain the set of exceptions declared in all of the interfaces' methods that can be legally thrown in each of them.
    • getMethodHash

      public long getMethodHash()
      Return the "method hash" used to identify this remote method in the JDK 1.2 version of the stub protocol.
    • toString

      public String toString()
      Return the string representation of this method.
      Overrides:
      toString in class Object
    • getOperationString

      public String getOperationString()
      Return the string representation of this method appropriate for the construction of a java.rmi.server.Operation object.
    • getNameAndDescriptor

      public String getNameAndDescriptor()
      Return a string consisting of this method's name followed by its method descriptor, using the Java VM's notation for method descriptors (see section 4.3.3 of The Java Virtual Machine Specification).
    • clone

      protected Object clone()
      Cloning is supported by returning a shallow copy of this object.
      Overrides:
      clone in class Object