public static enum Implementation.Context.FrameGeneration extends Enum<Implementation.Context.FrameGeneration>
| Enum Constant and Description | 
|---|
DISABLED
Indicates that no frames should be generated. 
 | 
EXPAND
Indicates that frames should be generated and expanded. 
 | 
GENERATE
Indicates that frames should be generated. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
append(MethodVisitor methodVisitor,
      List<? extends TypeDefinition> appended,
      List<? extends TypeDefinition> localVariables)
Inserts a  
Opcodes.F_APPEND frame. | 
void | 
chop(MethodVisitor methodVisitor,
    int chopped,
    List<? extends TypeDefinition> localVariables)
Inserts a  
Opcodes.F_CHOP frame. | 
void | 
full(MethodVisitor methodVisitor,
    List<? extends TypeDefinition> stackValues,
    List<? extends TypeDefinition> localVariables)
Inserts a  
Opcodes.F_FULL frame. | 
protected abstract void | 
generate(MethodVisitor methodVisitor,
        int type,
        int stackCount,
        Object[] stack,
        int changedLocalVariableCount,
        Object[] changedLocalVariable,
        int fullLocalVariableCount,
        Object[] fullLocalVariable)
Writes frames to a  
MethodVisitor, if applicable. | 
boolean | 
isActive()
Returns  
true if frames should be generated. | 
void | 
same(MethodVisitor methodVisitor,
    List<? extends TypeDefinition> localVariables)
Inserts a  
Opcodes.F_SAME frame. | 
void | 
same1(MethodVisitor methodVisitor,
     TypeDefinition stackValue,
     List<? extends TypeDefinition> localVariables)
Inserts a  
Opcodes.F_SAME1 frame. | 
static Implementation.Context.FrameGeneration | 
valueOf(String name)
Returns the enum constant of this type with the specified name. 
 | 
static Implementation.Context.FrameGeneration[] | 
values()
Returns an array containing the constants of this enum type, in
the order they are declared. 
 | 
public static final Implementation.Context.FrameGeneration GENERATE
public static final Implementation.Context.FrameGeneration EXPAND
public static final Implementation.Context.FrameGeneration DISABLED
public static Implementation.Context.FrameGeneration[] values()
for (Implementation.Context.FrameGeneration c : Implementation.Context.FrameGeneration.values()) System.out.println(c);
public static Implementation.Context.FrameGeneration valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic boolean isActive()
true if frames should be generated.true if frames should be generated.public void same(MethodVisitor methodVisitor, List<? extends TypeDefinition> localVariables)
Opcodes.F_SAME frame.methodVisitor - The method visitor to write to.localVariables - The local variables that are defined at this frame location.public void same1(MethodVisitor methodVisitor, TypeDefinition stackValue, List<? extends TypeDefinition> localVariables)
Opcodes.F_SAME1 frame.methodVisitor - The method visitor to write to.stackValue - The single stack value.localVariables - The local variables that are defined at this frame location.public void append(MethodVisitor methodVisitor, List<? extends TypeDefinition> appended, List<? extends TypeDefinition> localVariables)
Opcodes.F_APPEND frame.methodVisitor - The method visitor to write to.appended - The appended local variables.localVariables - The local variables that are defined at this frame location, excluding the ones appended.public void chop(MethodVisitor methodVisitor, int chopped, List<? extends TypeDefinition> localVariables)
Opcodes.F_CHOP frame.methodVisitor - The method visitor to write to.chopped - The number of chopped values.localVariables - The local variables that are defined at this frame location, excluding the chopped variables.public void full(MethodVisitor methodVisitor, List<? extends TypeDefinition> stackValues, List<? extends TypeDefinition> localVariables)
Opcodes.F_FULL frame.methodVisitor - The method visitor to write to.stackValues - The values on the operand stack.localVariables - The local variables that are defined at this frame location.protected abstract void generate(MethodVisitor methodVisitor, int type, int stackCount, @MaybeNull Object[] stack, int changedLocalVariableCount, @MaybeNull Object[] changedLocalVariable, int fullLocalVariableCount, @MaybeNull Object[] fullLocalVariable)
MethodVisitor, if applicable.methodVisitor - The method visitor to usetype - The frame type.stackCount - The number of values on the operand stack.stack - The values on the operand stack up to stackCount, or null, if none.changedLocalVariableCount - The number of local variables that were changed.changedLocalVariable - The values added to the local variable array up to changedLocalVariableCount
                                  or null, if none or not applicable.fullLocalVariableCount - The number of local variables.fullLocalVariable - The total number of local variables up to fullLocalVariableCount or
                                  null, if none.Copyright © 2014–2023. All rights reserved.