javassist.bytecode
public class SignatureAttribute extends AttributeInfo
Signature_attribute
.
Nested Class Summary | |
---|---|
static class | SignatureAttribute.ArrayType
Array types. |
static class | SignatureAttribute.BaseType
Primitive types. |
static class | SignatureAttribute.ClassSignature
Class signature. |
static class | SignatureAttribute.ClassType
Class types. |
static class | SignatureAttribute.MethodSignature
Method type signature. |
abstract static class | SignatureAttribute.ObjectType
Class types, array types, and type variables. |
abstract static class | SignatureAttribute.Type
Primitive types and object types. |
static class | SignatureAttribute.TypeArgument
Type argument. |
static class | SignatureAttribute.TypeParameter
Formal type parameters. |
static class | SignatureAttribute.TypeVariable
Type variables. |
Field Summary | |
---|---|
static String | tag
The name of this attribute "Signature" . |
Constructor Summary | |
---|---|
SignatureAttribute(ConstPool cp, String signature)
Constructs a Signature attribute.
|
Method Summary | |
---|---|
AttributeInfo | copy(ConstPool newCp, Map classnames)
Makes a copy. |
String | getSignature()
Returns the signature indicated by signature_index .
|
static SignatureAttribute.ClassSignature | toClassSignature(String sig)
Parses the given signature string as a class signature.
|
static SignatureAttribute.ObjectType | toFieldSignature(String sig)
Parses the given signature string as a field type signature.
|
static SignatureAttribute.MethodSignature | toMethodSignature(String sig)
Parses the given signature string as a method type signature.
|
"Signature"
.Parameters: cp a constant pool table. signature the signature represented by this attribute.
Map
object.
Parameters: newCp the constant pool table used by the new copy. classnames pairs of replaced and substituted class names.
signature_index
.
See Also: toClassSignature toMethodSignature
Parameters: sig the signature.
Throws: BadBytecode thrown when a syntactical error is found.
Since: 3.5
Parameters: sig the signature string.
Returns: the field type signature.
Throws: BadBytecode thrown when a syntactical error is found.
Since: 3.5
Parameters: sig the signature.
Throws: BadBytecode thrown when a syntactical error is found.
Since: 3.5