public class SignatureAttribute extends AttributeInfo
Signature_attribute.| Modifier and Type | Class and Description | 
|---|---|
| static class  | SignatureAttribute.ArrayTypeArray types. | 
| static class  | SignatureAttribute.BaseTypePrimitive types. | 
| static class  | SignatureAttribute.ClassSignatureClass signature. | 
| static class  | SignatureAttribute.ClassTypeClass types. | 
| static class  | SignatureAttribute.MethodSignatureMethod type signature. | 
| static class  | SignatureAttribute.NestedClassTypeNested class types. | 
| static class  | SignatureAttribute.ObjectTypeClass types, array types, and type variables. | 
| static class  | SignatureAttribute.TypePrimitive types and object types. | 
| static class  | SignatureAttribute.TypeArgumentType argument. | 
| static class  | SignatureAttribute.TypeParameterFormal type parameters. | 
| static class  | SignatureAttribute.TypeVariableType variables. | 
| Modifier and Type | Field and Description | 
|---|---|
| static String | tagThe name of this attribute  "Signature". | 
constPool| Constructor and Description | 
|---|
| SignatureAttribute(ConstPool cp,
                  String signature)Constructs a  Signatureattribute. | 
| Modifier and Type | Method and Description | 
|---|---|
| AttributeInfo | copy(ConstPool newCp,
    Map classnames)Makes a copy. | 
| String | getSignature()Returns the generic signature indicated by  signature_index. | 
| void | setSignature(String sig)Sets  signature_indexto the index of the given generic signature,
 which is added to a constant pool. | 
| 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. | 
| static SignatureAttribute.Type | toTypeSignature(String sig)Parses the given signature string as a type signature. | 
get, getConstPool, getName, length, setpublic static final String tag
"Signature".public String getSignature()
signature_index.public void setSignature(String sig)
signature_index to the index of the given generic signature,
 which is added to a constant pool.sig - new signature.public AttributeInfo copy(ConstPool newCp, Map classnames)
Map object.copy in class AttributeInfonewCp - the constant pool table used by the new copy.classnames - pairs of replaced and substituted
                          class names.public static SignatureAttribute.ClassSignature toClassSignature(String sig) throws BadBytecode
sig - the signature obtained from the SignatureAttribute
                              of a ClassFile.BadBytecode - thrown when a syntactical error is found.getSignature()public static SignatureAttribute.MethodSignature toMethodSignature(String sig) throws BadBytecode
sig - the signature obtained from the SignatureAttribute
                              of a MethodInfo.BadBytecode - thrown when a syntactical error is found.getSignature()public static SignatureAttribute.ObjectType toFieldSignature(String sig) throws BadBytecode
sig - the signature string obtained from the SignatureAttribute
                              of a FieldInfo.BadBytecode - thrown when a syntactical error is found.getSignature()public static SignatureAttribute.Type toTypeSignature(String sig) throws BadBytecode
void type.BadBytecode - thrown when a syntactical error is found.Copyright © 2016 Shigeru Chiba, www.javassist.org. All Rights Reserved.