Package net.bytebuddy.utility
Interface JavaConstant
-
- All Known Implementing Classes:
JavaConstant.Dynamic,JavaConstant.MethodHandle,JavaConstant.MethodType
public interface JavaConstantReturns 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 classJavaConstant.DynamicRepresents a dynamically resolved constant pool entry of a class file.static classJavaConstant.MethodHandleRepresents ajava.lang.invoke.MethodHandleobject.static classJavaConstant.MethodTypeRepresents ajava.lang.invoke.MethodTypeobject.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.ObjectasConstantPoolValue()Returns the represented instance as a constant pool value.TypeDescriptiongetType()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.
-
-