public class

RemoteClass

extends Object
implements RMIConstants
java.lang.Object
   ↳ sun.rmi.rmic.RemoteClass

Class Overview

A RemoteClass object encapsulates RMI-specific information about a remote implementation class, i.e. a class that implements one or more remote interfaces. WARNING: The contents of this source file are not part of any supported API. Code that depends on them does so at its own risk: they are subject to change or removal without notice.

Summary

Nested Classes
class RemoteClass.Method A RemoteClass.Method object encapsulates RMI-specific information about a particular remote method in the remote implementation class represented by the outer instance. 
[Expand]
Inherited Constants
From interface sun.rmi.rmic.RMIConstants
From interface sun.tools.java.Constants
From interface sun.tools.java.RuntimeConstants
[Expand]
Inherited Fields
From interface sun.rmi.rmic.Constants
From interface sun.rmi.rmic.RMIConstants
From interface sun.tools.java.Constants
From interface sun.tools.java.RuntimeConstants
Public Methods
static RemoteClass forClass(BatchEnvironment env, ClassDefinition implClassDef)
Create a RemoteClass object representing the remote meta-information of the given class.
ClassDefinition getClassDefinition()
Return the ClassDefinition for this class.
long getInterfaceHash()
Return the "interface hash" used to match a stub/skeleton pair for this class in the JDK 1.1 version of the stub/skeleton protocol.
Identifier getName()
Return the name of the class represented by this object.
ClassDefinition[] getRemoteInterfaces()
Return an array of ClassDefinitions representing all of the remote interfaces implemented by this class.
Method[] getRemoteMethods()
Return an array of RemoteClass.Method objects representing all of the remote methods implemented by this class, i.e.
String toString()
Return string representation of this object, consisting of the string "remote class " followed by the class name.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static RemoteClass forClass (BatchEnvironment env, ClassDefinition implClassDef)

Create a RemoteClass object representing the remote meta-information of the given class. Returns true if successful. If the class is not a properly formed remote implementation class or if some other error occurs, the return value will be null, and errors will have been reported to the supplied BatchEnvironment.

public ClassDefinition getClassDefinition ()

Return the ClassDefinition for this class.

public long getInterfaceHash ()

Return the "interface hash" used to match a stub/skeleton pair for this class in the JDK 1.1 version of the stub/skeleton protocol.

public Identifier getName ()

Return the name of the class represented by this object.

public ClassDefinition[] getRemoteInterfaces ()

Return an array of ClassDefinitions representing all of the remote interfaces implemented by this class. A remote interface is any interface that extends Remote, directly or indirectly. The remote interfaces of a class are the interfaces directly listed in either the class's "implements" clause, or the "implements" clause of any of its superclasses, that are remote interfaces. The order of the array returned is arbitrary, and some elements may be superfluous (i.e., superinterfaces of other interfaces in the array).

public Method[] getRemoteMethods ()

Return an array of RemoteClass.Method objects representing all of the remote methods implemented by this class, i.e. all of the methods in the class's remote interfaces. The methods in the array are ordered according to the comparision of the strings consisting of their method name followed by their type signature, so each method's index in the array corresponds to its "operation number" in the JDK 1.1 version of the stub/skeleton protocol.

public String toString ()

Return string representation of this object, consisting of the string "remote class " followed by the class name.

Returns
  • a string representation of the object.