Top Description Fields Constructors Methods
org.eclipse.persistence.internal.libraries.asm.commons

public Class FieldRemapper

extends FieldVisitor
Class Inheritance
Imports
org.eclipse.persistence.internal.libraries.asm.AnnotationVisitor, .FieldVisitor, .Opcodes, .TypePath

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

Field Summary

Modifier and TypeField and Description
protected final Remapper
remapper

The remapper used to remap the types in the visited field.

Inherited from org.eclipse.persistence.internal.libraries.asm.FieldVisitor:
apifv

Constructor Summary

AccessConstructor and Description
public
FieldRemapper(final FieldVisitor
the field visitor this remapper must delegate to.
fieldVisitor
,
final Remapper
the remapper to use to remap the types in the visited field.
remapper
)

Constructs a new FieldRemapper.

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

Constructs a new FieldRemapper.

Method Summary

Modifier and TypeMethod and Description
protected AnnotationVisitor

Returns:

the newly created remapper.
createAnnotationRemapper
(final AnnotationVisitor
the AnnotationVisitor the remapper must delegate to.
annotationVisitor
)

Constructs a new remapper for annotations.
protected AnnotationVisitor

Returns:

the newly created remapper.
createAnnotationRemapper
(final String
the descriptor of the visited annotation.
descriptor
,
final AnnotationVisitor
the AnnotationVisitor the remapper must delegate to.
annotationVisitor
)

Constructs a new remapper for annotations.

public AnnotationVisitor
visitAnnotation(final String
the class descriptor of the annotation class.
descriptor
,
final boolean
true if the annotation is visible at runtime.
visible
)

Overrides org.eclipse.persistence.internal.libraries.asm.FieldVisitor.visitAnnotation.

Visits an annotation of the field.
public AnnotationVisitor
visitTypeAnnotation(final int
a reference to the annotated type. The sort of this type reference must be TypeReference#FIELD. See TypeReference.
typeRef
,
final TypePath
the path to the annotated type argument, wildcard bound, array element type, or static inner type within 'typeRef'. May be null if the annotation targets 'typeRef' as a whole.
typePath
,
final String
the class descriptor of the annotation class.
descriptor
,
final boolean
true if the annotation is visible at runtime.
visible
)

Overrides org.eclipse.persistence.internal.libraries.asm.FieldVisitor.visitTypeAnnotation.

Visits an annotation on the type of the field.
Inherited from org.eclipse.persistence.internal.libraries.asm.FieldVisitor:
getDelegatevisitAttributevisitEnd

Field Detail

remapperback to summary
protected final Remapper remapper

The remapper used to remap the types in the visited field.

Constructor Detail

FieldRemapperback to summary
public FieldRemapper(final FieldVisitor fieldVisitor, final Remapper remapper)

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

Parameters
fieldVisitor:FieldVisitor

the field visitor this remapper must delegate to.

remapper:Remapper

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

FieldRemapperback to summary
protected FieldRemapper(final int api, final FieldVisitor fieldVisitor, final Remapper remapper)

Constructs a new FieldRemapper.

Parameters
api:int

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

fieldVisitor:FieldVisitor

the field visitor this remapper must delegate to.

remapper:Remapper

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

Method Detail

createAnnotationRemapperback to summary
protected AnnotationVisitor createAnnotationRemapper(final AnnotationVisitor annotationVisitor)

Constructs a new remapper for annotations. The default implementation of this method returns a new AnnotationRemapper.

Parameters
annotationVisitor:AnnotationVisitor

the AnnotationVisitor the remapper must delegate to.

Returns:AnnotationVisitor

the newly created remapper.

Annotations
@Deprecated
createAnnotationRemapperback to summary
protected AnnotationVisitor createAnnotationRemapper(final String descriptor, final AnnotationVisitor annotationVisitor)

Constructs a new remapper for annotations. The default implementation of this method returns a new AnnotationRemapper.

Parameters
descriptor:String

the descriptor of the visited annotation.

annotationVisitor:AnnotationVisitor

the AnnotationVisitor the remapper must delegate to.

Returns:AnnotationVisitor

the newly created remapper.

visitAnnotationback to summary
public AnnotationVisitor visitAnnotation(final String descriptor, final boolean visible)

Overrides org.eclipse.persistence.internal.libraries.asm.FieldVisitor.visitAnnotation.

Doc from org.eclipse.persistence.internal.libraries.asm.FieldVisitor.visitAnnotation.

Visits an annotation of the field.

Parameters
descriptor:String

the class descriptor of the annotation class.

visible:boolean

true if the annotation is visible at runtime.

Returns:AnnotationVisitor

a visitor to visit the annotation values, or null if this visitor is not interested in visiting this annotation.

Annotations
@Override
visitTypeAnnotationback to summary
public AnnotationVisitor visitTypeAnnotation(final int typeRef, final TypePath typePath, final String descriptor, final boolean visible)

Overrides org.eclipse.persistence.internal.libraries.asm.FieldVisitor.visitTypeAnnotation.

Doc from org.eclipse.persistence.internal.libraries.asm.FieldVisitor.visitTypeAnnotation.

Visits an annotation on the type of the field.

Parameters
typeRef:int

a reference to the annotated type. The sort of this type reference must be TypeReference#FIELD. See TypeReference.

typePath:TypePath

the path to the annotated type argument, wildcard bound, array element type, or static inner type within 'typeRef'. May be null if the annotation targets 'typeRef' as a whole.

descriptor:String

the class descriptor of the annotation class.

visible:boolean

true if the annotation is visible at runtime.

Returns:AnnotationVisitor

a visitor to visit the annotation values, or null if this visitor is not interested in visiting this annotation.

Annotations
@Override