Class 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 from
        fieldIndex - 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 in
        fieldIndex - assigned index for the field
        newValue - 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 upon
        methodIndex - assigned index for the method
        arguments - arguments to pass to the method
        Returns:
        result of invoking the method