org.codehaus.groovy.reflection
Class CachedMethod

java.lang.Object
  extended by org.codehaus.groovy.reflection.ParameterTypes
      extended by org.codehaus.groovy.reflection.CachedMethod
All Implemented Interfaces:
Comparable

public class CachedMethod
extends ParameterTypes
implements Comparable

Author:
Alex.Tkachman

Field Summary
 CachedClass cachedClass
           
 Method cachedMethod
           
 
Fields inherited from class org.codehaus.groovy.reflection.ParameterTypes
nativeParamTypes, parameterTypes
 
Constructor Summary
CachedMethod(CachedClass clazz, Method method)
           
CachedMethod(Method method)
           
 
Method Summary
 boolean canBeCalledByReflector()
           
 int compareTo(Object o)
           
 boolean equals(Object o)
           
static CachedMethod find(Method method)
           
 Class getDeclaringClass()
           
 String getDescriptor()
           
 int getMethodIndex()
           
 int getModifiers()
           
 String getName()
           
 int getParamsCount()
           
 MetaMethod getReflectionMetaMethod()
           
 Class getReturnType()
           
 String getSignature()
           
 int hashCode()
           
 boolean isStatic()
           
 Method setAccessible()
           
 void setMethodIndex(int i)
           
 String toString()
           
 
Methods inherited from class org.codehaus.groovy.reflection.ParameterTypes
coerceArgumentsToClasses, getNativeParameterTypes, getParameterTypes, isVargsMethod
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

cachedClass

public final CachedClass cachedClass

cachedMethod

public final Method cachedMethod
Constructor Detail

CachedMethod

public CachedMethod(CachedClass clazz,
                    Method method)

CachedMethod

public CachedMethod(Method method)
Method Detail

find

public static CachedMethod find(Method method)

getName

public String getName()

getDescriptor

public String getDescriptor()

getDeclaringClass

public Class getDeclaringClass()

getReturnType

public Class getReturnType()

getParamsCount

public int getParamsCount()

getModifiers

public int getModifiers()

getSignature

public String getSignature()

setAccessible

public Method setAccessible()

isStatic

public boolean isStatic()

setMethodIndex

public void setMethodIndex(int i)

getMethodIndex

public int getMethodIndex()

canBeCalledByReflector

public boolean canBeCalledByReflector()

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

getReflectionMetaMethod

public MetaMethod getReflectionMetaMethod()

Copyright © 2003-2007 The Codehaus. All rights reserved.