Class PlasticClassHandleShim
- java.lang.Object
 - 
- org.apache.tapestry5.internal.plastic.PlasticClassHandleShim
 
 
- 
public abstract class PlasticClassHandleShim extends Object
The interface for a "shim" class that provides the necessary hooks needed byFieldHandleandMethodHandleimplementations for a particular, instantiatedPlasticClass. 
- 
- 
Constructor Summary
Constructors Constructor Description PlasticClassHandleShim() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectget(Object instance, int fieldIndex)Gets the field at the given index.MethodInvocationResultinvoke(Object instance, int methodIndex, Object[] arguments)Invokes a method.voidset(Object instance, int fieldIndex, Object newValue)Sets the value of a field. 
 - 
 
- 
- 
Constructor Detail
- 
PlasticClassHandleShim
public PlasticClassHandleShim()
 
 - 
 
- 
Method Detail
- 
get
public Object get(Object instance, int fieldIndex)
Gets the field at the given index.- Parameters:
 instance- object to read instance field fromfieldIndex- assigned index for the field- Returns:
 - the field's value
 - See Also:
 FieldHandle.get(Object)
 
- 
set
public void set(Object instance, int fieldIndex, Object newValue)
Sets the value of a field.- Parameters:
 instance- object to update instance field infieldIndex- assigned index for the fieldnewValue- new value for field- See Also:
 FieldHandle.set(Object, Object)
 
- 
invoke
public MethodInvocationResult invoke(Object instance, int methodIndex, Object[] arguments)
Invokes a method.- Parameters:
 instance- object to invoke a method uponmethodIndex- assigned index for the methodarguments- arguments to pass to the method- Returns:
 - result of invoking the method
 
 
 - 
 
 -