public static enum JavaConstantValue.Visitor extends Enum<JavaConstantValue.Visitor> implements JavaConstant.Visitor<Object>
JavaConstant to a ASM constant pool representation.JavaConstant.Visitor.NoOp| Enum Constant and Description | 
|---|
INSTANCE
The singleton instance. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
ConstantDynamic | 
onDynamic(JavaConstant.Dynamic constant)
Invoked on a  
JavaConstant.Dynamic constant. | 
Handle | 
onMethodHandle(JavaConstant.MethodHandle constant)
Invoked on a constant that represents a  
JavaConstant.MethodHandle. | 
Type | 
onMethodType(JavaConstant.MethodType constant)
Invoked on a constant that represents a  
JavaConstant.MethodType. | 
Type | 
onType(JavaConstant.Simple<TypeDescription> constant)
Invoked on a  
JavaConstant.Simple constant that represents a TypeDescription. | 
Object | 
onValue(JavaConstant.Simple<?> constant)
Invoked on a  
JavaConstant.Simple constant that represents itself. | 
static JavaConstantValue.Visitor | 
valueOf(String name)
Returns the enum constant of this type with the specified name. 
 | 
static JavaConstantValue.Visitor[] | 
values()
Returns an array containing the constants of this enum type, in
the order they are declared. 
 | 
public static final JavaConstantValue.Visitor INSTANCE
public static JavaConstantValue.Visitor[] values()
for (JavaConstantValue.Visitor c : JavaConstantValue.Visitor.values()) System.out.println(c);
public static JavaConstantValue.Visitor 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 Object onValue(JavaConstant.Simple<?> constant)
JavaConstant.Simple constant that represents itself. Such values are of type
 Integer, Long, Float, Double or String.onValue in interface JavaConstant.Visitor<Object>constant - The simple constant.public Type onType(JavaConstant.Simple<TypeDescription> constant)
JavaConstant.Simple constant that represents a TypeDescription.onType in interface JavaConstant.Visitor<Object>constant - The simple constant.public Type onMethodType(JavaConstant.MethodType constant)
JavaConstant.MethodType.onMethodType in interface JavaConstant.Visitor<Object>constant - The method type constant.public Handle onMethodHandle(JavaConstant.MethodHandle constant)
JavaConstant.MethodHandle.onMethodHandle in interface JavaConstant.Visitor<Object>constant - The method handle constant.public ConstantDynamic onDynamic(JavaConstant.Dynamic constant)
JavaConstant.Dynamic constant.onDynamic in interface JavaConstant.Visitor<Object>constant - The dynamic constant.Copyright © 2014–2024. All rights reserved.