|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectBoolConst
This clas encapsulates all aspects of code generation for boolean constatns. String constants and Int constants are handled by StringTable and IntTable respectively, but since there are only two boolean constants, we handle them here.
Field Summary | |
(package private) static BoolConst |
falsebool
|
(package private) static BoolConst |
truebool
|
private boolean |
val
|
Constructor Summary | |
(package private) |
BoolConst(boolean val)
Creates a new boolean constant. |
(package private) |
BoolConst(java.lang.Boolean val)
Creates a new boolean constant. |
Method Summary | |
void |
codeDef(int boolclasstag,
java.io.PrintStream s)
Generates code for the boolean constant definition. |
void |
codeRef(java.io.PrintStream s)
Emits a reference to this boolean constant. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private boolean val
static final BoolConst truebool
static final BoolConst falsebool
Constructor Detail |
BoolConst(boolean val)
val
- the valueBoolConst(java.lang.Boolean val)
val
- the valueMethod Detail |
public void codeRef(java.io.PrintStream s)
s
- the output streampublic void codeDef(int boolclasstag, java.io.PrintStream s)
boolclasstag
- the class tag for string objects
- the output stream
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |