Modifier and Type | Class and Description |
---|---|
public class |
Modifier and Type | Field and Description |
---|---|
private final SplitConstantPool | |
private final ClassFileImpl | |
private final Utf8Entry | |
private final List | |
private AccessFlags | |
pack-priv MethodTypeDesc | |
private final Utf8Entry | |
private final MethodModel | |
private int[] |
Access | Constructor and Description |
---|---|
public | BufferedMethodBuilder(SplitConstantPool constantPool, ClassFileImpl context, Utf8Entry nameInfo, Utf8Entry typeInfo, MethodModel original)
|
Modifier and Type | Method and Description |
---|---|
public BufferedCodeBuilder | |
public ConstantPoolBuilder | constantPool()
Implements java. Returns the constant pool builder associated with this builder. |
public int | |
public Utf8Entry | |
public Utf8Entry | |
public MethodTypeDesc | |
public Optional | original()
Implements java. Returns the |
public int | |
public BufferedMethodBuilder | |
public MethodModel | |
public MethodBuilder | transformCode(CodeModel
the method body to be transformed code, CodeTransform the transform to apply to the method body transform)Implements java. Build the method body for this method by transforming the body of another method. |
public MethodBuilder | with(MethodElement
the element element)Implements java. Integrate the |
public MethodBuilder | withCode(Consumer<? super CodeBuilder>
a handler receiving a handler)CodeBuilder Implements java. Build the method body for this method. |
constantPool | back to summary |
---|---|
private final SplitConstantPool constantPool |
context | back to summary |
---|---|
private final ClassFileImpl context |
desc | back to summary |
---|---|
private final Utf8Entry desc |
elements | back to summary |
---|---|
private final List<MethodElement> elements |
flags | back to summary |
---|---|
private AccessFlags flags |
mDesc | back to summary |
---|---|
pack-priv MethodTypeDesc mDesc |
name | back to summary |
---|---|
private final Utf8Entry name |
original | back to summary |
---|---|
private final MethodModel original |
parameterSlots | back to summary |
---|---|
private int[] parameterSlots |
BufferedMethodBuilder | back to summary |
---|---|
public BufferedMethodBuilder(SplitConstantPool constantPool, ClassFileImpl context, Utf8Entry nameInfo, Utf8Entry typeInfo, MethodModel original) |
bufferedCodeBuilder | back to summary |
---|---|
public BufferedCodeBuilder bufferedCodeBuilder(CodeModel original) Implements jdk.
|
constantPool | back to summary |
---|---|
public ConstantPoolBuilder constantPool() Implements java. Doc from java. Returns the constant pool builder associated with this builder.
|
methodFlags | back to summary |
---|---|
public int methodFlags() Implements jdk.
|
methodName | back to summary |
---|---|
public Utf8Entry methodName() Implements jdk.
|
methodType | back to summary |
---|---|
public Utf8Entry methodType() Implements jdk.
|
methodTypeSymbol | back to summary |
---|---|
public MethodTypeDesc methodTypeSymbol() Implements jdk.
|
original | back to summary |
---|---|
public Optional Implements java. Doc from java. Returns the
|
parameterSlot | back to summary |
---|---|
public int parameterSlot(int paramNo) Implements jdk.
|
run | back to summary |
---|---|
public BufferedMethodBuilder run(Consumer<? super MethodBuilder> handler) |
toModel | back to summary |
---|---|
public MethodModel toModel() |
transformCode | back to summary |
---|---|
public MethodBuilder transformCode(CodeModel code, CodeTransform transform) Implements java. Doc from java. Build the method body for this method by transforming the body of another method.
|
with | back to summary |
---|---|
public MethodBuilder with(MethodElement element) Implements java. Doc from java. Integrate the
|
withCode | back to summary |
---|---|
public MethodBuilder withCode(Consumer<? super CodeBuilder> handler) Implements java. Doc from java. Build the method body for this method.
|
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
public Optional | code()
Implements java. Returns the body of this method, if there is one. |
public AccessFlags | |
public int | |
public Utf8Entry | methodName()
Implements java. Returns the name of this method. |
public Utf8Entry | methodType()
Implements java. Returns the method descriptor of this method. |
public MethodTypeDesc | methodTypeSymbol()
Overrides default java. Implements jdk. Returns the method descriptor of this method, as a symbolic descriptor. |
public int | |
public Optional | parent()
Implements java. Returns the class model this method is a member of, if known. |
public String | |
public void | |
public void | writeTo(BufWriter
the writer buf)Implements java. Writes the element to the specified writer |
Model | back to summary |
---|---|
public Model() |
code | back to summary |
---|---|
public Optional Implements java. Doc from java. Returns the body of this method, if there is one. |
flags | back to summary |
---|---|
public AccessFlags flags() Implements java. Doc from java. Returns the access flags.
|
methodFlags | back to summary |
---|---|
public int methodFlags() Implements jdk.
|
methodName | back to summary |
---|---|
public Utf8Entry methodName() Implements java. Doc from java. Returns the name of this method. |
methodType | back to summary |
---|---|
public Utf8Entry methodType() Implements java. Doc from java. Returns the method descriptor of this method. |
methodTypeSymbol | back to summary |
---|---|
public MethodTypeDesc methodTypeSymbol() Overrides default java. Implements jdk. Doc from java. Returns the method descriptor of this method, as a symbolic descriptor.
|
parameterSlot | back to summary |
---|---|
public int parameterSlot(int paramNo) Implements jdk.
|
parent | back to summary |
---|---|
public Optional Implements java. Doc from java. Returns the class model this method is a member of, if known.
|
toString | back to summary |
---|---|
public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- |
writeTo | back to summary |
---|---|
public void writeTo(DirectClassBuilder builder) Overrides jdk.
|
writeTo | back to summary |
---|---|
public void writeTo(BufWriter buf) Implements java. Doc from java. Writes the element to the specified writer |