java.lang.Object
org.glavo.classfile.impl.AbstractDirectBuilder<FieldModel>
org.glavo.classfile.impl.DirectFieldBuilder
- All Implemented Interfaces:
Consumer<FieldElement>,ClassfileBuilder<FieldElement,,FieldBuilder> ClassfileElement,FieldBuilder,TerminalFieldBuilder,WritableElement<FieldModel>
public final class DirectFieldBuilder
extends AbstractDirectBuilder<FieldModel>
implements TerminalFieldBuilder, WritableElement<FieldModel>
-
Field Summary
Fields inherited from class org.glavo.classfile.impl.AbstractDirectBuilder
attributes, constantPool, original -
Constructor Summary
ConstructorsConstructorDescriptionDirectFieldBuilder(SplitConstantPool constantPool, Utf8Entry name, Utf8Entry type, FieldModel original) -
Method Summary
Modifier and TypeMethodDescriptionrun(Consumer<? super FieldBuilder> handler) with(FieldElement element) Integrate theClassfileElementinto the entity being built.voidWrites the element to the specified writerMethods inherited from class org.glavo.classfile.impl.AbstractDirectBuilder
constantPool, original, setOriginal, writeAttributeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.glavo.classfile.ClassfileBuilder
accept, canWriteDirect, constantPool, transformMethods inherited from interface org.glavo.classfile.FieldBuilder
original, withFlags, withFlags
-
Constructor Details
-
DirectFieldBuilder
public DirectFieldBuilder(SplitConstantPool constantPool, Utf8Entry name, Utf8Entry type, FieldModel original)
-
-
Method Details
-
with
Description copied from interface:ClassfileBuilderIntegrate theClassfileElementinto the entity being built.- Specified by:
within interfaceClassfileBuilder<FieldElement,FieldBuilder> - Parameters:
element- the element- Returns:
- this builder
-
run
-
writeTo
Description copied from interface:WritableElementWrites the element to the specified writer- Specified by:
writeToin interfaceWritableElement<FieldModel>- Parameters:
buf- the writer
-