public abstract class PlasticClassHandleShim extends Object
FieldHandle
and MethodHandle
implementations for a particular,
instantiated PlasticClass
.Constructor and Description |
---|
PlasticClassHandleShim() |
Modifier and Type | Method and Description |
---|---|
Object |
get(Object instance,
int fieldIndex)
Gets the field at the given index.
|
MethodInvocationResult |
invoke(Object instance,
int methodIndex,
Object[] arguments)
Invokes a method.
|
void |
set(Object instance,
int fieldIndex,
Object newValue)
Sets the value of a field.
|
public PlasticClassHandleShim()
public Object get(Object instance, int fieldIndex)
instance
- object to read instance field fromfieldIndex
- assigned index for the fieldFieldHandle.get(Object)
public void set(Object instance, int fieldIndex, Object newValue)
instance
- object to update instance field infieldIndex
- assigned index for the fieldnewValue
- new value for fieldFieldHandle.set(Object, Object)
public MethodInvocationResult invoke(Object instance, int methodIndex, 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.