Constructor and Description |
---|
Labels() |
Modifier and Type | Method and Description |
---|---|
Label |
getLabel(String labelName) |
boolean |
hasLabel(String labelName) |
Collection<Label> |
labels() |
void |
markLabel(BytecodeEmitter asm,
String labelName,
int opcode)
If the label exists, it will invoke the
Label.mark(int) on the existing Label . |
String |
nextLabelName()
Generates the next sequenced labeled name
|
void |
reconcileLabels(Instructions instructions)
Reconciles the labels
|
void |
setLabel(BytecodeEmitter asm,
String labelName)
If the label exists, it will invoke the
Label.set() on the existing Label . |
void |
storeLabel(String labelName,
Label label)
Stores the label
|
public boolean hasLabel(String labelName)
labelName
- public void storeLabel(String labelName, Label label)
labelName
- label
- public Label getLabel(String labelName)
labelName
- public Collection<Label> labels()
Label
spublic void markLabel(BytecodeEmitter asm, String labelName, int opcode)
Label.mark(int)
on the existing Label
.
If the label does not exist, it will create it and associate it with the supplied BytecodeEmitter
and
invoke the Label.mark(int)
on it.asm
- labelName
- opcode
- public void setLabel(BytecodeEmitter asm, String labelName)
Label.set()
on the existing Label
.
If the label does not exist, it will create it and associate it with the supplied BytecodeEmitter
and
invoke the Label.set()
on it.asm
- labelName
- public String nextLabelName()
public void reconcileLabels(Instructions instructions)
instructions
- the list of instructions that contain the jump labelsCopyright © 2010–2015. All rights reserved.