Package net.bytebuddy.utility
Interface JavaConstant
-
- All Known Implementing Classes:
JavaConstant.Dynamic
,JavaConstant.MethodHandle
,JavaConstant.MethodType
public interface JavaConstant
Returns a Java instance of an object that has a special meaning to the Java virtual machine and that is not available to Java in versions 6.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
JavaConstant.Dynamic
Represents a dynamically resolved constant pool entry of a class file.static class
JavaConstant.MethodHandle
Represents ajava.lang.invoke.MethodHandle
object.static class
JavaConstant.MethodType
Represents ajava.lang.invoke.MethodType
object.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Object
asConstantPoolValue()
Returns the represented instance as a constant pool value.TypeDescription
getType()
Returns a description of the type of the represented instance or at least a stub.
-
-
-
Method Detail
-
asConstantPoolValue
java.lang.Object asConstantPoolValue()
Returns the represented instance as a constant pool value.- Returns:
- The constant pool value in a format that can be written by ASM.
-
getType
TypeDescription getType()
Returns a description of the type of the represented instance or at least a stub.- Returns:
- A description of the type of the represented instance or at least a stub.
-
-