|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectavrora.core.Program.Label
The Label class represents a label within the
Program instance that encapsulates it. It may be a label
that refers to the program (code) segment, the data segment, or the
EEPROM segment.
| Field Summary | |
int |
address
The address field records the address of this label
as a byte address. |
java.lang.String |
name
The name field records the name of this label. |
| Constructor Summary | |
protected |
Program.Label(java.lang.String n,
int a)
The constructor for the base abstract class Label simply
initializes the internal references to the name and the address of
this label. |
| Method Summary | |
boolean |
isDataSegment()
The isDataSegment() method returns whether this
label refers to the data segment. |
boolean |
isEEPromSegment()
The isEEPromSegment() method returns whether this
label refers to the eeprom segment. |
boolean |
isProgramSegment()
The isProgramSegment() method returns whether this
label refers to the program segment. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public final java.lang.String name
name field records the name of this label.
public final int address
address field records the address of this label
as a byte address.
| Constructor Detail |
protected Program.Label(java.lang.String n,
int a)
Label simply
initializes the internal references to the name and the address of
this label.
n - the name of the label as a stringa - the byte address associated with this label| Method Detail |
public boolean isProgramSegment()
isProgramSegment() method returns whether this
label refers to the program segment.
public boolean isDataSegment()
isDataSegment() method returns whether this
label refers to the data segment.
public boolean isEEPromSegment()
isEEPromSegment() method returns whether this
label refers to the eeprom segment.
public java.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||