saker.build Documentation TaskDoc JavaDoc Packages
public class SignatureReader
A parser for signature literals, as defined in the Java Virtual Machine Specification (JVMS), to visit them with a SignatureVisitor.
Constructors
public
Constructs a SignatureReader for the given signature.
Methods
public void
accept(SignatureVisitor signatureVistor)
Makes the given visitor visit the signature of this SignatureReader.
public void
acceptType(SignatureVisitor signatureVisitor)
Makes the given visitor visit the signature of this SignatureReader.
public SignatureReader(String signature)
Constructs a SignatureReader for the given signature.
signatureA JavaTypeSignature, ClassSignature or MethodSignature.
public void accept(SignatureVisitor signatureVistor)
Makes the given visitor visit the signature of this SignatureReader. This signature is the one specified in the constructor (see SignatureReader(String)). This method is intended to be called on a SignatureReader that was created using a ClassSignature (such as the signature parameter of the ClassVisitor.visit(int, int, String, String, String, String[]) method) or a MethodSignature (such as the signature parameter of the ClassVisitor.visitMethod(int, String, String, String, String[]) method).
signatureVistorthe visitor that must visit this signature.
public void acceptType(SignatureVisitor signatureVisitor)
Makes the given visitor visit the signature of this SignatureReader. This signature is the one specified in the constructor (see SignatureReader(String)). This method is intended to be called on a SignatureReader that was created using a JavaTypeSignature, such as the signature parameter of the ClassVisitor.visitField(int, String, String, String, Object) or MethodVisitor.visitLocalVariable(String, String, String, Label, Label, int) methods.
signatureVisitorthe visitor that must visit this signature.