public class CheckSignatureAdapter extends SignatureVisitor
SignatureVisitor that checks that its methods are properly used.| Modifier and Type | Field and Description |
|---|---|
static int |
CLASS_SIGNATURE
Type to be used to check class signatures.
|
static int |
METHOD_SIGNATURE
Type to be used to check method signatures.
|
static int |
TYPE_SIGNATURE
Type to be used to check type signatures.See
CheckSignatureAdapter. |
api, EXTENDS, INSTANCEOF| Modifier | Constructor and Description |
|---|---|
protected |
CheckSignatureAdapter(int api,
int type,
SignatureVisitor sv)
Creates a new
CheckSignatureAdapter object. |
|
CheckSignatureAdapter(int type,
SignatureVisitor sv)
Creates a new
CheckSignatureAdapter object. |
| Modifier and Type | Method and Description |
|---|---|
SignatureVisitor |
visitArrayType()
Visits a signature corresponding to an array type.
|
void |
visitBaseType(char descriptor)
Visits a signature corresponding to a primitive type.
|
SignatureVisitor |
visitClassBound()
Visits the class bound of the last visited formal type parameter.
|
void |
visitClassType(String name)
Starts the visit of a signature corresponding to a class or interface
type.
|
void |
visitEnd()
Ends the visit of a signature corresponding to a class or interface type.
|
SignatureVisitor |
visitExceptionType()
Visits the type of a method exception.
|
void |
visitFormalTypeParameter(String name)
Visits a formal type parameter.
|
void |
visitInnerClassType(String name)
Visits an inner class.
|
SignatureVisitor |
visitInterface()
Visits the type of an interface implemented by the class.
|
SignatureVisitor |
visitInterfaceBound()
Visits an interface bound of the last visited formal type parameter.
|
SignatureVisitor |
visitParameterType()
Visits the type of a method parameter.
|
SignatureVisitor |
visitReturnType()
Visits the return type of the method.
|
SignatureVisitor |
visitSuperclass()
Visits the type of the super class.
|
void |
visitTypeArgument()
Visits an unbounded type argument of the last visited class or inner
class type.
|
SignatureVisitor |
visitTypeArgument(char wildcard)
Visits a type argument of the last visited class or inner class type.
|
void |
visitTypeVariable(String name)
Visits a signature corresponding to a type variable.
|
public static final int CLASS_SIGNATURE
CheckSignatureAdapter.public static final int METHOD_SIGNATURE
CheckSignatureAdapter.public static final int TYPE_SIGNATURE
CheckSignatureAdapter.public CheckSignatureAdapter(int type,
SignatureVisitor sv)
CheckSignatureAdapter object. Subclasses must
not use this constructor. Instead, they must use the
CheckSignatureAdapter(int, int, SignatureVisitor) version.type - the type of signature to be checked. See
CLASS_SIGNATURE, METHOD_SIGNATURE and
TYPE_SIGNATURE.sv - the visitor to which this adapter must delegate calls. May be
null.protected CheckSignatureAdapter(int api,
int type,
SignatureVisitor sv)
CheckSignatureAdapter object.api - the ASM API version implemented by this visitor. Must be one
of Opcodes.ASM4 or Opcodes.ASM5.type - the type of signature to be checked. See
CLASS_SIGNATURE, METHOD_SIGNATURE and
TYPE_SIGNATURE.sv - the visitor to which this adapter must delegate calls. May be
null.public void visitFormalTypeParameter(String name)
SignatureVisitorvisitFormalTypeParameter in class SignatureVisitorname - the name of the formal parameter.public SignatureVisitor visitClassBound()
SignatureVisitorvisitClassBound in class SignatureVisitorpublic SignatureVisitor visitInterfaceBound()
SignatureVisitorvisitInterfaceBound in class SignatureVisitorpublic SignatureVisitor visitSuperclass()
SignatureVisitorvisitSuperclass in class SignatureVisitorpublic SignatureVisitor visitInterface()
SignatureVisitorvisitInterface in class SignatureVisitorpublic SignatureVisitor visitParameterType()
SignatureVisitorvisitParameterType in class SignatureVisitorpublic SignatureVisitor visitReturnType()
SignatureVisitorvisitReturnType in class SignatureVisitorpublic SignatureVisitor visitExceptionType()
SignatureVisitorvisitExceptionType in class SignatureVisitorpublic void visitBaseType(char descriptor)
SignatureVisitorvisitBaseType in class SignatureVisitordescriptor - the descriptor of the primitive type, or 'V' for void
.public void visitTypeVariable(String name)
SignatureVisitorvisitTypeVariable in class SignatureVisitorname - the name of the type variable.public SignatureVisitor visitArrayType()
SignatureVisitorvisitArrayType in class SignatureVisitorpublic void visitClassType(String name)
SignatureVisitorvisitClassType in class SignatureVisitorname - the internal name of the class or interface.public void visitInnerClassType(String name)
SignatureVisitorvisitInnerClassType in class SignatureVisitorname - the local name of the inner class in its enclosing class.public void visitTypeArgument()
SignatureVisitorvisitTypeArgument in class SignatureVisitorpublic SignatureVisitor visitTypeArgument(char wildcard)
SignatureVisitorvisitTypeArgument in class SignatureVisitorwildcard - '+', '-' or '='.public void visitEnd()
SignatureVisitorvisitEnd in class SignatureVisitor