saker.build Documentation TaskDoc JavaDoc Packages
public abstract class SignatureVisitor
A visitor to visit a generic signature. The methods of this interface must be called in one of the three following orders (the last one is the only valid order for a SignatureVisitor that is returned by a method of this interface):
  • ClassSignature = ( visitFormalTypeParameter visitClassBound? visitInterfaceBound* )* (visitSuperclass visitInterface* )
  • MethodSignature = ( visitFormalTypeParameter visitClassBound? visitInterfaceBound* )* (visitParameterType* visitReturnType visitExceptionType* )
  • TypeSignature = visitBaseType | visitTypeVariable | visitArrayType | ( visitClassType visitTypeArgument* ( visitInnerClassType visitTypeArgument* )* visitEnd ) )
Fields
public static final char
EXTENDS = '+'
Wildcard for an "extends" type argument.
public static final char
Wildcard for a normal type argument.
public static final char
SUPER = '-'
Wildcard for a "super" type argument.
protected final int
The ASM API version implemented by this visitor.
Constructors
public
Constructs a new SignatureVisitor.
Methods
public SignatureVisitor
Visits a signature corresponding to an array type.
public void
visitBaseType(char descriptor)
Visits a signature corresponding to a primitive type.
public SignatureVisitor
Visits the class bound of the last visited formal type parameter.
public void
Starts the visit of a signature corresponding to a class or interface type.
public void
Ends the visit of a signature corresponding to a class or interface type.
public SignatureVisitor
Visits the type of a method exception.
public void
Visits a formal type parameter.
public void
Visits an inner class.
public SignatureVisitor
Visits the type of an interface implemented by the class.
public SignatureVisitor
Visits an interface bound of the last visited formal type parameter.
public SignatureVisitor
Visits the type of a method parameter.
public SignatureVisitor
Visits the return type of the method.
public SignatureVisitor
Visits the type of the super class.
public void
Visits an unbounded type argument of the last visited class or inner class type.
public SignatureVisitor
visitTypeArgument(char wildcard)
Visits a type argument of the last visited class or inner class type.
public void
Visits a signature corresponding to a type variable.
public static final char EXTENDS = '+'
Wildcard for an "extends" type argument.
public static final char INSTANCEOF = '='
Wildcard for a normal type argument.
public static final char SUPER = '-'
Wildcard for a "super" type argument.
protected final int api
The ASM API version implemented by this visitor. The value of this field must be one of Opcodes.ASM4, Opcodes.ASM5, Opcodes.ASM6 or Opcodes.ASM7.
public SignatureVisitor(int api)
Constructs a new SignatureVisitor.
apithe ASM API version implemented by this visitor. Must be one of Opcodes.ASM4, Opcodes.ASM5, Opcodes.ASM6 or Opcodes.ASM7.
Visits a signature corresponding to an array type.
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.
descriptorthe descriptor of the primitive type, or 'V' for void .
Visits the class bound of the last visited formal type parameter.
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.
namethe internal name of the class or interface.
public void visitEnd()
Ends the visit of a signature corresponding to a class or interface type.
Visits the type of a method exception.
a non null visitor to visit the signature of the exception type.
Visits a formal type parameter.
namethe name of the formal parameter.
public void visitInnerClassType(String name)
Visits an inner class.
namethe local name of the inner class in its enclosing class.
Visits the type of an interface implemented by the class.
a non null visitor to visit the signature of the interface type.
Visits an interface bound of the last visited formal type parameter.
a non null visitor to visit the signature of the interface bound.
Visits the type of a method parameter.
a non null visitor to visit the signature of the parameter type.
Visits the return type of the method.
a non null visitor to visit the signature of the return type.
Visits the type of the super class.
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.
public SignatureVisitor visitTypeArgument(char wildcard)
Visits a type argument of the last visited class or inner class type.
wildcard'+', '-' or '='.
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.
namethe name of the type variable.