Class ExpressionAsVariableSlot

All Implemented Interfaces:
GroovydocHolder<AnnotatedNode>, NodeMetaDataHandler

public class ExpressionAsVariableSlot extends BytecodeExpression
Helper class that takes an Expression and if visited will load it normally, storing the result in a helper variable, which then can be requested after the visit is completed. A copy of the variable will stay on the stack. Subsequent visits will load the stored value instead of visiting the expression again
  • Constructor Details

  • Method Details

    • visit

      public void visit(org.objectweb.asm.MethodVisitor mv)
      Specified by:
      visit in class BytecodeExpression
    • getIndex

      public int getIndex()
      returns the index of the bytecode variable
    • getText

      public String getText()
      Overrides:
      getText in class ASTNode