T - The type of the value that is returned by this visitor.public static interface JavaConstant.Visitor<T>
JavaConstant based on its implementation.| Modifier and Type | Interface and Description | 
|---|---|
| static class  | JavaConstant.Visitor.NoOpA non-operational implementation of a  JavaConstant.Visitorfor aJavaConstant. | 
| Modifier and Type | Method and Description | 
|---|---|
| T | onDynamic(JavaConstant.Dynamic constant)Invoked on a  JavaConstant.Dynamicconstant. | 
| T | onMethodHandle(JavaConstant.MethodHandle constant)Invoked on a constant that represents a  JavaConstant.MethodHandle. | 
| T | onMethodType(JavaConstant.MethodType constant)Invoked on a constant that represents a  JavaConstant.MethodType. | 
| T | onType(JavaConstant.Simple<TypeDescription> constant)Invoked on a  JavaConstant.Simpleconstant that represents aTypeDescription. | 
| T | onValue(JavaConstant.Simple<?> constant)Invoked on a  JavaConstant.Simpleconstant that represents itself. | 
T onValue(JavaConstant.Simple<?> constant)
JavaConstant.Simple constant that represents itself. Such values are of type
 Integer, Long, Float, Double or String.constant - The simple constant.T onType(JavaConstant.Simple<TypeDescription> constant)
JavaConstant.Simple constant that represents a TypeDescription.constant - The simple constant.T onMethodType(JavaConstant.MethodType constant)
JavaConstant.MethodType.constant - The method type constant.T onMethodHandle(JavaConstant.MethodHandle constant)
JavaConstant.MethodHandle.constant - The method handle constant.T onDynamic(JavaConstant.Dynamic constant)
JavaConstant.Dynamic constant.constant - The dynamic constant.Copyright © 2014–2023. All rights reserved.