Modifier and Type | Class and Description |
---|---|
public static record | |
public static record |
Access | Constructor and Description |
---|---|
public | ClassFileImpl(ClassFile.
|
Modifier and Type | Method and Description |
---|---|
public ClassFile. | |
public ClassFile. | |
public byte[] | build(ClassEntry
the name of the class to build thisClassEntry, ConstantPoolBuilder the constant pool builder constantPool, Consumer<? super ClassBuilder> a handler that receives a handler)ClassBuilder Implements java. Build a classfile into a byte array using the provided constant pool builder. |
public ClassFile. | |
public ClassFile. | |
public ClassFile. | |
public ClassFile. | |
public ClassFile. | |
public final boolean | equals(Object
the reference object with which to compare. o)Implements abstract java. Indicates whether some other object is "equal to" this one. |
public final int | |
public ClassFile. | |
public ClassModel | parse(byte[]
the bytes of the classfile bytes)Implements java. Parse a classfile into a |
public ClassFile. | |
public ClassFile. | |
public final String | toString()
Implements abstract java. Returns a string representation of the record. |
public byte[] | transform(ClassModel
the class model to transform model, ClassEntry new class name newClassName, ClassTransform the transform transform)Implements java. Transform one classfile into a new classfile with the aid of a
|
public List | verify(ClassModel
the class model to verify model)Implements java. Verify a classfile. |
public List | verify(byte[]
the classfile bytes to verify bytes)Implements java. Verify a classfile. |
public ClassFileImpl | withOptions(ClassFile.
the desired processing options optionsImplements java. Returns a copy of the context with altered options. |
attributeMapperOption | back to summary |
---|---|
private final ClassFile. Record Component accessed by attributeMapperOption(). |
attributesProcessingOption | back to summary |
---|---|
private final ClassFile. Record Component accessed by attributesProcessingOption(). |
classHierarchyResolverOption | back to summary |
---|---|
private final ClassFile. Record Component accessed by classHierarchyResolverOption(). |
constantPoolSharingOption | back to summary |
---|---|
private final ClassFile. Record Component accessed by constantPoolSharingOption(). |
deadCodeOption | back to summary |
---|---|
private final ClassFile. Record Component accessed by deadCodeOption(). |
deadLabelsOption | back to summary |
---|---|
private final ClassFile. Record Component accessed by deadLabelsOption(). |
debugElementsOption | back to summary |
---|---|
private final ClassFile. Record Component accessed by debugElementsOption(). |
DEFAULT_CONTEXT | back to summary |
---|---|
public static final ClassFileImpl DEFAULT_CONTEXT |
lineNumbersOption | back to summary |
---|---|
private final ClassFile. Record Component accessed by lineNumbersOption(). |
shortJumpsOption | back to summary |
---|---|
private final ClassFile. Record Component accessed by shortJumpsOption(). |
stackMapsOption | back to summary |
---|---|
private final ClassFile. Record Component accessed by stackMapsOption(). |
ClassFileImpl | back to summary |
---|---|
public ClassFileImpl(ClassFile. |
attributeMapperOption | back to summary |
---|---|
public ClassFile. Record Component getter of attributeMapperOption. |
attributesProcessingOption | back to summary |
---|---|
public ClassFile. Record Component getter of attributesProcessingOption. |
build | back to summary |
---|---|
public byte[] build(ClassEntry thisClassEntry, ConstantPoolBuilder constantPool, Consumer<? super ClassBuilder> handler) Implements java. Doc from java. Build a classfile into a byte array using the provided constant pool builder.
|
classHierarchyResolverOption | back to summary |
---|---|
public ClassFile. Record Component getter of classHierarchyResolverOption. |
constantPoolSharingOption | back to summary |
---|---|
public ClassFile. Record Component getter of constantPoolSharingOption. |
deadCodeOption | back to summary |
---|---|
public ClassFile. Record Component getter of deadCodeOption. |
deadLabelsOption | back to summary |
---|---|
public ClassFile. Record Component getter of deadLabelsOption. |
debugElementsOption | back to summary |
---|---|
public ClassFile. Record Component getter of debugElementsOption. |
equals | back to summary |
---|---|
public final boolean equals(Object o) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of R copy = new R(r.c1(), r.c2(), ..., r.cn());then it must be the case that r.equals(copy) .
|
hashCode | back to summary |
---|---|
public final int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of
|
lineNumbersOption | back to summary |
---|---|
public ClassFile. Record Component getter of lineNumbersOption. |
parse | back to summary |
---|---|
public ClassModel parse(byte[] bytes) Implements java. Doc from java. Parse a classfile into a
|
shortJumpsOption | back to summary |
---|---|
public ClassFile. Record Component getter of shortJumpsOption. |
stackMapsOption | back to summary |
---|---|
public ClassFile. Record Component getter of stackMapsOption. |
toString | back to summary |
---|---|
public final String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of 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.
|
transform | back to summary |
---|---|
public byte[] transform(ClassModel model, ClassEntry newClassName, ClassTransform transform) Implements java. Doc from java. Transform one classfile into a new classfile with the aid of a
|
verify | back to summary |
---|---|
public List Implements java. Doc from java. Verify a classfile. Any verification errors found will be returned.
|
verify | back to summary |
---|---|
public List Implements java. Doc from java. Verify a classfile. Any verification errors found will be returned.
|
withOptions | back to summary |
---|---|
public ClassFileImpl withOptions(ClassFile. Implements java. Doc from java. Returns a copy of the context with altered options.
|
Modifier and Type | Field and Description |
---|---|
private final Function | attributeMapper
Record Component accessed by attributeMapper(). |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
public Function | attributeMapper()
Record Component getter of attributeMapper. Implements java. Returns the function mapping attribute names to attribute mappers.
|
public final boolean | equals(Object
the reference object with which to compare. o)Implements abstract java. Indicates whether some other object is "equal to" this one. |
public final int | |
public final String | toString()
Implements abstract java. Returns a string representation of the record. |
attributeMapper | back to summary |
---|---|
private final Function<Utf8Entry, AttributeMapper<?>> attributeMapper Record Component accessed by attributeMapper(). |
AttributeMapperOptionImpl | back to summary |
---|---|
public AttributeMapperOptionImpl(Function<Utf8Entry, AttributeMapper<?>> attributeMapper) |
attributeMapper | back to summary |
---|---|
public Function Record Component getter of attributeMapper. Implements java. Doc from java. Returns the function mapping attribute names to attribute mappers.
|
equals | back to summary |
---|---|
public final boolean equals(Object o) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of R copy = new R(r.c1(), r.c2(), ..., r.cn());then it must be the case that r.equals(copy) .
|
hashCode | back to summary |
---|---|
public final int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of
|
toString | back to summary |
---|---|
public final String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of 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.
|
Modifier and Type | Field and Description |
---|---|
private final ClassHierarchyResolver | classHierarchyResolver
Record Component accessed by classHierarchyResolver(). |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
public ClassHierarchyResolver | classHierarchyResolver()
Record Component getter of classHierarchyResolver. Implements java. Returns the class hierarchy resolver.
|
public final boolean | equals(Object
the reference object with which to compare. o)Implements abstract java. Indicates whether some other object is "equal to" this one. |
public final int | |
public final String | toString()
Implements abstract java. Returns a string representation of the record. |
classHierarchyResolver | back to summary |
---|---|
private final ClassHierarchyResolver classHierarchyResolver Record Component accessed by classHierarchyResolver(). |
ClassHierarchyResolverOptionImpl | back to summary |
---|---|
public ClassHierarchyResolverOptionImpl(ClassHierarchyResolver classHierarchyResolver) |
classHierarchyResolver | back to summary |
---|---|
public ClassHierarchyResolver classHierarchyResolver() Record Component getter of classHierarchyResolver. Implements java. Doc from java. Returns the class hierarchy resolver.
|
equals | back to summary |
---|---|
public final boolean equals(Object o) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of R copy = new R(r.c1(), r.c2(), ..., r.cn());then it must be the case that r.equals(copy) .
|
hashCode | back to summary |
---|---|
public final int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of
|
toString | back to summary |
---|---|
public final String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of 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.
|