Modifier and Type | Field and Description |
---|---|
private final Consumer | |
private final DirectClassBuilder |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
public ConstantPoolBuilder | constantPool()
Implements java. Returns the constant pool builder associated with this builder. |
public Optional | original()
Implements java. Returns the |
public ClassBuilder | transformField(FieldModel
the field to be transformed field, FieldTransform the transform to apply to the field transform)Implements java. Adds a field by transforming a field from another class. |
public ClassBuilder | transformMethod(MethodModel
the method to be transformed method, MethodTransform the transform to apply to the method transform)Implements java. Adds a method by transforming a method from another class. |
public ClassBuilder | with(ClassElement
the element element)Implements java. Integrate the |
public ClassBuilder | withField(Utf8Entry
the name of the field name, Utf8Entry the field descriptor descriptor, Consumer<? super FieldBuilder> handler which receives a handler)FieldBuilder which can
further define the contents of the fieldImplements java. Adds a field. |
public ClassBuilder | withMethod(Utf8Entry
the name of the method name, Utf8Entry the method descriptor descriptor, int the access flags flags, Consumer<? super MethodBuilder> handler which receives a handler)MethodBuilder which can
further define the contents of the methodImplements java. Adds a method. |
consumer | back to summary |
---|---|
private final Consumer<ClassElement> consumer |
terminal | back to summary |
---|---|
private final DirectClassBuilder terminal |
ChainedClassBuilder | back to summary |
---|---|
public ChainedClassBuilder(ClassBuilder downstream, Consumer<ClassElement> consumer) |
constantPool | back to summary |
---|---|
public ConstantPoolBuilder constantPool() Implements java. Doc from java. Returns the constant pool builder associated with this builder.
|
original | back to summary |
---|---|
public Optional Implements java. Doc from java. Returns the
|
transformField | back to summary |
---|---|
public ClassBuilder transformField(FieldModel field, FieldTransform transform) Implements java. Doc from java. Adds a field by transforming a field from another class.
|
transformMethod | back to summary |
---|---|
public ClassBuilder transformMethod(MethodModel method, MethodTransform transform) Implements java. Doc from java. Adds a method by transforming a method from another class.
|
with | back to summary |
---|---|
public ClassBuilder with(ClassElement element) Implements java. Doc from java. Integrate the
|
withField | back to summary |
---|---|
public ClassBuilder withField(Utf8Entry name, Utf8Entry descriptor, Consumer<? super FieldBuilder> handler) Implements java. Doc from java. Adds a field.
|
withMethod | back to summary |
---|---|
public ClassBuilder withMethod(Utf8Entry name, Utf8Entry descriptor, int flags, Consumer<? super MethodBuilder> handler) Implements java. Doc from java. Adds a method.
|