public interface Label extends Location
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
Modifier and Type | Method and Description |
---|---|
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.
|
compareTo
Label setLocation()
int getLocation() throws IllegalStateException
getLocation
in interface Location
IllegalStateException
- when the location is unknown because
the setLocation method was never called.Copyright © 2004-2015 Cojen. All Rights Reserved.