APIdia Launch Partner
Top Fields Constructors Methods
jdk.internal.classfile.impl

public final Record ClassRemapperImpl

extends Record
implements ClassRemapper
Class Inheritance
All Implemented Interfaces
jdk.internal.classfile.components.ClassRemapper, java.lang.classfile.ClassTransform, java.lang.classfile.ClassFileTransform
Record Components
mapFunction:Function<ClassDesc, ClassDesc> 
Imports
java.lang.classfile.*, java.lang.classfile.attribute.*, jdk.internal.classfile.components.ClassRemapper, java.lang.classfile.constantpool.Utf8Entry, java.lang.classfile.instruction.ConstantInstruction.LoadConstantInstruction, java.lang.classfile.instruction.*, java.lang.constant.*, java.util.List, java.util.function.Function

Field Summary

Modifier and TypeField and Description
private final Function<ClassDesc, ClassDesc>
mapFunction

Record Component accessed by mapFunction().

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
accept(ClassBuilder clb, ClassElement cle)

Implements java.lang.classfile.ClassFileTransform.accept.

Transform an element by taking the appropriate actions on the builder.

public CodeTransform
public FieldTransform
public MethodTransform
public final boolean
equals(Object o)

Implements abstract java.lang.Record.equals.

Indicates whether some other object is "equal to" this one.

public final int
hashCode()

Implements abstract java.lang.Record.hashCode.

Returns a hash code value for the record.

public ClassDesc
map(ClassDesc desc)

Implements jdk.internal.classfile.components.ClassRemapper.map.

Access method to internal class mapping function.

pack-priv Annotation
pack-priv List<Annotation>
pack-priv AnnotationValue
pack-priv ClassSignature
pack-priv ConstantDesc
pack-priv DirectMethodHandleDesc
pack-priv DynamicConstantDesc<?>
public Function<ClassDesc, ClassDesc>
mapFunction()

Record Component getter of mapFunction.

pack-priv MethodTypeDesc
pack-priv MethodSignature
pack-priv RecordComponentInfo
pack-priv <S extends Signature> S
mapSignature(S signature)

pack-priv List<TypeAnnotation>
pack-priv List<Signature.TypeParam>
public final String
toString()

Implements abstract java.lang.Record.toString.

Returns a string representation of the record.

Field Detail

mapFunctionback to summary
private final Function<ClassDesc, ClassDesc> mapFunction

Record Component accessed by mapFunction().

Constructor Detail

ClassRemapperImplback to summary
public ClassRemapperImpl(Function<ClassDesc, ClassDesc> mapFunction)

Method Detail

acceptback to summary
public void accept(ClassBuilder clb, ClassElement cle)

Implements java.lang.classfile.ClassFileTransform.accept.

Doc from java.lang.classfile.ClassFileTransform.accept.

Transform an element by taking the appropriate actions on the builder. Used when transforming a classfile entity (class, method, field, method body.) If no transformation is desired, the element can be presented to B#with(ClassFileElement). If the element is to be dropped, no action is required.

This method is called by the Class-File API. Users should never call this method.

Annotations
@Override
asCodeTransformback to summary
public CodeTransform asCodeTransform()

Implements jdk.internal.classfile.components.ClassRemapper.asCodeTransform.

Doc from jdk.internal.classfile.components.ClassRemapper.asCodeTransform.

Returns this ClassRemapper as CodeTransform instance.

Annotations
@Override
asFieldTransformback to summary
public FieldTransform asFieldTransform()

Implements jdk.internal.classfile.components.ClassRemapper.asFieldTransform.

Doc from jdk.internal.classfile.components.ClassRemapper.asFieldTransform.

Returns this ClassRemapper as FieldTransform instance.

Annotations
@Override
asMethodTransformback to summary
public MethodTransform asMethodTransform()

Implements jdk.internal.classfile.components.ClassRemapper.asMethodTransform.

Doc from jdk.internal.classfile.components.ClassRemapper.asMethodTransform.

Returns this ClassRemapper as MethodTransform instance.

Annotations
@Override
equalsback to summary
public final boolean equals(Object o)

Implements abstract java.lang.Record.equals.

Doc from java.lang.Record.equals.

Indicates whether some other object is "equal to" this one. In addition to the general contract of Object.equals, record classes must further obey the invariant that when a record instance is "copied" by passing the result of the record component accessor methods to the canonical constructor, as follows:

    R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
hashCodeback to summary
public final int hashCode()

Implements abstract java.lang.Record.hashCode.

Doc from java.lang.Record.hashCode.

Returns a hash code value for the record. Obeys the general contract of Object.hashCode. For records, hashing behavior is constrained by the refined contract of Record.equals, so that any two records created from the same components must have the same hash code.

mapback to summary
public ClassDesc map(ClassDesc desc)

Implements jdk.internal.classfile.components.ClassRemapper.map.

Doc from jdk.internal.classfile.components.ClassRemapper.map.

Access method to internal class mapping function.

Annotations
@Override
mapAnnotationback to summary
pack-priv Annotation mapAnnotation(Annotation a)
mapAnnotationsback to summary
pack-priv List<Annotation> mapAnnotations(List<Annotation> annotations)
mapAnnotationValueback to summary
pack-priv AnnotationValue mapAnnotationValue(AnnotationValue val)
mapClassSignatureback to summary
pack-priv ClassSignature mapClassSignature(ClassSignature signature)
mapConstantValueback to summary
pack-priv ConstantDesc mapConstantValue(ConstantDesc value)
mapDirectMethodHandleback to summary
pack-priv DirectMethodHandleDesc mapDirectMethodHandle(DirectMethodHandleDesc dmhd)
mapDynamicConstantback to summary
pack-priv DynamicConstantDesc<?> mapDynamicConstant(DynamicConstantDesc<?> dcd)
mapFunctionback to summary
public Function<ClassDesc, ClassDesc> mapFunction()

Record Component getter of mapFunction.

mapMethodDescback to summary
pack-priv MethodTypeDesc mapMethodDesc(MethodTypeDesc desc)
mapMethodSignatureback to summary
pack-priv MethodSignature mapMethodSignature(MethodSignature signature)
mapRecordComponentback to summary
pack-priv RecordComponentInfo mapRecordComponent(RecordComponentInfo component)
mapSignatureback to summary
pack-priv <S extends Signature> S mapSignature(S signature)
Annotations
@SuppressWarnings:unchecked
mapTypeAnnotationsback to summary
pack-priv List<TypeAnnotation> mapTypeAnnotations(List<TypeAnnotation> typeAnnotations)
mapTypeParamsback to summary
pack-priv List<Signature.TypeParam> mapTypeParams(List<Signature.TypeParam> typeParams)
toStringback to summary
public final String toString()

Implements abstract java.lang.Record.toString.

Doc from java.lang.Record.toString.

Returns a string representation of the record. In accordance with the general contract of Object#toString(), the toString method returns a string that "textually represents" this record. The result should be a concise but informative representation that is easy for a person to read.

In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves.