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 | 
|---|
| INSTANCEThe singleton instance. | 
| Modifier and Type | Method and Description | 
|---|---|
| org.objectweb.asm.ConstantDynamic | onDynamic(JavaConstant.Dynamic constant)Invoked on a  JavaConstant.Dynamicconstant. | 
| org.objectweb.asm.Handle | onMethodHandle(JavaConstant.MethodHandle constant)Invoked on a constant that represents a  JavaConstant.MethodHandle. | 
| org.objectweb.asm.Type | onMethodType(JavaConstant.MethodType constant)Invoked on a constant that represents a  JavaConstant.MethodType. | 
| org.objectweb.asm.Type | onType(JavaConstant.Simple<TypeDescription> constant)Invoked on a  JavaConstant.Simpleconstant that represents aTypeDescription. | 
| Object | onValue(JavaConstant.Simple<?> constant)Invoked on a  JavaConstant.Simpleconstant 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 org.objectweb.asm.Type onType(JavaConstant.Simple<TypeDescription> constant)
JavaConstant.Simple constant that represents a TypeDescription.onType in interface JavaConstant.Visitor<Object>constant - The simple constant.public org.objectweb.asm.Type onMethodType(JavaConstant.MethodType constant)
JavaConstant.MethodType.onMethodType in interface JavaConstant.Visitor<Object>constant - The method type constant.public org.objectweb.asm.Handle onMethodHandle(JavaConstant.MethodHandle constant)
JavaConstant.MethodHandle.onMethodHandle in interface JavaConstant.Visitor<Object>constant - The method handle constant.public org.objectweb.asm.ConstantDynamic onDynamic(JavaConstant.Dynamic constant)
JavaConstant.Dynamic constant.onDynamic in interface JavaConstant.Visitor<Object>constant - The dynamic constant.Copyright © 2014–2021. All rights reserved.