public interface JavaConstant
| Modifier and Type | Interface and Description | 
|---|---|
| static class  | JavaConstant.DynamicRepresents a dynamically resolved constant pool entry of a class file. | 
| static class  | JavaConstant.MethodHandleRepresents a  java.lang.invoke.MethodHandleobject. | 
| static class  | JavaConstant.MethodTypeRepresents a  java.lang.invoke.MethodTypeobject. | 
| static class  | JavaConstant.Simple<T> | 
| static interface  | JavaConstant.Visitor<T>A visitor to resolve a  JavaConstantbased on its implementation. | 
| Modifier and Type | Method and Description | 
|---|---|
| <T> T | accept(JavaConstant.Visitor<T> visitor)Applies the supplied visitor to this constant type with its respective callback. | 
| TypeDescription | getTypeDescription()Returns a description of the type of the represented instance or at least a stub. | 
| Object | toDescription()Returns this constant as a Java  java.lang.constant.ConstantDescif the current VM is of at least version 12. | 
Object toDescription()
java.lang.constant.ConstantDesc if the current VM is of at least version 12.
 If the current VM is of an older version and does not support the type, an exception is thrown.java.lang.constant.ConstantDesc.TypeDescription getTypeDescription()
<T> T accept(JavaConstant.Visitor<T> visitor)
T - The type of the value that is returned by the visitor.visitor - The visitor to dispatch.Copyright © 2014–1970. All rights reserved.