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

public final Class BufferedFieldBuilder

extends Object
implements TerminalFieldBuilder
Class Inheritance
All Implemented Interfaces
jdk.internal.classfile.impl.TerminalFieldBuilder, java.lang.classfile.FieldBuilder, java.lang.classfile.ClassFileBuilder, java.util.function.Consumer
Imports
java.lang.classfile.AccessFlags, .ClassModel, .FieldBuilder, .FieldElement, .FieldModel, java.lang.classfile.constantpool.ConstantPoolBuilder, .Utf8Entry, java.lang.reflect.AccessFlag, java.util.ArrayList, .List, .Optional, java.util.function.Consumer

Nested and Inner Type Summary

Modifier and TypeClass and Description
public class

Field Summary

Modifier and TypeField and Description
private final SplitConstantPool
private final ClassFileImpl
private final Utf8Entry
private final List<FieldElement>
private AccessFlags
private final Utf8Entry

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public ConstantPoolBuilder
constantPool()

Implements java.lang.classfile.ClassFileBuilder.constantPool.

Returns the constant pool builder associated with this builder.

public BufferedFieldBuilder
run(Consumer<? super FieldBuilder> handler)

public FieldModel
public FieldBuilder
with(FieldElement element)

Implements java.lang.classfile.ClassFileBuilder.with.

Integrates the member element into the structure being built.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

constantPoolback to summary
private final SplitConstantPool constantPool
contextback to summary
private final ClassFileImpl context
descback to summary
private final Utf8Entry desc
elementsback to summary
private final List<FieldElement> elements
flagsback to summary
private AccessFlags flags
nameback to summary
private final Utf8Entry name

Constructor Detail

BufferedFieldBuilderback to summary
public BufferedFieldBuilder(SplitConstantPool constantPool, ClassFileImpl context, Utf8Entry name, Utf8Entry type)

Method Detail

constantPoolback to summary
public ConstantPoolBuilder constantPool()

Implements java.lang.classfile.ClassFileBuilder.constantPool.

Doc from java.lang.classfile.ClassFileBuilder.constantPool.

Returns the constant pool builder associated with this builder.

Annotations
@Override
runback to summary
public BufferedFieldBuilder run(Consumer<? super FieldBuilder> handler)
toModelback to summary
public FieldModel toModel()
withback to summary
public FieldBuilder with(FieldElement element)

Implements java.lang.classfile.ClassFileBuilder.with.

Doc from java.lang.classfile.ClassFileBuilder.with.

Integrates the member element into the structure being built.

Annotations
@Override
jdk.internal.classfile.impl back to summary

public final Class BufferedFieldBuilder.Model

extends AbstractUnboundModel<FieldElement>
implements FieldModel
Class Inheritance
All Implemented Interfaces
java.lang.classfile.FieldModel, java.lang.classfile.ClassElement, java.lang.classfile.ClassFileElement, java.lang.classfile.AttributedElement, java.lang.classfile.CompoundElement, java.lang.Iterable

Field Summary

Inherited from jdk.internal.classfile.impl.AbstractUnboundModel:
elements

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Utf8Entry
fieldName()

Implements java.lang.classfile.FieldModel.fieldName.

Returns the name of this field.

public Utf8Entry
fieldType()

Implements java.lang.classfile.FieldModel.fieldType.

Returns the field descriptor string of this field.

public AccessFlags
flags()

Implements java.lang.classfile.FieldModel.flags.

Returns the access flags.

public Optional<ClassModel>
parent()

Implements java.lang.classfile.FieldModel.parent.

Returns the class model this field is a member of, if known.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

public void
Inherited from jdk.internal.classfile.impl.AbstractUnboundModel:
attributeselementListelementStreamforEach

Constructor Detail

Modelback to summary
public Model()

Method Detail

fieldNameback to summary
public Utf8Entry fieldName()

Implements java.lang.classfile.FieldModel.fieldName.

Doc from java.lang.classfile.FieldModel.fieldName.

Returns the name of this field.

Annotations
@Override
fieldTypeback to summary
public Utf8Entry fieldType()

Implements java.lang.classfile.FieldModel.fieldType.

Doc from java.lang.classfile.FieldModel.fieldType.

Returns the field descriptor string of this field.

Annotations
@Override
flagsback to summary
public AccessFlags flags()

Implements java.lang.classfile.FieldModel.flags.

Doc from java.lang.classfile.FieldModel.flags.

Returns the access flags.

Annotations
@Override
parentback to summary
public Optional<ClassModel> parent()

Implements java.lang.classfile.FieldModel.parent.

Doc from java.lang.classfile.FieldModel.parent.

Returns the class model this field is a member of, if known.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override
writeToback to summary
public void writeTo(DirectClassBuilder builder)

Overrides jdk.internal.classfile.impl.AbstractElement.writeTo.

Annotations
@Override