Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.objectweb.asm.util.CheckSignatureAdapter
SignatureVisitor
that checks that its methods are properly used.
Field Summary | |
static int |
|
static int |
|
static int |
|
Fields inherited from interface org.objectweb.asm.signature.SignatureVisitor | |
EXTENDS , INSTANCEOF , SUPER |
Constructor Summary | |
|
Method Summary | |
SignatureVisitor |
|
void |
|
SignatureVisitor |
|
void |
|
void |
|
SignatureVisitor |
|
void |
|
void |
|
SignatureVisitor |
|
SignatureVisitor |
|
SignatureVisitor |
|
SignatureVisitor |
|
SignatureVisitor |
|
void |
|
SignatureVisitor |
|
void |
|
public static final int CLASS_SIGNATURE
Type to be used to check class signatures. SeeCheckSignatureAdapter
.
- Field Value:
- 0
public static final int METHOD_SIGNATURE
Type to be used to check method signatures. SeeCheckSignatureAdapter
.
- Field Value:
- 1
public static final int TYPE_SIGNATURE
Type to be used to check type signatures.SeeCheckSignatureAdapter
.
- Field Value:
- 2
public CheckSignatureAdapter(int type, SignatureVisitor sv)
Creates a newCheckSignatureAdapter
object.
- Parameters:
type
- the type of signature to be checked. SeeCLASS_SIGNATURE
,METHOD_SIGNATURE
andTYPE_SIGNATURE
.sv
- the visitor to which this adapter must delegate calls. May be null.
public SignatureVisitor visitArrayType()
Visits a signature corresponding to an array type.
- Specified by:
- visitArrayType in interface SignatureVisitor
- Returns:
- a non null visitor to visit the signature of the array element type.
public void visitBaseType(char descriptor)
Visits a signature corresponding to a primitive type.
- Specified by:
- visitBaseType in interface SignatureVisitor
- Parameters:
descriptor
- the descriptor of the primitive type, or 'V' for void.
public SignatureVisitor visitClassBound()
Visits the class bound of the last visited formal type parameter.
- Specified by:
- visitClassBound in interface SignatureVisitor
- Returns:
- a non null visitor to visit the signature of the class bound.
public void visitClassType(String name)
Starts the visit of a signature corresponding to a class or interface type.
- Specified by:
- visitClassType in interface SignatureVisitor
- Parameters:
name
- the internal name of the class or interface.
public void visitEnd()
Ends the visit of a signature corresponding to a class or interface type.
- Specified by:
- visitEnd in interface SignatureVisitor
public SignatureVisitor visitExceptionType()
Visits the type of a method exception.
- Specified by:
- visitExceptionType in interface SignatureVisitor
- Returns:
- a non null visitor to visit the signature of the exception type.
public void visitFormalTypeParameter(String name)
Visits a formal type parameter.
- Specified by:
- visitFormalTypeParameter in interface SignatureVisitor
- Parameters:
name
- the name of the formal parameter.
public void visitInnerClassType(String name)
Visits an inner class.
- Specified by:
- visitInnerClassType in interface SignatureVisitor
- Parameters:
name
- the local name of the inner class in its enclosing class.
public SignatureVisitor visitInterface()
Visits the type of an interface implemented by the class.
- Specified by:
- visitInterface in interface SignatureVisitor
- Returns:
- a non null visitor to visit the signature of the interface type.
public SignatureVisitor visitInterfaceBound()
Visits an interface bound of the last visited formal type parameter.
- Specified by:
- visitInterfaceBound in interface SignatureVisitor
- Returns:
- a non null visitor to visit the signature of the interface bound.
public SignatureVisitor visitParameterType()
Visits the type of a method parameter.
- Specified by:
- visitParameterType in interface SignatureVisitor
- Returns:
- a non null visitor to visit the signature of the parameter type.
public SignatureVisitor visitReturnType()
Visits the return type of the method.
- Specified by:
- visitReturnType in interface SignatureVisitor
- Returns:
- a non null visitor to visit the signature of the return type.
public SignatureVisitor visitSuperclass()
Visits the type of the super class.
- Specified by:
- visitSuperclass in interface SignatureVisitor
- Returns:
- a non null visitor to visit the signature of the super class type.
public void visitTypeArgument()
Visits an unbounded type argument of the last visited class or inner class type.
- Specified by:
- visitTypeArgument in interface SignatureVisitor
public SignatureVisitor visitTypeArgument(char wildcard)
Visits a type argument of the last visited class or inner class type.
- Specified by:
- visitTypeArgument in interface SignatureVisitor
- Parameters:
wildcard
- '+', '-' or '='.
- Returns:
- a non null visitor to visit the signature of the type argument.
public void visitTypeVariable(String name)
Visits a signature corresponding to a type variable.
- Specified by:
- visitTypeVariable in interface SignatureVisitor
- Parameters:
name
- the name of the type variable.