Signature attribute (JVMS 4.7.9), which indicates the generic signature of this structure.
This attribute appears on classes, fields, methods, and record components, and does not permit multiple instances in one structure. It has a data dependency on the constant pool.
The attribute was introduced in the Java SE Platform version 5.0, major version 49.
Signature Attribute
Signature, ClassSignature, MethodSignature
| Modifier and Type | Method and Description |
|---|---|
| public default ClassSignature | |
| public default MethodSignature | |
| public default Signature | |
| public static SignatureAttribute | Returns: aSignature attribute for a classthe class signature classSignature)Returns a |
| public static SignatureAttribute | Returns: aSignature attribute for a methodthe method signature methodSignature)Returns a |
| public static SignatureAttribute | |
| public static SignatureAttribute | |
| public Utf8Entry | Returns: the signature string for the class, method, field, or record componentReturns the signature string for the class, method, field, or record component. |
| asClassSignature | back to summary |
|---|---|
| public default ClassSignature asClassSignature() Parses the signature string as a class signature.
| |
| asMethodSignature | back to summary |
|---|---|
| public default MethodSignature asMethodSignature() Parse the signature string as a method signature.
| |
| asTypeSignature | back to summary |
|---|---|
| public default Signature asTypeSignature() Parses the signature string as a Java type signature.
| |
| of | back to summary |
|---|---|
| public static SignatureAttribute of(ClassSignature classSignature) Returns a
| |
| of | back to summary |
|---|---|
| public static SignatureAttribute of(MethodSignature methodSignature) Returns a
| |
| of | back to summary |
|---|---|
| public static SignatureAttribute of(Signature signature) Returns a
| |
| of | back to summary |
|---|---|
| public static SignatureAttribute of(Utf8Entry signature) Returns a
| |
| signature | back to summary |
|---|---|
| public Utf8Entry signature() Returns the signature string for the class, method, field, or record component. It is a class signature string if this attribute is on a class, a method signature string if this attribute is on a method, or a field signature string if this attribute is on a field or a record component.
| |