public abstract class PlasticClassHandleShim extends java.lang.Object
FieldHandle
and MethodHandle
implementations for a particular,
instantiated PlasticClass
.Constructor and Description |
---|
PlasticClassHandleShim() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
get(java.lang.Object instance,
int fieldIndex)
Gets the field at the given index.
|
MethodInvocationResult |
invoke(java.lang.Object instance,
int methodIndex,
java.lang.Object[] arguments)
Invokes a method.
|
void |
set(java.lang.Object instance,
int fieldIndex,
java.lang.Object newValue)
Sets the value of a field.
|
public PlasticClassHandleShim()
public java.lang.Object get(java.lang.Object instance, int fieldIndex)
instance
- object to read instance field fromfieldIndex
- assigned index for the fieldFieldHandle.get(Object)
public void set(java.lang.Object instance, int fieldIndex, java.lang.Object newValue)
instance
- object to update instance field infieldIndex
- assigned index for the fieldnewValue
- new value for fieldFieldHandle.set(Object, Object)
public MethodInvocationResult invoke(java.lang.Object instance, int methodIndex, java.lang.Object[] arguments)
instance
- object to invoke a method uponmethodIndex
- assigned index for the methodarguments
- arguments to pass to the method${project.version} - Copyright © 2003-2015 The Apache Software Foundation.