org.objectweb.asm.signature

Class SignatureReader

public class SignatureReader extends Object

A type signature parser to make a signature visitor visit an existing signature.

Author: Thomas Hallgren Eric Bruneton

Constructor Summary
SignatureReader(String signature)
Constructs a {@link SignatureReader} for the given signature.
Method Summary
voidaccept(SignatureVisitor v)
Makes the given visitor visit the signature of this {@link SignatureReader}.
voidacceptType(SignatureVisitor v)
Makes the given visitor visit the signature of this {@link SignatureReader}.

Constructor Detail

SignatureReader

public SignatureReader(String signature)
Constructs a {@link SignatureReader} for the given signature.

Parameters: signature A ClassSignature, MethodTypeSignature, or FieldTypeSignature.

Method Detail

accept

public void accept(SignatureVisitor v)
Makes the given visitor visit the signature of this {@link SignatureReader}. This signature is the one specified in the constructor (see {@link #SignatureReader(String) SignatureReader}). This method is intended to be called on a {@link SignatureReader} that was created using a ClassSignature (such as the signature parameter of the {@link org.objectweb.asm.ClassVisitor#visit ClassVisitor.visit} method) or a MethodTypeSignature (such as the signature parameter of the {@link org.objectweb.asm.ClassVisitor#visitMethod ClassVisitor.visitMethod} method).

Parameters: v the visitor that must visit this signature.

acceptType

public void acceptType(SignatureVisitor v)
Makes the given visitor visit the signature of this {@link SignatureReader}. This signature is the one specified in the constructor (see {@link #SignatureReader(String) SignatureReader}). This method is intended to be called on a {@link SignatureReader} that was created using a FieldTypeSignature, such as the signature parameter of the {@link org.objectweb.asm.ClassVisitor#visitField ClassVisitor.visitField} or {@link org.objectweb.asm.MethodVisitor#visitLocalVariable MethodVisitor.visitLocalVariable} methods.

Parameters: v the visitor that must visit this signature.