org.directwebremoting.extend
Class MethodDeclaration

java.lang.Object
  extended by org.directwebremoting.extend.MethodDeclaration

public class MethodDeclaration
extends java.lang.Object

An immutable value object for method declaration information.

Author:
Mike Wilson [mikewse at g mail dot com]

Constructor Summary
MethodDeclaration(java.lang.reflect.Method method)
          Initializes the logical method declaration from a reflected Java method.
MethodDeclaration(java.lang.String moduleName, java.lang.String methodName, java.lang.reflect.Type[] genericParameterTypes, boolean varArgs, java.lang.reflect.Type genericReturnType)
          Initializes the logical method declaration from primitive data.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.reflect.Type[] getGenericParameterTypes()
           
 java.lang.reflect.Type getGenericReturnType()
           
 java.lang.String getModuleName()
           
 java.lang.String getName()
           
 java.lang.Class<?>[] getParameterTypes()
           
 java.lang.Class<?> getReturnType()
           
 int hashCode()
           
 boolean isVarArgs()
           
 java.lang.String toString()
          Make a nice string for showing what this method is.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MethodDeclaration

public MethodDeclaration(java.lang.reflect.Method method)
Initializes the logical method declaration from a reflected Java method.

Parameters:
method -

MethodDeclaration

public MethodDeclaration(java.lang.String moduleName,
                         java.lang.String methodName,
                         java.lang.reflect.Type[] genericParameterTypes,
                         boolean varArgs,
                         java.lang.reflect.Type genericReturnType)
Initializes the logical method declaration from primitive data.

Parameters:
moduleName -
methodName -
genericParameterTypes -
varArgs -
genericReturnType -
Method Detail

getModuleName

public java.lang.String getModuleName()

getName

public java.lang.String getName()

getParameterTypes

public java.lang.Class<?>[] getParameterTypes()

getGenericParameterTypes

public java.lang.reflect.Type[] getGenericParameterTypes()

isVarArgs

public boolean isVarArgs()

getReturnType

public java.lang.Class<?> getReturnType()

getGenericReturnType

public java.lang.reflect.Type getGenericReturnType()

equals

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

hashCode

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

toString

public java.lang.String toString()
Make a nice string for showing what this method is.

Overrides:
toString in class java.lang.Object

Copyright 2008