Interface InjectedArgument

All Known Implementing Classes:
ConstantPrimitive, ConstantString, LocalVariable, PrimitiveArrayConstantArgument

public interface InjectedArgument
This interface defines an API for modeling arguments to be passed to the method invocation instructions that are injected by CodeInjector.
  • Method Details

    • getValue

      Object getValue()
    • getInternalType

      String getInternalType()
    • pushToStack

      default void pushToStack(InstructionSequenceBuilder code)
      Pushes an argument to the stack, adjusting the internal type in case it is an array.
      Parameters:
      code - InstructionSequenceBuilder to add the pushing instructions.