|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectsymbolHandling.BoolConst
public class BoolConst
This clas encapsulates all aspects of code generation for boolean constants. 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 | |
---|---|
static BoolConst |
falsebool
|
static BoolConst |
truebool
|
Constructor Summary | |
---|---|
BoolConst(boolean val)
Creates a new boolean constant. |
|
BoolConst(java.lang.Boolean val)
Creates a new boolean constant. |
Method Summary | |
---|---|
void |
codeDef(int boolclasstag,
java.io.PrintWriter s)
Generates code for the boolean constant definition. |
void |
codeRef(java.io.PrintWriter 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 |
---|
public static final BoolConst truebool
public static final BoolConst falsebool
Constructor Detail |
---|
public BoolConst(boolean val)
val
- the valuepublic BoolConst(java.lang.Boolean val)
val
- the valueMethod Detail |
---|
public void codeRef(java.io.PrintWriter s)
s
- the output streampublic void codeDef(int boolclasstag, java.io.PrintWriter s)
boolclasstag
- the class tag for string objects
- the output stream
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |