|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.rit.m2mi.MethodDescriptor
public class MethodDescriptor
Class MethodDescriptor provides an object that describes a target method for an M2MI call. This includes the target interface name, target method name, and argument types. (The target method's return type is always void in M2MI.)
Class MethodDescriptor is not serializable and cannot be written to an object
output stream using writeObject(), or read from an object input
stream using readObject(). However, instances of class
MethodDescriptor can be written to a data output stream using the
write()
method below, and instances of
class MethodDescriptor can be read from a data input stream using
the read()
method below.
Constructor Summary | |
---|---|
MethodDescriptor()
Construct a new method descriptor. |
|
MethodDescriptor(String theTargetInterface,
String theTargetMethod,
String theArgumentTypes)
Construct a new method descriptor with the given target interface, target method, and argument types. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
Determine if this method descriptor is equal to the given object. |
String |
getArgumentTypes()
Returns this method descriptor's target method argument types. |
String |
getTargetInterface()
Returns this method descriptor's fully-qualified target interface name. |
String |
getTargetMethod()
Returns this method descriptor's target method name. |
int |
hashCode()
Returns a hash code for this method descriptor. |
void |
read(DataInput theDataInput)
Read this method descriptor's state from the given data input stream. |
String |
toString()
Returns a string version of this method descriptor. |
void |
write(DataOutput theDataOutput)
Write this method descriptor's state to the given data output stream. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MethodDescriptor()
read()
method.
public MethodDescriptor(String theTargetInterface, String theTargetMethod, String theArgumentTypes)
theTargetInterface
- Fully-qualified name of the target interface.theTargetMethod
- Target method name.theArgumentTypes
- Target method's argument types, specified as a Java class file method
descriptor string. The return type in the method descriptor string
must be void.
NullPointerException
- (unchecked exception) Thrown if any argument is null.Method Detail |
---|
public String getTargetInterface()
public String getTargetMethod()
public String getArgumentTypes()
public void write(DataOutput theDataOutput) throws IOException
theDataOutput
- Data output stream to write.
IOException
- Thrown if an I/O error occurred.public void read(DataInput theDataInput) throws IOException
write()
method.
theDataInput
- Data input stream to read.
IOException
- Thrown if an I/O error occurred.public boolean equals(Object obj)
equals
in class Object
obj
- Object to test.
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |