use of groovy.lang.MetaClass in project groovy by apache.
the class OwnedMetaClass method getAttribute.
@Override
public Object getAttribute(Class sender, Object receiver, String messageName, boolean useSuper) {
final Object owner = getOwner();
final MetaClass ownerMetaClass = getOwnerMetaClass(owner);
return ownerMetaClass.getAttribute(sender, receiver, messageName, useSuper);
}
use of groovy.lang.MetaClass in project groovy by apache.
the class OwnedMetaClass method getStaticMetaMethod.
@Override
public MetaMethod getStaticMetaMethod(String name, Class[] argTypes) {
final Object owner = getOwner();
final MetaClass ownerMetaClass = getOwnerMetaClass(owner);
return ownerMetaClass.getStaticMetaMethod(name, argTypes);
}
use of groovy.lang.MetaClass in project groovy by apache.
the class OwnedMetaClass method getStaticMetaMethod.
@Override
public MetaMethod getStaticMetaMethod(String name, Object[] args) {
final Object owner = getOwner();
final MetaClass ownerMetaClass = getOwnerMetaClass(owner);
return ownerMetaClass.getStaticMetaMethod(name, args);
}
use of groovy.lang.MetaClass in project groovy by apache.
the class OwnedMetaClass method invokeMethod.
@Override
public Object invokeMethod(Object object, String methodName, Object arguments) {
final Object owner = getOwner();
final MetaClass ownerMetaClass = getOwnerMetaClass(owner);
return ownerMetaClass.invokeMethod(owner, methodName, arguments);
}
use of groovy.lang.MetaClass in project groovy by apache.
the class OwnedMetaClass method getMetaMethod.
@Override
public MetaMethod getMetaMethod(String name, Object[] args) {
final Object owner = getOwner();
final MetaClass ownerMetaClass = getOwnerMetaClass(owner);
return ownerMetaClass.getMetaMethod(name, args);
}
Aggregations