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 by FieldHandle and MethodHandle implementations for a particular, instantiated PlasticClass.
  • Constructor Details

  • Method Details

    • get

      public Object get(Object instance, int fieldIndex)
      Gets the field at the given index.
      Parameters:
      instance - object to read instance field from
      fieldIndex - assigned index for the field
      Returns:
      the field's value
      See Also:
    • set

      public void set(Object instance, int fieldIndex, Object newValue)
      Sets the value of a field.
      Parameters:
      instance - object to update instance field in
      fieldIndex - assigned index for the field
      newValue - new value for field
      See Also:
    • invoke

      public MethodInvocationResult invoke(Object instance, int methodIndex, Object[] arguments)
      Invokes a method.
      Parameters:
      instance - object to invoke a method upon
      methodIndex - assigned index for the method
      arguments - arguments to pass to the method
      Returns:
      result of invoking the method