Top Description Fields Constructors Methods
jdk.internal.org.objectweb.asm.commons

public Class SignatureRemapper

extends SignatureVisitor
Class Inheritance
Imports
java.util.ArrayList, jdk.internal.org.objectweb.asm.Opcodes, jdk.internal.org.objectweb.asm.signature.SignatureVisitor

A SignatureVisitor that remaps types with a Remapper.
Author
Eugene Kuleshov

Field Summary

Modifier and TypeField and Description
private ArrayList<String>
private final Remapper
private final SignatureVisitor
Inherited from jdk.internal.org.objectweb.asm.signature.SignatureVisitor:
apiEXTENDSINSTANCEOFSUPER

Constructor Summary

AccessConstructor and Description
public
SignatureRemapper(final SignatureVisitor
the signature visitor this remapper must delegate to.
signatureVisitor
,
final Remapper
the remapper to use to remap the types in the visited signature.
remapper
)

Constructs a new SignatureRemapper.

protected
SignatureRemapper(final int
the ASM API version supported by this remapper. Must be one of the ASMx values in Opcodes.
api
,
final SignatureVisitor
the signature visitor this remapper must delegate to.
signatureVisitor
,
final Remapper
the remapper to use to remap the types in the visited signature.
remapper
)

Constructs a new SignatureRemapper.

Method Summary

Modifier and TypeMethod and Description
public SignatureVisitor
visitArrayType()

Overrides jdk.internal.org.objectweb.asm.signature.SignatureVisitor.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
)

Overrides jdk.internal.org.objectweb.asm.signature.SignatureVisitor.visitBaseType.

Visits a signature corresponding to a primitive type.
public SignatureVisitor
visitClassBound()

Overrides jdk.internal.org.objectweb.asm.signature.SignatureVisitor.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.
name
)

Overrides jdk.internal.org.objectweb.asm.signature.SignatureVisitor.visitClassType.

Starts the visit of a signature corresponding to a class or interface type.
public void
visitEnd()

Overrides jdk.internal.org.objectweb.asm.signature.SignatureVisitor.visitEnd.

Ends the visit of a signature corresponding to a class or interface type.
public SignatureVisitor
public void
visitFormalTypeParameter(final String
the name of the formal parameter.
name
)

Overrides jdk.internal.org.objectweb.asm.signature.SignatureVisitor.visitFormalTypeParameter.

Visits a formal type parameter.
public void
visitInnerClassType(final String
the local name of the inner class in its enclosing class.
name
)

Overrides jdk.internal.org.objectweb.asm.signature.SignatureVisitor.visitInnerClassType.

Visits an inner class.
public SignatureVisitor
visitInterface()

Overrides jdk.internal.org.objectweb.asm.signature.SignatureVisitor.visitInterface.

Visits the type of an interface implemented by the class.
public SignatureVisitor
visitInterfaceBound()

Overrides jdk.internal.org.objectweb.asm.signature.SignatureVisitor.visitInterfaceBound.

Visits an interface bound of the last visited formal type parameter.
public SignatureVisitor
public SignatureVisitor
public SignatureVisitor
public void
visitTypeArgument()

Overrides jdk.internal.org.objectweb.asm.signature.SignatureVisitor.visitTypeArgument.

Visits an unbounded type argument of the last visited class or inner class type.
public SignatureVisitor
visitTypeArgument(final char
'+', '-' or '='.
wildcard
)

Overrides jdk.internal.org.objectweb.asm.signature.SignatureVisitor.visitTypeArgument.

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
)

Overrides jdk.internal.org.objectweb.asm.signature.SignatureVisitor.visitTypeVariable.

Visits a signature corresponding to a type variable.

Field Detail

classNamesback to summary
private ArrayList<String> classNames
remapperback to summary
private final Remapper remapper
signatureVisitorback to summary
private final SignatureVisitor signatureVisitor

Constructor Detail

SignatureRemapperback to summary
public SignatureRemapper(final SignatureVisitor signatureVisitor, final Remapper remapper)

Constructs a new SignatureRemapper. Subclasses must not use this constructor. Instead, they must use the SignatureRemapper(int, SignatureVisitor, Remapper) version.

Parameters
signatureVisitor:SignatureVisitor

the signature visitor this remapper must delegate to.

remapper:Remapper

the remapper to use to remap the types in the visited signature.

SignatureRemapperback to summary
protected SignatureRemapper(final int api, final SignatureVisitor signatureVisitor, final Remapper remapper)

Constructs a new SignatureRemapper.

Parameters
api:int

the ASM API version supported by this remapper. Must be one of the ASMx values in Opcodes.

signatureVisitor:SignatureVisitor

the signature visitor this remapper must delegate to.

remapper:Remapper

the remapper to use to remap the types in the visited signature.

Method Detail

visitArrayTypeback to summary
public SignatureVisitor visitArrayType()

Overrides jdk.internal.org.objectweb.asm.signature.SignatureVisitor.visitArrayType.

Doc from jdk.internal.org.objectweb.asm.signature.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.

Annotations
@Override
visitBaseTypeback to summary
public void visitBaseType(final char descriptor)

