The Meta-Environment API

toolbus.adapter.java
Class JavaToolBridge.CallableMethodSignature

java.lang.Object
  extended by toolbus.adapter.java.JavaToolBridge.CallableMethodSignature
Enclosing class:
JavaToolBridge

protected static class JavaToolBridge.CallableMethodSignature
extends java.lang.Object

This class represents a signature of a method (Name + return type + params).

Author:
Arnold Lankamp

Field Summary
 java.lang.String methodName
           
 java.lang.Class<?>[] parameters
           
 java.lang.Class<?> returnType
           
 
Constructor Summary
protected JavaToolBridge.CallableMethodSignature()
           
 
Method Summary
 boolean equals(java.lang.Object o)
          Custom equals method.
 int hashCode()
          Custom hashcode function.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

methodName

public java.lang.String methodName

returnType

public java.lang.Class<?> returnType

parameters

public java.lang.Class<?>[] parameters
Constructor Detail

JavaToolBridge.CallableMethodSignature

protected JavaToolBridge.CallableMethodSignature()
Method Detail

hashCode

public int hashCode()
Custom hashcode function. This is needed because we use this object as a key in a HashMap.

Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Custom equals method. Matches when the object we are comparing ourselfs to can be called by this method signature.

For example: void method(String o) equals void method(Object o), but method(Object o) does not equal method(String o).

Overrides:
equals in class java.lang.Object
See Also:
Object.equals(java.lang.Object)

The Meta-Environment API