Groovy Documentation

groovy.lang
[Java] Class MetaClassImpl.MetaConstructor

java.lang.Object
  org.codehaus.groovy.reflection.ParameterTypes
      groovy.lang.MetaMethod
          groovy.lang.MetaClassImpl.MetaConstructor

public static final class MetaClassImpl.MetaConstructor
extends MetaMethod

This is a helper method added in Groovy 2.1.0, which is used only by indy. This method is for internal use only.

Authors:
Jochen "blackdrag" Theodorou
Since:
Groovy 2.1.0


Field Summary
 
Fields inherited from class ParameterTypes
isVargsMethod, nativeParamTypes, parameterTypes
 
Method Summary
CachedConstructor getCachedConstrcutor()

CachedClass getDeclaringClass()

int getModifiers()

java.lang.String getName()

java.lang.Class getReturnType()

java.lang.Object invoke(java.lang.Object object, java.lang.Object[] arguments)

boolean isBeanConstructor()

 
Methods inherited from class MetaMethod
checkParameters, clone, doMethodInvoke, equal, equal, getDeclaringClass, getDescriptor, getModifiers, getMopName, getName, getReturnType, getSignature, invoke, isAbstract, isCacheable, isMethod, isPrivate, isProtected, isPublic, isSame, isStatic, processDoMethodInvokeException, toString
 
Methods inherited from class ParameterTypes
coerceArgumentsToClasses, correctArguments, getNativeParameterTypes, getPT, getParameterTypes, isValidExactMethod, isValidExactMethod, isValidMethod, isValidMethod, isVargsMethod, isVargsMethod, setParametersTypes
 
Methods inherited from class java.lang.Object
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Method Detail

getCachedConstrcutor

public CachedConstructor getCachedConstrcutor()


getDeclaringClass

@java.lang.Overridepriv
public CachedClass getDeclaringClass()


getModifiers

@java.lang.Overrideif (res instanceof MetaMethod) return (MetaMethod) res;
public int getModifiers()


getName

@java.lang.Overrideif (constructor != null) return new MetaConstructor(constructor, true);
public java.lang.String getName()


getReturnType

@java.lang.Overridereturn null;
    }
public java.lang.Class getReturnType()


invoke

@java.lang.OverridecheckInitalised();
public java.lang.Object invoke(java.lang.Object object, java.lang.Object[] arguments)


isBeanConstructor

public boolean isBeanConstructor()


 

Groovy Documentation