CheckSignatureAdapter
, SignatureWriter
, TraceSignatureVisitor
public abstract class SignatureVisitor
extends java.lang.Object
SignatureVisitor
that is returned by a method of this interface):
Modifier and Type | Field | Description |
---|---|---|
protected int |
api |
The ASM API version implemented by this visitor.
|
static char |
EXTENDS |
Wildcard for an "extends" type argument.
|
static char |
INSTANCEOF |
Wildcard for a normal type argument.
|
static char |
SUPER |
Wildcard for a "super" type argument.
|
Constructor | Description |
---|---|
SignatureVisitor(int api) |
Constructs a new
SignatureVisitor . |
Modifier and Type | Method | 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(java.lang.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(java.lang.String name) |
Visits a formal type parameter.
|
void |
visitInnerClassType(java.lang.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(java.lang.String name) |
Visits a signature corresponding to a type variable.
|
public static final char EXTENDS
public static final char SUPER
public static final char INSTANCEOF
protected final int api
Opcodes.ASM4
, Opcodes.ASM5
, Opcodes.ASM6
or Opcodes.ASM7_EXPERIMENTAL
.public SignatureVisitor(int api)
SignatureVisitor
.api
- the ASM API version implemented by this visitor. Must be one of Opcodes.ASM4
, Opcodes.ASM5
, Opcodes.ASM6
or Opcodes.ASM7_EXPERIMENTAL
.public void visitFormalTypeParameter(java.lang.String name)
name
- the name of the formal parameter.public SignatureVisitor visitClassBound()
public SignatureVisitor visitInterfaceBound()
public SignatureVisitor visitSuperclass()
public SignatureVisitor visitInterface()
public SignatureVisitor visitParameterType()
public SignatureVisitor visitReturnType()
public SignatureVisitor visitExceptionType()
public void visitBaseType(char descriptor)
descriptor
- the descriptor of the primitive type, or 'V' for void .public void visitTypeVariable(java.lang.String name)
name
- the name of the type variable.public SignatureVisitor visitArrayType()
public void visitClassType(java.lang.String name)
name
- the internal name of the class or interface.public void visitInnerClassType(java.lang.String name)
name
- the local name of the inner class in its enclosing class.public void visitTypeArgument()
public SignatureVisitor visitTypeArgument(char wildcard)
wildcard
- '+', '-' or '='.public void visitEnd()