Class PlasticClassHandleShim
java.lang.Object
org.apache.tapestry5.internal.plastic.PlasticClassHandleShim
The interface for a "shim" class that provides the necessary hooks needed
by
FieldHandle
and MethodHandle
implementations for a particular,
instantiated PlasticClass
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the field at the given index.Invokes a method.void
Sets the value of a field.
-
Constructor Details
-
PlasticClassHandleShim
public PlasticClassHandleShim()
-
-
Method Details
-
get
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:
-
set
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:
-
invoke
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
-