CONSTANT_MethodType_info structure, or a symbolic reference
to a method type, in the constant pool of a class file.
The use of a MethodTypeEntry is modeled by a MethodTypeDesc.
Conversions are through ConstantPoolBuilder#methodTypeEntry(MethodTypeDesc)
and asSymbol().
A method type entry is composite:
MethodTypeEntry(Utf8Entry descriptor)
descriptor is a method descriptor
string.
CONSTANT_MethodType_info Structure
| Modifier and Type | Method and Description |
|---|---|
| public MethodTypeDesc | Returns: a symbolic descriptor for the method typeReturns a symbolic descriptor for the method type. |
| public default ConstantDesc | constantValue()
Implements java. Returns a symbolic descriptor of this constant. |
| public Utf8Entry | |
| public boolean | Returns: whether this entry describes the given method typethe method type descriptor desc)Returns whether this entry describes the given method type. |
| asSymbol | back to summary |
|---|---|
| public MethodTypeDesc asSymbol() Returns a symbolic descriptor for the method type. API Note If only symbol equivalence is desired,
| |
| constantValue | back to summary |
|---|---|
| public default ConstantDesc constantValue() Implements java. Doc from java. Returns a symbolic descriptor of this constant.
This is equivalent to
| |
| descriptor | back to summary |
|---|---|
| public Utf8Entry descriptor() Returns the method descriptor string.
| |
| matches | back to summary |
|---|---|
| public boolean matches(MethodTypeDesc desc) Returns whether this entry describes the given method type.
| |