public static enum Advice.Dispatcher.RelocationHandler.ForValue extends Enum<Advice.Dispatcher.RelocationHandler.ForValue> implements Advice.Dispatcher.RelocationHandler
Modifier and Type | Class and Description |
---|---|
protected class |
Advice.Dispatcher.RelocationHandler.ForValue.Bound
A bound relocation handler for
Advice.Dispatcher.RelocationHandler.ForValue . |
protected class |
Advice.Dispatcher.RelocationHandler.ForValue.Inverted
An inverted version of the outer relocation handler.
|
Advice.Dispatcher.RelocationHandler.Disabled, Advice.Dispatcher.RelocationHandler.ForType, Advice.Dispatcher.RelocationHandler.ForValue, Advice.Dispatcher.RelocationHandler.Relocation
Enum Constant and Description |
---|
DOUBLE
A relocation handler for a
double type. |
FLOAT
A relocation handler for a
float type. |
INTEGER
A relocation handler for an
int type or any compatible type. |
LONG
A relocation handler for a
long type. |
REFERENCE
A relocation handler for a reference type.
|
Modifier and Type | Method and Description |
---|---|
Advice.Dispatcher.RelocationHandler.Bound |
bind(MethodDescription instrumentedMethod,
Advice.Dispatcher.RelocationHandler.Relocation relocation)
Binds this relocation handler to a relocation dispatcher.
|
protected abstract void |
convertValue(org.objectweb.asm.MethodVisitor methodVisitor)
Applies a value conversion prior to a applying a conditional jump.
|
protected static Advice.Dispatcher.RelocationHandler |
of(TypeDefinition typeDefinition,
boolean inverted)
Resolves a relocation handler for a given type.
|
static Advice.Dispatcher.RelocationHandler.ForValue |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Advice.Dispatcher.RelocationHandler.ForValue[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Advice.Dispatcher.RelocationHandler.ForValue INTEGER
int
type or any compatible type.public static final Advice.Dispatcher.RelocationHandler.ForValue LONG
long
type.public static final Advice.Dispatcher.RelocationHandler.ForValue FLOAT
float
type.public static final Advice.Dispatcher.RelocationHandler.ForValue DOUBLE
double
type.public static final Advice.Dispatcher.RelocationHandler.ForValue REFERENCE
public static Advice.Dispatcher.RelocationHandler.ForValue[] values()
for (Advice.Dispatcher.RelocationHandler.ForValue c : Advice.Dispatcher.RelocationHandler.ForValue.values()) System.out.println(c);
public static Advice.Dispatcher.RelocationHandler.ForValue 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 static Advice.Dispatcher.RelocationHandler of(TypeDefinition typeDefinition, boolean inverted)
typeDefinition
- The type to be resolved for a relocation attempt.inverted
- true
if the relocation should be applied for any non-default value of a type.protected abstract void convertValue(org.objectweb.asm.MethodVisitor methodVisitor)
methodVisitor
- The method visitor to use.public Advice.Dispatcher.RelocationHandler.Bound bind(MethodDescription instrumentedMethod, Advice.Dispatcher.RelocationHandler.Relocation relocation)
bind
in interface Advice.Dispatcher.RelocationHandler
instrumentedMethod
- The instrumented method.relocation
- The relocation to apply.Copyright © 2014–2018. All rights reserved.