use of groovy.lang.MetaClass in project groovy by apache.
the class OwnedMetaClass method getTheClass.
@Override
public Class getTheClass() {
final Object owner = getOwner();
final MetaClass ownerMetaClass = getOwnerMetaClass(owner);
return ownerMetaClass.getTheClass();
}
use of groovy.lang.MetaClass in project groovy by apache.
the class OwnedMetaClass method setAttribute.
@Override
public void setAttribute(Object object, String attribute, Object newValue) {
final Object owner = getOwner();
final MetaClass ownerMetaClass = getOwnerMetaClass(owner);
ownerMetaClass.setAttribute(object, attribute, newValue);
}
use of groovy.lang.MetaClass in project groovy by apache.
the class OwnedMetaClass method setAttribute.
@Override
public void setAttribute(Class sender, Object receiver, String messageName, Object messageValue, boolean useSuper, boolean fromInsideClass) {
final Object owner = getOwner();
final MetaClass ownerMetaClass = getOwnerMetaClass(owner);
ownerMetaClass.setAttribute(sender, owner, messageName, messageValue, useSuper, fromInsideClass);
}
use of groovy.lang.MetaClass in project groovy by apache.
the class OwnedMetaClass method getProperties.
@Override
public List<MetaProperty> getProperties() {
final Object owner = getOwner();
final MetaClass ownerMetaClass = getOwnerMetaClass(owner);
return ownerMetaClass.getProperties();
}
use of groovy.lang.MetaClass in project groovy by apache.
the class OwnedMetaClass method invokeStaticMethod.
@Override
public Object invokeStaticMethod(Object object, String methodName, Object[] arguments) {
final Object owner = getOwner();
final MetaClass ownerMetaClass = getOwnerMetaClass(owner);
return ownerMetaClass.invokeStaticMethod(object, methodName, arguments);
}
Aggregations