18 Signature Test Tool 2.0 User’s Guide April 2008
Signature File Body
The remaining body of a signature file immediately follows the header.It contains
the following information, which is further clarified in TABLE2-4:
For each public or protected class, all modifiers except strictfp, and the
fully qualified name of any superclass or interfaces implemented, generic type
parameters, and annotations.
Foreach public or protected interface, all modifiers except strictfp, and the
fully qualified name of any superinterfaces implemented, generic type
parameters, and annotations.
For each public or protected field, all modifiers except transient, the fully
qualified name of the field’s type and its fully qualified name. If the fieldis a
primitive or string constant, the value of the field is included.
For each public or protected method, all modifiers (except native,
synchronized, and strictfp), the fully qualified name of the type of returned
value, the method’s fully qualified name, types of all parameters, and the names
of exceptions declared in a throws clause.
For each public or protected constructor,all modifiers, the fully qualified
name of the constructor,types of all parameters, and any exceptions declared in a
throws clause.
Note – All private types that are used in the definition of a public or
protected item are substituted by their public or protected equivalent if
possible, otherwise an error is generated. All types included in a signature file are
either public or protected and not private or package local.
TABLE2-4 further summarizes the contents of a generated signature file. A plus (+)
indicates a class modifier is included in a generated signature file and a minus (-)
indicates it is ignored for that particular element. A blank cell indicates that the
condition does not apply to a cell, for example, a class does not have a transient
modifier so it is blank.
TABLE2-4 Signature File Content Summary
Modifier Classor
Interface Field Method Constructor Nested Class
orInterface
public +++++
protected ++++
abstract +++
static ++ +
final +++ +