com.quartercode.quarterbukkit.api.thread
Class PreparedMethod

java.lang.Object
  extended by com.quartercode.quarterbukkit.api.thread.PreparedMethod

public class PreparedMethod
extends java.lang.Object

Class for representing an invoke-ready method.


Constructor Summary
PreparedMethod(java.lang.reflect.Method method, java.lang.Object object, java.lang.Object... parameters)
          Creates an invoke-ready method.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.reflect.Method getMethod()
          Returns the reflection-Method.
 java.lang.Object getObject()
          Returns the call Object.
 java.lang.Object[] getParameters()
          Returns the call parameters as an Object-array.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PreparedMethod

public PreparedMethod(java.lang.reflect.Method method,
                      java.lang.Object object,
                      java.lang.Object... parameters)
Creates an invoke-ready method.

Parameters:
method - The reflection-Method.
object - The call Object (null for static access).
parameters - The call parameters as an Object-array.
Method Detail

getMethod

public java.lang.reflect.Method getMethod()
Returns the reflection-Method.

Returns:
The reflection-Method.

getObject

public java.lang.Object getObject()
Returns the call Object.

Returns:
The call Object.

getParameters

public java.lang.Object[] getParameters()
Returns the call parameters as an Object-array.

Returns:
The call parameters as an Object-array.

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object