Class NewMetaMethod
java.lang.Object
org.codehaus.groovy.reflection.ParameterTypes
groovy.lang.MetaMethod
org.codehaus.groovy.runtime.metaclass.ReflectionMetaMethod
org.codehaus.groovy.runtime.metaclass.NewMetaMethod
- All Implemented Interfaces:
MetaMember,Cloneable
- Direct Known Subclasses:
NewInstanceMetaMethod,NewStaticMetaMethod
Base class for NewInstanceMetaMethod and NewStaticMetaMethod
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CachedClass[]The parameter types from the bytecode (including the first parameter which is the class)protected static final CachedClass[]Empty array of cached classes used as defaultFields inherited from class org.codehaus.groovy.runtime.metaclass.ReflectionMetaMethod
methodFields inherited from class groovy.lang.MetaMethod
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the bytecode parameter types (including the first parameter which is the class).Returns the class that declares the wrapped cached method.Gets the owner class (the first bytecode parameter type).Methods inherited from class org.codehaus.groovy.runtime.metaclass.ReflectionMetaMethod
getCachedMethod, getModifiers, getName, getPT, getReturnType, invoke, toStringMethods inherited from class groovy.lang.MetaMethod
checkParameters, clone, doMethodInvoke, equal, equal, getDescriptor, getMopName, getSignature, isAbstract, isCacheable, isDefault, isMethod, isSame, processDoMethodInvokeExceptionMethods inherited from class org.codehaus.groovy.reflection.ParameterTypes
coerceArgumentsToClasses, correctArguments, getNativeParameterTypes, getParameterTypes, isValidExactMethod, isValidExactMethod, isValidMethod, isValidMethod, isVargsMethod, isVargsMethod, setParametersTypesMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface groovy.lang.MetaMember
isFinal, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isSynthetic
-
Field Details
-
EMPTY_TYPE_ARRAY
Empty array of cached classes used as default -
bytecodeParameterTypes
The parameter types from the bytecode (including the first parameter which is the class)
-
-
Constructor Details
-
NewMetaMethod
Constructs a new NewMetaMethod.- Parameters:
method- the cached method
-
-
Method Details
-
getDeclaringClass
Description copied from class:ReflectionMetaMethodReturns the class that declares the wrapped cached method.- Overrides:
getDeclaringClassin classReflectionMetaMethod- Returns:
- the declaring class
-
getBytecodeParameterTypes
Gets the bytecode parameter types (including the first parameter which is the class).- Returns:
- the bytecode parameter types
-
getOwnerClass
Gets the owner class (the first bytecode parameter type).- Returns:
- the owner class
-