Module org.eclipse.persistence.asm
Class SignatureReader
java.lang.Object
org.eclipse.persistence.internal.libraries.asm.signature.SignatureReader
A parser for signature literals, as defined in the Java Virtual Machine Specification (JVMS), to
visit them with a SignatureVisitor.
- See Also:
-
Constructor Summary
ConstructorDescriptionSignatureReader
(String signature) Constructs aSignatureReader
for the given signature. -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(SignatureVisitor signatureVistor) Makes the given visitor visit the signature of thisSignatureReader
.void
acceptType
(SignatureVisitor signatureVisitor) Makes the given visitor visit the signature of thisSignatureReader
.
-
Constructor Details
-
SignatureReader
Constructs aSignatureReader
for the given signature.- Parameters:
signature
- A JavaTypeSignature, ClassSignature or MethodSignature.
-
-
Method Details
-
accept
Makes the given visitor visit the signature of thisSignatureReader
. This signature is the one specified in the constructor (seeSignatureReader(java.lang.String)
). This method is intended to be called on aSignatureReader
that was created using a ClassSignature (such as thesignature
parameter of theClassVisitor.visit(int, int, java.lang.String, java.lang.String, java.lang.String, java.lang.String[])
method) or a MethodSignature (such as thesignature
parameter of theClassVisitor.visitMethod(int, java.lang.String, java.lang.String, java.lang.String, java.lang.String[])
method).- Parameters:
signatureVistor
- the visitor that must visit this signature.
-
acceptType
Makes the given visitor visit the signature of thisSignatureReader
. This signature is the one specified in the constructor (seeSignatureReader(java.lang.String)
). This method is intended to be called on aSignatureReader
that was created using a JavaTypeSignature, such as thesignature
parameter of theClassVisitor.visitField(int, java.lang.String, java.lang.String, java.lang.String, java.lang.Object)
orMethodVisitor.visitLocalVariable(java.lang.String, java.lang.String, java.lang.String, org.eclipse.persistence.internal.libraries.asm.Label, org.eclipse.persistence.internal.libraries.asm.Label, int)
methods.- Parameters:
signatureVisitor
- the visitor that must visit this signature.
-