Overrides jdk.internal.org.objectweb.asm.signature.SignatureVisitor.visitBaseType.

Doc from jdk.internal.org.objectweb.asm.signature.SignatureVisitor.visitBaseType.

Visits a signature corresponding to a primitive type.

Parameters
descriptor:char

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

Annotations
@Override
visitClassBoundback to summary
public SignatureVisitor visitClassBound()

Overrides jdk.internal.org.objectweb.asm.signature.SignatureVisitor.visitClassBound.

Doc from jdk.internal.org.objectweb.asm.signature.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.

Annotations
@Override
visitClassTypeback to summary
public void visitClassType(final String name)

Overrides jdk.internal.org.objectweb.asm.signature.SignatureVisitor.visitClassType.

Doc from jdk.internal.org.objectweb.asm.signature.SignatureVisitor.visitClassType.

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

Parameters
name:String

the internal name of the class or interface.

Annotations
@Override
visitEndback to summary
public void visitEnd()

Overrides jdk.internal.org.objectweb.asm.signature.SignatureVisitor.visitEnd.

Doc from jdk.internal.org.objectweb.asm.signature.SignatureVisitor.visitEnd.

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

Annotations
@Override
visitExceptionTypeback to summary
public SignatureVisitor visitExceptionType()

Overrides jdk.internal.org.objectweb.asm.signature.SignatureVisitor.visitExceptionType.

Doc from jdk.internal.org.objectweb.asm.signature.SignatureVisitor.visitExceptionType.

Visits the type of a method exception.

Returns:SignatureVisitor

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

Annotations
@Override
visitFormalTypeParameterback to summary
public void visitFormalTypeParameter(final String name)

Overrides jdk.internal.org.objectweb.asm.signature.SignatureVisitor.visitFormalTypeParameter.

Doc from jdk.internal.org.objectweb.asm.signature.SignatureVisitor.visitFormalTypeParameter.

Visits a formal type parameter.

Parameters
name:String

the name of the formal parameter.

Annotations
@Override
visitInnerClassTypeback to summary
public void visitInnerClassType(final String name)

Overrides jdk.internal.org.objectweb.asm.signature.SignatureVisitor.visitInnerClassType.

Doc from jdk.internal.org.objectweb.asm.signature.SignatureVisitor.visitInnerClassType.

Visits an inner class.

Parameters
name:String

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

Annotations
@Override
visitInterfaceback to summary
public SignatureVisitor visitInterface()

Overrides jdk.internal.org.objectweb.asm.signature.SignatureVisitor.visitInterface.

Doc from jdk.internal.org.objectweb.asm.signature.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.

Annotations
@Override
visitInterfaceBoundback to summary
public SignatureVisitor visitInterfaceBound()

Overrides jdk.internal.org.objectweb.asm.signature.SignatureVisitor.visitInterfaceBound.

Doc from jdk.internal.org.objectweb.asm.signature.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.

Annotations
@Override
visitParameterTypeback to summary
public SignatureVisitor visitParameterType()

Overrides jdk.internal.org.objectweb.asm.signature.SignatureVisitor.visitParameterType.

Doc from jdk.internal.org.objectweb.asm.signature.SignatureVisitor.visitParameterType.

Visits the type of a method parameter.

Returns:SignatureVisitor

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

Annotations
@Override
visitReturnTypeback to summary
public SignatureVisitor visitReturnType()

Overrides jdk.internal.org.objectweb.asm.signature.SignatureVisitor.visitReturnType.

Doc from jdk.internal.org.objectweb.asm.signature.SignatureVisitor.visitReturnType.

Visits the return type of the method.

Returns:SignatureVisitor

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

Annotations
@Override
visitSuperclassback to summary
public SignatureVisitor visitSuperclass()

Overrides jdk.internal.org.objectweb.asm.signature.SignatureVisitor.visitSuperclass.

Doc from jdk.internal.org.objectweb.asm.signature.SignatureVisitor.visitSuperclass.

Visits the type of the super class.

Returns:SignatureVisitor

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

Annotations
@Override
visitTypeArgumentback to summary
public void visitTypeArgument()

Overrides jdk.internal.org.objectweb.asm.signature.SignatureVisitor.visitTypeArgument.

Doc from jdk.internal.org.objectweb.asm.signature.SignatureVisitor.visitTypeArgument.

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

Annotations
@Override
visitTypeArgumentback to summary
public SignatureVisitor visitTypeArgument(final char wildcard)

Overrides jdk.internal.org.objectweb.asm.signature.SignatureVisitor.visitTypeArgument.

Doc from jdk.internal.org.objectweb.asm.signature.SignatureVisitor.visitTypeArgument.

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.

Annotations
@Override
visitTypeVariableback to summary
public void visitTypeVariable(final String name)

Overrides jdk.internal.org.objectweb.asm.signature.SignatureVisitor.visitTypeVariable.

Doc from jdk.internal.org.objectweb.asm.signature.SignatureVisitor.visitTypeVariable.

Visits a signature corresponding to a type variable.

Parameters
name:String

the name of the type variable.

Annotations
@Override