All Packages Class Hierarchy This Package Previous Next Index
Class espresso.syntaxtree.BooleanLiteral
java.lang.Object
|
+----espresso.syntaxtree.SyntaxTreeNode
|
+----espresso.syntaxtree.ExpressionNode
|
+----espresso.syntaxtree.Literal
|
+----espresso.syntaxtree.BooleanLiteral
- public class BooleanLiteral
- extends Literal
-
value_d
-
-
BooleanLiteral(BigDecimal)
-
-
BooleanLiteral(Boolean)
-
-
addToConstantPool(ClassGen)
-
-
evaluate(SymbolTable)
-
-
translate(ClassGen, MethodGen)
-
-
translateSynthesized(ClassGen, MethodGen)
- First translate the expression and then synthesize it.
-
typeCheck(SymbolTable)
-
value_d
public Boolean value_d
BooleanLiteral
public BooleanLiteral(Boolean value)
BooleanLiteral
public BooleanLiteral(BigDecimal value)
typeCheck
public Type typeCheck(SymbolTable stable) throws TypeCheckError
- Overrides:
- typeCheck in class Literal
evaluate
public BigDecimal evaluate(SymbolTable stable) throws NotConstant
- Overrides:
- evaluate in class ExpressionNode
translate
public void translate(ClassGen classGen,
MethodGen methodGen)
- Overrides:
- translate in class ExpressionNode
translateSynthesized
public BranchHandle translateSynthesized(ClassGen classGen,
MethodGen methodGen)
- First translate the expression and then synthesize it.
- Overrides:
- translateSynthesized in class ExpressionNode
addToConstantPool
public int addToConstantPool(ClassGen classGen)
- Overrides:
- addToConstantPool in class Literal
All Packages Class Hierarchy This Package Previous Next Index