|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Label
A label is used to manipulate a branch instruction's branch location. A label has a location address. Branch instructions have origin addresses, which contain the address of the opcode that performs the conditional or unconditional branch.
Labels are generated by factory methods in the CodeBuilder class. If a label has any origin addresses, its location address must be set by the time the CodeBuilder's class file is output.
CodeBuilder
Method Summary | |
---|---|
int |
getLocation()
Returns -1 if the location isn't yet fully resolved. |
Label |
setLocation()
Sets the location of a label to be at the current postion in the code being generated. |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Method Detail |
---|
Label setLocation()
int getLocation() throws IllegalStateException
getLocation
in interface Location
IllegalStateException
- when the location is unknown because
the setLocation method was never called.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |