Top Description Fields Constructors Methods
net.bytebuddy.jar.asm.signature

public abstract Class SignatureVisitor

extends Object
Class Inheritance
Known Direct Subclasses
net.bytebuddy.jar.asm.signature.SignatureWriter, net.bytebuddy.pool.TypePool.Default.GenericTypeRegistrant.RejectingSignatureVisitor, net.bytebuddy.jar.asm.commons.SignatureRemapper
Imports
net.bytebuddy.jar.asm.Opcodes

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):
Authors
Thomas Hallgren, Eric Bruneton

Field Summary

Modifier and TypeField and Description
protected final int
api

The ASM API version implemented by this visitor.

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.

Constructor Summary

AccessConstructor and Description
protected
SignatureVisitor(final int
the ASM API version implemented by this visitor. Must be one of the ASMx values in Opcodes.
api
)

Constructs a new SignatureVisitor.

Method Summary

Modifier and TypeMethod and Description
public SignatureVisitor

Returns:

a non null visitor to visit the signature of the array element type.
visitArrayType
()

Visits a signature corresponding to an array type.

public void
visitBaseType(final char
the descriptor of the primitive type, or 'V' for void .
descriptor
)

Visits a signature corresponding to a primitive type.

public SignatureVisitor

Returns:

a non null visitor to visit the signature of the class bound.
visitClassBound
()

Visits the class bound of the last visited formal type parameter.

public void
visitClassType(final String
the internal name of the class or interface (see net.bytebuddy.jar.asm.Type#getInternalName()).
name
)

Starts the visit of a signature corresponding to a class or interface type.

public void
visitEnd()

Ends the visit of a signature corresponding to a class or interface type.

public SignatureVisitor

Returns:

a non null visitor to visit the signature of the exception type.
visitExceptionType
()

Visits the type of a method exception.

public void
visitFormalTypeParameter(final String
the name of the formal parameter.
name
)

Visits a formal type parameter.

public void
visitInnerClassType(final String
the local name of the inner class in its enclosing class.
name
)

Visits an inner class.

public SignatureVisitor

Returns:

a non null visitor to visit the signature of the interface type.
visitInterface
()

Visits the type of an interface implemented by the class.

public SignatureVisitor

Returns:

a non null visitor to visit the signature of the interface bound.
visitInterfaceBound
()

Visits an interface bound of the last visited formal type parameter.

public SignatureVisitor

Returns:

a non null visitor to visit the signature of the parameter type.
visitParameterType
()

Visits the type of a method parameter.

public SignatureVisitor

Returns:

a non null visitor to visit the signature of the return type.
visitReturnType
()

Visits the return type of the method.

public SignatureVisitor

Returns:

a non null visitor to visit the signature of the super class type.
visitSuperclass
()

Visits the type of the super class.

public void
visitTypeArgument()

Visits an unbounded type argument of the last visited class or inner class type.

public SignatureVisitor

Returns:

a non null visitor to visit the signature of the type argument.
visitTypeArgument
(final char
'+', '-' or '='.
wildcard
)

Visits a type argument of the last visited class or inner class type.

public void
visitTypeVariable(final String
the name of the type variable.
name
)

Visits a signature corresponding to a type variable.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

apiback to summary
protected final int api

The ASM API version implemented by this visitor. The value of this field must be one of the ASMx values in Opcodes.

EXTENDSback to summary
public static final char EXTENDS

Wildcard for an "extends" type argument.

INSTANCEOFback to summary
public static final char INSTANCEOF

Wildcard for a normal type argument.

SUPERback to summary
public static final char SUPER

Wildcard for a "super" type argument.

Constructor Detail

SignatureVisitorback to summary
protected SignatureVisitor(final int api)

Constructs a new SignatureVisitor.

Parameters
api:int

the ASM API version implemented by this visitor. Must be one of the ASMx values in Opcodes.

Method Detail

visitArrayTypeback to summary
public SignatureVisitor visitArrayType()

Visits a signature corresponding to an array type.

Returns:SignatureVisitor

a non null visitor to visit the signature of the array element type.

visitBaseTypeback to summary
public void visitBaseType(final char descriptor)

Visits a signature corresponding to a primitive type.

Parameters
descriptor:char

the descriptor of the primitive type, or 'V' for void .

visitClassBoundback to summary
public SignatureVisitor visitClassBound()

Visits the class bound of the last visited formal type parameter.

Returns:SignatureVisitor

a non null visitor to visit the signature of the class bound.

visitClassTypeback to summary
public void visitClassType(final String name)

Starts the visit of a signature corresponding to a class or interface type.

Parameters
name:String

the internal name of the class or interface (see net.bytebuddy.jar.asm.Type#getInternalName()).

visitEndback to summary
public void visitEnd()

Ends the visit of a signature corresponding to a class or interface type.

visitExceptionTypeback to summary
public SignatureVisitor visitExceptionType()

Visits the type of a method exception.

Returns:SignatureVisitor

a non null visitor to visit the signature of the exception type.

visitFormalTypeParameterback to summary
public void visitFormalTypeParameter(final String name)

Visits a formal type parameter.

Parameters
name:String

the name of the formal parameter.

visitInnerClassTypeback to summary
public void visitInnerClassType(final String name)

Visits an inner class.

Parameters
name:String

the local name of the inner class in its enclosing class.

visitInterfaceback to summary
public SignatureVisitor visitInterface()

Visits the type of an interface implemented by the class.

Returns:SignatureVisitor

a non null visitor to visit the signature of the interface type.

visitInterfaceBoundback to summary
public SignatureVisitor visitInterfaceBound()

Visits an interface bound of the last visited formal type parameter.

Returns:SignatureVisitor

a non null visitor to visit the signature of the interface bound.

visitParameterTypeback to summary
public SignatureVisitor visitParameterType()

Visits the type of a method parameter.

Returns:SignatureVisitor

a non null visitor to visit the signature of the parameter type.

visitReturnTypeback to summary
public SignatureVisitor visitReturnType()

Visits the return type of the method.

Returns:SignatureVisitor

a non null visitor to visit the signature of the return type.

visitSuperclassback to summary
public SignatureVisitor visitSuperclass()

Visits the type of the super class.

Returns:SignatureVisitor

a non null visitor to visit the signature of the super class type.

visitTypeArgumentback to summary
public void visitTypeArgument()

Visits an unbounded type argument of the last visited class or inner class type.

visitTypeArgumentback to summary
public SignatureVisitor visitTypeArgument(final char wildcard)

Visits a type argument of the last visited class or inner class type.

Parameters
wildcard:char

'+', '-' or '='.

Returns:SignatureVisitor

a non null visitor to visit the signature of the type argument.

visitTypeVariableback to summary
public void visitTypeVariable(final String name)

Visits a signature corresponding to a type variable.

Parameters
name:String

the name of the type variable.