Package groovy.lang
Class MetaClassImpl.MetaConstructor
java.lang.Object
org.codehaus.groovy.reflection.ParameterTypes
groovy.lang.MetaMethod
groovy.lang.MetaClassImpl.MetaConstructor
- All Implemented Interfaces:
MetaMember,Cloneable
- Enclosing class:
- MetaClassImpl
This is a helper class which is used only by indy. It is for internal use.
- Since:
- 2.1.0
-
Field Summary
Fields inherited from class groovy.lang.MetaMethod
EMPTY_ARRAY -
Method Summary
Modifier and TypeMethodDescriptionReturns the cached constructor wrapped by this meta constructor.Gets the class where this method is declared.intReturns the modifiers of this method.getName()Returns the name of this method.Returns the return type for this method.Invokes this method.booleanIndicates whether this constructor performs Groovy bean-style map population.Methods inherited from class groovy.lang.MetaMethod
checkParameters, clone, doMethodInvoke, equal, equal, getDescriptor, getMopName, getSignature, isAbstract, isCacheable, isDefault, isMethod, isSame, processDoMethodInvokeException, toStringMethods inherited from class org.codehaus.groovy.reflection.ParameterTypes
coerceArgumentsToClasses, correctArguments, getNativeParameterTypes, getParameterTypes, getPT, 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
-
Method Details
-
getModifiers
public int getModifiers()Returns the modifiers of this method.- Specified by:
getModifiersin interfaceMetaMember- Specified by:
getModifiersin classMetaMethod- Returns:
- modifiers as an int.
-
getName
Returns the name of this method.- Specified by:
getNamein interfaceMetaMember- Specified by:
getNamein classMetaMethod- Returns:
- name of this method
-
getReturnType
Returns the return type for this method.- Specified by:
getReturnTypein classMetaMethod- Returns:
- the return type of this method
-
getDeclaringClass
Gets the class where this method is declared.- Specified by:
getDeclaringClassin classMetaMethod- Returns:
- class of this method
-
invoke
Invokes 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
-
getCachedConstrcutor
Returns the cached constructor wrapped by this meta constructor.- Returns:
- the cached constructor
-
isBeanConstructor
public boolean isBeanConstructor()Indicates whether this constructor performs Groovy bean-style map population.- Returns:
truefor bean constructors
-