groovy / 2.4.21 / groovy / lang / adaptingmetaclass.html /

[Java] Interface AdaptingMetaClass

  • groovy.lang.MetaObjectProtocol
All Superinterfaces:
MetaClass, MetaObjectProtocol

An interface for MetaClass instances that "adapt" other MetaClass instances such as a proxy or delegating MetaClass.

Authors:
Graeme Rocher
Since:
1.5

Methods Summary

Methods
Type Params Return Type Name and description
MetaClass getAdaptee()
Returns the MetaClass that this adapter adapts
void setAdaptee(MetaClass metaClass)
Sets the MetaClass adapted by this MetaClass

Inherited Methods Summary

Inherited Methods
Methods inherited from class Name
interface MetaClass getAttribute, getClassNode, getMetaMethods, getMethods, getProperties, getProperty, initialize, invokeMethod, invokeMissingMethod, invokeMissingProperty, pickMethod, selectConstructorAndTransformArguments, setAttribute, setProperty
interface MetaObjectProtocol getAttribute, getMetaMethod, getMetaProperty, getMethods, getProperties, getProperty, getStaticMetaMethod, getTheClass, hasProperty, invokeConstructor, invokeMethod, invokeMethod, invokeStaticMethod, respondsTo, respondsTo, setAttribute, setProperty

Method Detail

public MetaClass getAdaptee()

Returns the MetaClass that this adapter adapts

Returns:
The MetaClass instance

public void setAdaptee(MetaClass metaClass)

Sets the MetaClass adapted by this MetaClass

Parameters:
metaClass - The MetaClass to adapt

© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/2.4.21/html/gapi/groovy/lang/AdaptingMetaClass.html