public class

RemoteClass.Method

extends Object
implements Cloneable
java.lang.Object
   ↳ sun.rmi.rmic.RemoteClass.Method

Class Overview

A RemoteClass.Method object encapsulates RMI-specific information about a particular remote method in the remote implementation class represented by the outer instance.

Summary

Public Methods
ClassDeclaration[] getExceptions()
Return an array of the exception classes declared to be thrown by this remote method.
MemberDefinition getMemberDefinition()
Return the definition of the actual class member corresponing to this method of a remote interface.
long getMethodHash()
Return the "method hash" used to identify this remote method in the JDK 1.2 version of the stub protocol.
Identifier getName()
Return the name of this method.
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).
String getOperationString()
Return the string representation of this method appropriate for the construction of a java.rmi.server.Operation object.
Type getType()
Return the type of this method.
String toString()
Return the string representation of this method.
Protected Methods
Object clone()
Cloning is supported by returning a shallow copy of this object.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

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.

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?

public long getMethodHash ()

Return the "method hash" used to identify this remote method in the JDK 1.2 version of the stub protocol.

public Identifier getName ()

Return the name of this method.

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).

public String getOperationString ()

Return the string representation of this method appropriate for the construction of a java.rmi.server.Operation object.

public Type getType ()

Return the type of this method.

public String toString ()

Return the string representation of this method.

Returns
  • a string representation of the object.

Protected Methods

protected Object clone ()

Cloning is supported by returning a shallow copy of this object.

Returns
  • a clone of this instance.