Top Description Inners Methods
net.bytebuddy.utility

public Interface JavaConstant

extends ConstantValue
Known Direct Implementers
net.bytebuddy.utility.JavaConstant.Simple, net.bytebuddy.utility.JavaConstant.MethodType, net.bytebuddy.utility.JavaConstant.MethodHandle, net.bytebuddy.utility.JavaConstant.Dynamic
Imports
edu.umd.cs.findbugs.annotations.SuppressFBWarnings, net.bytebuddy.ClassFileVersion, net.bytebuddy.build.AccessControllerPlugin, net.bytebuddy.description.enumeration.EnumerationDescription, net.bytebuddy.description.field.FieldDescription, net.bytebuddy.description.method.MethodDescription, net.bytebuddy.description.type.TypeDescription, .TypeList, net.bytebuddy.dynamic.ClassFileLocator, net.bytebuddy.implementation.bytecode.StackManipulation, net.bytebuddy.implementation.bytecode.constant.*, net.bytebuddy.pool.TypePool, net.bytebuddy.utility.dispatcher.JavaDispatcher, net.bytebuddy.utility.nullability.MaybeNull, net.bytebuddy.jar.asm.Opcodes, .Type, java.lang.reflect.Constructor, .Field, .Method, java.security.PrivilegedAction, java.util.*

Represents a constant-pool constant within a Java class file.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
JavaConstant.Dynamic

Represents a dynamically resolved constant pool entry of a class file.

public static class
JavaConstant.MethodHandle

Represents a java.lang.invoke.MethodHandle object.

public static class
JavaConstant.MethodType

Represents a java.lang.invoke.MethodType object.

public abstract static class
JavaConstant.Simple<
The represented type.
T
>

Represents a simple Java constant, either a primitive constant, a String or a Class.

public static interface
JavaConstant.Visitor<
The type of the value that is returned by this visitor.
T
>

A visitor to resolve a JavaConstant based on its implementation.

Method Summary

Modifier and TypeMethod and Description
public <
The type of the value that is returned by the visitor.
T
>
T

Returns:

The value that is returned by the supplied visitor.
accept
(JavaConstant.Visitor<T>
The visitor to dispatch.
visitor
)

Applies the supplied visitor to this constant type with its respective callback.

public Object

Returns:

This constant as a Java java.lang.constant.ConstantDesc.
toDescription
()

Returns this constant as a Java java.lang.constant.ConstantDesc if the current VM is of at least version 12.

Inherited from net.bytebuddy.utility.ConstantValue:
getTypeDescriptiontoStackManipulation