Interface ExpressionWriter

All Known Implementing Classes:
AbstractStatementAwareExpressionWriter

public sealed interface ExpressionWriter permits AbstractStatementAwareExpressionWriter (not exhaustive)
The expression writer.
Since:
1.5
Author:
Denis Stepanov
  • Method Details

    • of

      static ExpressionWriter of(ExpressionDef expressionDef)
      Create a writer from an expression.
      Parameters:
      expressionDef - The expression
      Returns:
      the writer
    • writeExpression

      static void writeExpression(org.objectweb.asm.commons.GeneratorAdapter generatorAdapter, MethodContext context, ExpressionDef expressionDef)
    • writeExpressionCheckCast

      static void writeExpressionCheckCast(org.objectweb.asm.commons.GeneratorAdapter generatorAdapter, MethodContext context, ExpressionDef expressionDef, TypeDef expectedType)
    • writeInvocation

      static void writeInvocation(org.objectweb.asm.commons.GeneratorAdapter generatorAdapter, MethodContext context, InvocationPlan plan)
      Writes the arguments of an invocation, converted to the parameters it plans, and emits it and the conversion of its result. The receiver, if any, is written first by the caller as the plan says.
      Parameters:
      generatorAdapter - The adapter
      context - The method context
      plan - The invocation
      Since:
      2.3
    • write

      void write(org.objectweb.asm.commons.GeneratorAdapter generatorAdapter, MethodContext context)
      Write the expression.
      Parameters:
      generatorAdapter - The adapter
      context - The method context