javassist.bytecode
public class SignatureAttribute extends AttributeInfo
Signature_attribute
.Modifier and Type | Class and Description |
---|---|
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.
|
static class |
SignatureAttribute.NestedClassType
Nested class types.
|
static class |
SignatureAttribute.ObjectType
Class types, array types, and type variables.
|
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.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
tag
The name of this attribute
"Signature" . |
Constructor and Description |
---|
SignatureAttribute(ConstPool cp,
java.lang.String signature)
Constructs a Signature attribute.
|
Modifier and Type | Method and Description |
---|---|
AttributeInfo |
copy(ConstPool newCp,
java.util.Map classnames)
Makes a copy.
|
java.lang.String |
getSignature()
Returns the signature indicated by
signature_index . |
static SignatureAttribute.ClassSignature |
toClassSignature(java.lang.String sig)
Parses the given signature string as a class signature.
|
static SignatureAttribute.ObjectType |
toFieldSignature(java.lang.String sig)
Parses the given signature string as a field type signature.
|
static SignatureAttribute.MethodSignature |
toMethodSignature(java.lang.String sig)
Parses the given signature string as a method type signature.
|
get, getConstPool, getName, length, set
public static final java.lang.String tag
"Signature"
.public SignatureAttribute(ConstPool cp, java.lang.String signature)
cp
- a constant pool table.signature
- the signature represented by this attribute.public java.lang.String getSignature()
signature_index
.public AttributeInfo copy(ConstPool newCp, java.util.Map classnames)
Map
object.copy
in class AttributeInfo
newCp
- the constant pool table used by the new copy.classnames
- pairs of replaced and substituted
class names.public static SignatureAttribute.ClassSignature toClassSignature(java.lang.String sig) throws BadBytecode
sig
- the signature.BadBytecode
- thrown when a syntactical error is found.public static SignatureAttribute.MethodSignature toMethodSignature(java.lang.String sig) throws BadBytecode
sig
- the signature.BadBytecode
- thrown when a syntactical error is found.public static SignatureAttribute.ObjectType toFieldSignature(java.lang.String sig) throws BadBytecode
sig
- the signature string.BadBytecode
- thrown when a syntactical error is found.Javassist, a Java-bytecode translator toolkit.
Copyright (C) 1999-2008 Shigeru Chiba. All Rights Reserved.