net.sf.jaxme.js.pattern
Class ProxyGenerator.GeneratedMethod

java.lang.Object
  extended bynet.sf.jaxme.js.pattern.ProxyGenerator.GeneratedMethod
All Implemented Interfaces:
java.lang.Comparable, java.io.Serializable
Enclosing class:
ProxyGenerator

protected static class ProxyGenerator.GeneratedMethod
extends java.lang.Object
implements java.io.Serializable, java.lang.Comparable

This class describes a generated method. The class is used to guarantee, that the generated methods are unique, even if multiple interfaces define them.

See Also:
Serialized Form

Constructor Summary
protected ProxyGenerator.GeneratedMethod()
           
 
Method Summary
 int compareTo(java.lang.Object o)
          Compares this GeneratedMethod to the given GeneratedMethod o.
 boolean equals(java.lang.Object o)
          Returns whether this GeneratedMethod equals the object o.
 java.lang.Class getDeclaringInterface()
          Returns the interface declaring this method.
 JavaMethod getMethod()
          Returns the JavaMethod generated for this method.
 java.lang.String getName()
          Returns the methods name.
 java.lang.Class[] getParameters()
          Returns the methods parameters.
 int hashCode()
           
 void setDeclaringInterface(java.lang.Class pInterface)
          Sets the interface declaring this method.
 void setMethod(JavaMethod pMethod)
          Sets the JavaMethod generated for this method.
 void setName(java.lang.String pName)
          Sets the methods name.
 void setParameters(java.lang.Class[] pParameters)
          Sets the methods parameters.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxyGenerator.GeneratedMethod

protected ProxyGenerator.GeneratedMethod()
Method Detail

setMethod

public void setMethod(JavaMethod pMethod)

Sets the JavaMethod generated for this method.


getMethod

public JavaMethod getMethod()

Returns the JavaMethod generated for this method.


setName

public void setName(java.lang.String pName)

Sets the methods name.


getName

public java.lang.String getName()

Returns the methods name.


setParameters

public void setParameters(java.lang.Class[] pParameters)

Sets the methods parameters.


getParameters

public java.lang.Class[] getParameters()

Returns the methods parameters.


setDeclaringInterface

public void setDeclaringInterface(java.lang.Class pInterface)

Sets the interface declaring this method.


getDeclaringInterface

public java.lang.Class getDeclaringInterface()

Returns the interface declaring this method.


equals

public boolean equals(java.lang.Object o)

Returns whether this GeneratedMethod equals the object o. This is the case, if o != null, o instanceof GeneratedMethod, and compareTo(o) != 0.


compareTo

public int compareTo(java.lang.Object o)

Compares this GeneratedMethod to the given GeneratedMethod o. More precise, compares the method name, the number of parameters and the class names of the parameters, in that order.

Specified by:
compareTo in interface java.lang.Comparable
Throws:
java.lang.ClassCastException - The object o is not an instance of GeneratedMethod.

hashCode

public int hashCode()