protected static enum Advice.StackMapFrameHandler.Default.TranslationMode extends Enum<Advice.StackMapFrameHandler.Default.TranslationMode>
| Enum Constant and Description | 
|---|
| COPYA translation mode that simply copies the original frames which are available when translating frames of the instrumented method. | 
| ENTERA translation mode for the enter advice that considers that the  thisreference might not be initialized for a constructor. | 
| EXITA translation mode for an exit advice where the  thisreference is always initialized. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected abstract int | copy(TypeDescription instrumentedType,
    MethodDescription instrumentedMethod,
    Object[] localVariable,
    Object[] translated)Copies the fixed parameters of the instrumented method onto the operand stack. | 
| protected abstract boolean | isPossibleThisFrameValue(TypeDescription instrumentedType,
                        MethodDescription instrumentedMethod,
                        Object frame)Checks if a variable value in a stack map frame is a legal value for describing a  thisreference. | 
| static Advice.StackMapFrameHandler.Default.TranslationMode | valueOf(String name)Returns the enum constant of this type with the specified name. | 
| static Advice.StackMapFrameHandler.Default.TranslationMode[] | values()Returns an array containing the constants of this enum type, in
the order they are declared. | 
public static final Advice.StackMapFrameHandler.Default.TranslationMode COPY
public static final Advice.StackMapFrameHandler.Default.TranslationMode ENTER
this reference might not be initialized for a constructor.public static final Advice.StackMapFrameHandler.Default.TranslationMode EXIT
this reference is always initialized.public static Advice.StackMapFrameHandler.Default.TranslationMode[] values()
for (Advice.StackMapFrameHandler.Default.TranslationMode c : Advice.StackMapFrameHandler.Default.TranslationMode.values()) System.out.println(c);
public static Advice.StackMapFrameHandler.Default.TranslationMode 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 nullprotected abstract int copy(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Object[] localVariable, Object[] translated)
instrumentedType - The instrumented type.instrumentedMethod - The instrumented method.localVariable - The original local variable array.translated - The array containing the translated frames.protected abstract boolean isPossibleThisFrameValue(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Object frame)
this reference.instrumentedType - The instrumented type.instrumentedMethod - The instrumented method.frame - The frame value representing the this reference.true if the value is a legal representation of the this reference.Copyright © 2014–2025. All rights reserved.