use of groovy.lang.MetaClass in project groovy by apache.
the class OwnedMetaClass method selectConstructorAndTransformArguments.
@Override
public int selectConstructorAndTransformArguments(int numberOfConstructors, Object[] arguments) {
final Object owner = getOwner();
final MetaClass ownerMetaClass = getOwnerMetaClass(owner);
return ownerMetaClass.selectConstructorAndTransformArguments(numberOfConstructors, arguments);
}
use of groovy.lang.MetaClass in project groovy by apache.
the class OwnedMetaClass method invokeMissingMethod.
@Override
public Object invokeMissingMethod(Object instance, String methodName, Object[] arguments) {
final Object owner = getOwner();
final MetaClass ownerMetaClass = getOwnerMetaClass(owner);
return ownerMetaClass.invokeMissingMethod(owner, methodName, arguments);
}
use of groovy.lang.MetaClass in project groovy by apache.
the class OwnedMetaClass method hasProperty.
@Override
public MetaProperty hasProperty(Object obj, String name) {
final Object owner = getOwner();
final MetaClass ownerMetaClass = getOwnerMetaClass(owner);
return ownerMetaClass.hasProperty(owner, name);
}
use of groovy.lang.MetaClass in project groovy by apache.
the class OwnedMetaClass method invokeMissingProperty.
@Override
public Object invokeMissingProperty(Object instance, String propertyName, Object optionalValue, boolean isGetter) {
final Object owner = getOwner();
final MetaClass ownerMetaClass = getOwnerMetaClass(owner);
return ownerMetaClass.invokeMissingProperty(owner, propertyName, optionalValue, isGetter);
}
use of groovy.lang.MetaClass in project groovy by apache.
the class OwnedMetaClass method getProperty.
@Override
public Object getProperty(Object object, String property) {
final Object owner = getOwner();
final MetaClass ownerMetaClass = getOwnerMetaClass(owner);
return ownerMetaClass.getProperty(owner, property);
}
Aggregations