| Modifier and Type | Class and Description |
|---|---|
| public class |
| Modifier and Type | Field and Description |
|---|---|
| private final SplitConstantPool | |
| private final ClassFileImpl | |
| private final List | |
| private final LabelImpl | |
| private boolean | |
| private int | |
| private final MethodInfo | |
| private final LabelImpl |
| Access | Constructor and Description |
|---|---|
| public | BufferedCodeBuilder(MethodInfo methodInfo, SplitConstantPool constantPool, ClassFileImpl context, CodeModel original)
|
| Modifier and Type | Method and Description |
|---|---|
| public int | allocateLocal(TypeKind typeKind)
Implements java. Returns the local variable slot of a fresh local variable. |
| public ConstantPoolBuilder | constantPool()
Implements java. Returns the constant pool builder associated with this builder. |
| public int | |
| public Label | endLabel()
Implements java. Returns the label associated with the end of the current block. |
| public Label | |
| public int | |
| public Label | newLabel()
Implements java. Returns a fresh unbound label. |
| public int | parameterSlot(int paramNo)
Implements java. Returns the local variable slot associated with the specified parameter. |
| public int | receiverSlot()
Implements java. Returns the local variable slot associated with the receiver. |
| public BufferedCodeBuilder | |
| public void | setLabelTarget(Label label, int bci)
Implements jdk.
|
| public Label | startLabel()
Implements java. Returns the label associated with the beginning of the current block. |
| public CodeModel | |
| public String | |
| public CodeBuilder | with(CodeElement element)
Implements java. Integrates the member element into the structure being built. |
| constantPool | back to summary |
|---|---|
| private final SplitConstantPool constantPool | |
| context | back to summary |
|---|---|
| private final ClassFileImpl context | |
| elements | back to summary |
|---|---|
| private final List<CodeElement> elements | |
| endLabel | back to summary |
|---|---|
| private final LabelImpl endLabel | |
| finished | back to summary |
|---|---|
| private boolean finished | |
| maxLocals | back to summary |
|---|---|
| private int maxLocals | |
| methodInfo | back to summary |
|---|---|
| private final MethodInfo methodInfo | |
| startLabel | back to summary |
|---|---|
| private final LabelImpl startLabel | |
| BufferedCodeBuilder | back to summary |
|---|---|
| public BufferedCodeBuilder(MethodInfo methodInfo, SplitConstantPool constantPool, ClassFileImpl context, CodeModel original) | |
| allocateLocal | back to summary |
|---|---|
| public int allocateLocal(TypeKind typeKind) Implements java. Doc from java. Returns the local variable slot of a fresh local variable. This method
makes reasonable efforts to determine which slots are in use and which
are not. When transforming a method, fresh locals begin at the
If the current code builder is a
| |
| constantPool | back to summary |
|---|---|
| public ConstantPoolBuilder constantPool() Implements java. Doc from java. Returns the constant pool builder associated with this builder.
| |
| curTopLocal | back to summary |
|---|---|
| public int curTopLocal() Implements jdk. | |
| endLabel | back to summary |
|---|---|
| public Label endLabel() Implements java. Doc from java. Returns the label associated with the end of the current block.
If this builder is not a "block" builder, such as those provided by
| |
| getLabel | back to summary |
|---|---|
| public Label getLabel(int bci) Implements jdk.
| |
| labelToBci | back to summary |
|---|---|
| public int labelToBci(Label label) Implements jdk.
| |
| newLabel | back to summary |
|---|---|
| public Label newLabel() Implements java. Doc from java. Returns a fresh unbound label.
The label can be bound with
| |
| parameterSlot | back to summary |
|---|---|
| public int parameterSlot(int paramNo) Implements java. Doc from java. Returns the local variable slot associated with the specified parameter.
The returned value is adjusted for the receiver slot (if the method is
an instance method) and for the requirement that
| |
| receiverSlot | back to summary |
|---|---|
| public int receiverSlot() Implements java. Doc from java. Returns the local variable slot associated with the receiver.
| |
| run | back to summary |
|---|---|
| public BufferedCodeBuilder run(Consumer<? super CodeBuilder> handler) | |
| setLabelTarget | back to summary |
|---|---|
| public void setLabelTarget(Label label, int bci) Implements jdk.
| |
| startLabel | back to summary |
|---|---|
| public Label startLabel() Implements java. Doc from java. Returns the label associated with the beginning of the current block.
If this builder is not a "block" builder, such as those provided by
| |
| toModel | back to summary |
|---|---|
| public CodeModel toModel() | |
| 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-
| |
| with | back to summary |
|---|---|
| public CodeBuilder with(CodeElement element) Implements java. Doc from java. Integrates the member element into the structure being built.
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv int | |
| public List | exceptionHandlers()
Implements java. Returns the exception table of the method. |
| public Optional | |
| public String | |
| public void |
| Model | back to summary |
|---|---|
| private Model() | |
| curTopLocal | back to summary |
|---|---|
| pack-priv int curTopLocal() | |
| exceptionHandlers | back to summary |
|---|---|
| public List Implements java. Doc from java. Returns the exception table of the method. The exception table is also
modeled by
| |
| parent | back to summary |
|---|---|
| public Optional Implements java. Doc from java. Returns the enclosing method, 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(DirectMethodBuilder builder) Overrides jdk.
| |