String signature,
String superName,
String[] interfaces)
{
if (signature != null) {
SignatureReader sr = new SignatureReader(signature);
SignatureWriter sw = new SignatureWriter();
sr.accept(new CheckSignatureAdapter(CheckSignatureAdapter.CLASS_SIGNATURE,
sw));
assertEquals(signature, sw.toString());
}
}
@Override
public FieldVisitor visitField(
int access,
String name,
String desc,
String signature,
Object value)
{
if (signature != null) {
SignatureReader sr = new SignatureReader(signature);
SignatureWriter sw = new SignatureWriter();
sr.acceptType(new CheckSignatureAdapter(CheckSignatureAdapter.TYPE_SIGNATURE,
sw));
assertEquals(signature, sw.toString());
}
return null;
}
@Override
public MethodVisitor visitMethod(
int access,
String name,
String desc,
String signature,
String[] exceptions)
{
if (signature != null) {
SignatureReader sr = new SignatureReader(signature);
SignatureWriter sw = new SignatureWriter();
sr.accept(new CheckSignatureAdapter(CheckSignatureAdapter.METHOD_SIGNATURE,
sw));
assertEquals(signature, sw.toString());
}
return null;
}