Package org.codehaus.groovy.reflection
Class CachedMethod
java.lang.Object
org.codehaus.groovy.reflection.ParameterTypes
groovy.lang.MetaMethod
org.codehaus.groovy.reflection.CachedMethod
- All Implemented Interfaces:
Cloneable,Comparable
- Author:
- Alex.Tkachman
-
Field Summary
FieldsFields inherited from class org.codehaus.groovy.reflection.ParameterTypes
isVargsMethod, nativeParamTypes, parameterTypes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcreatePogoMetaMethodSite(CallSite site, MetaClassImpl metaClass, Class[] params) createPojoMetaMethodSite(CallSite site, MetaClassImpl metaClass, Class[] params) createStaticMetaMethodSite(CallSite site, MetaClassImpl metaClass, Class[] params) booleanstatic CachedMethodGets the class where this method is declaredReturn a descriptor of this method based on the return type and parameters of this method.intReturns the modifiers for this methodgetName()Returns the name of the method represented by this classintprotected Class[]getPT()Access the return type for this methodReturns the signature of this methodinthashCode()final ObjectInvoke this methodbooleanisStatic()Returns whether or not this method is static.final MethodtoString()Returns a string representation of this methodMethods inherited from class groovy.lang.MetaMethod
checkParameters, clone, doMethodInvoke, equal, equal, getMopName, isAbstract, isCacheable, isMethod, isPrivate, isProtected, isPublic, isSame, processDoMethodInvokeExceptionMethods inherited from class org.codehaus.groovy.reflection.ParameterTypes
coerceArgumentsToClasses, correctArguments, getNativeParameterTypes, getParameterTypes, isValidExactMethod, isValidExactMethod, isValidMethod, isValidMethod, isVargsMethod, isVargsMethod, setParametersTypes
-
Field Details
-
cachedClass
-
-
Constructor Details
-
CachedMethod
-
CachedMethod
-
-
Method Details
-
find
-
getPT
- Overrides:
getPTin classParameterTypes
-
getName
Description copied from class:MetaMethodReturns the name of the method represented by this class- Specified by:
getNamein classMetaMethod- Returns:
- name of this method
-
getDescriptor
Description copied from class:MetaMethodReturn a descriptor of this method based on the return type and parameters of this method.- Overrides:
getDescriptorin classMetaMethod
-
getDeclaringClass
Description copied from class:MetaMethodGets the class where this method is declared- Specified by:
getDeclaringClassin classMetaMethod- Returns:
- class of this method
-
invoke
Description copied from class:MetaMethodInvoke this method- Specified by:
invokein classMetaMethod- Parameters:
object- The object this method should be invoked onarguments- The arguments for the method if applicable- Returns:
- The return value of the invocation
-
getParamTypes
-
getReturnType
Description copied from class:MetaMethodAccess the return type for this method- Specified by:
getReturnTypein classMetaMethod- Returns:
- the return type of this method
-
getParamsCount
public int getParamsCount() -
getModifiers
public int getModifiers()Description copied from class:MetaMethodReturns the modifiers for this method- Specified by:
getModifiersin classMetaMethod- Returns:
- modifiers as an int.
-
getSignature
Description copied from class:MetaMethodReturns the signature of this method- Overrides:
getSignaturein classMetaMethod- Returns:
- The signature of this method
-
setAccessible
-
isStatic
public boolean isStatic()Description copied from class:MetaMethodReturns whether or not this method is static.- Overrides:
isStaticin classMetaMethod- Returns:
- true if this method is static
-
compareTo
- Specified by:
compareToin interfaceComparable
-
equals
-
hashCode
public int hashCode() -
toString
Description copied from class:MetaMethodReturns a string representation of this method- Overrides:
toStringin classMetaMethod
-
createPogoMetaMethodSite
-
createPojoMetaMethodSite
-
createStaticMetaMethodSite
-
getCachedMethod
-