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

public final Class ChainedMethodBuilder

extends Object
implements MethodBuilder
Class Inheritance
All Implemented Interfaces
java.lang.classfile.MethodBuilder, java.lang.classfile.ClassFileBuilder, java.util.function.Consumer
Imports
java.lang.classfile.CodeBuilder, .CodeModel, .CodeTransform, .MethodBuilder, .MethodElement, java.lang.classfile.constantpool.ConstantPoolBuilder, java.util.function.Consumer

Field Summary

Modifier and TypeField and Description
pack-priv final Consumer<MethodElement>
pack-priv final TerminalMethodBuilder

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 MethodBuilder
transformCode(CodeModel code, CodeTransform transform)

Implements java.lang.classfile.MethodBuilder.transformCode.

Build the method body for this method by transforming the body of another method.

public MethodBuilder
with(MethodElement element)

Implements java.lang.classfile.ClassFileBuilder.with.

Integrates the member element into the structure being built.

public MethodBuilder
withCode(Consumer<? super CodeBuilder> handler)

Implements java.lang.classfile.MethodBuilder.withCode.

Build the method body for this method.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

consumerback to summary
pack-priv final Consumer<MethodElement> consumer
terminalback to summary
pack-priv final TerminalMethodBuilder terminal

Constructor Detail

ChainedMethodBuilderback to summary
public ChainedMethodBuilder(MethodBuilder downstream, Consumer<MethodElement> consumer)

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
transformCodeback to summary
public MethodBuilder transformCode(CodeModel code, CodeTransform transform)

Implements java.lang.classfile.MethodBuilder.transformCode.

Doc from java.lang.classfile.MethodBuilder.transformCode.

Build the method body for this method by transforming the body of another method.

This method behaves as if:

withCode(cob -> cob.transform(code, transform));
withCode(cob -> cob.transform(code, transform));
Annotations
@Override
withback to summary
public MethodBuilder with(MethodElement 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
withCodeback to summary
public MethodBuilder withCode(Consumer<? super CodeBuilder> handler)

Implements java.lang.classfile.MethodBuilder.withCode.

Doc from java.lang.classfile.MethodBuilder.withCode.

Build the method body for this method.

Annotations
@Override