use of groovy.lang.MetaClass in project groovy by apache.
the class OwnedMetaClass method respondsTo.
@Override
public List<MetaMethod> respondsTo(Object obj, String name, Object[] argTypes) {
final Object owner = getOwner();
final MetaClass ownerMetaClass = getOwnerMetaClass(owner);
return ownerMetaClass.respondsTo(owner, name, argTypes);
}
use of groovy.lang.MetaClass in project groovy by apache.
the class OwnedMetaClass method respondsTo.
@Override
public List<MetaMethod> respondsTo(Object obj, String name) {
final Object owner = getOwner();
final MetaClass ownerMetaClass = getOwnerMetaClass(owner);
return ownerMetaClass.respondsTo(owner, name);
}
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 getClassNode.
@Override
public ClassNode getClassNode() {
final Object owner = getOwner();
final MetaClass ownerMetaClass = getOwnerMetaClass(owner);
return ownerMetaClass.getClassNode();
}
use of groovy.lang.MetaClass in project groovy by apache.
the class OwnedMetaClass method getMetaMethods.
@Override
public List<MetaMethod> getMetaMethods() {
final Object owner = getOwner();
final MetaClass ownerMetaClass = getOwnerMetaClass(owner);
return ownerMetaClass.getMetaMethods();
}
Aggregations