Class IfStmt

java.lang.Object
  |
  +--Statement
        |
        +--IfStmt

public class IfStmt
extends Statement


Field Summary
(package private)  Statement else_block
           
(package private)  Expr expr
           
(package private)  Statement then_block
           
 
Constructor Summary
IfStmt()
           
 
Method Summary
 void codegen(ClassFile classfile, CodeAttribute code)
           
 void if_codegen(ClassFile classfile, CodeAttribute code, boolean not)
           
(package private)  void sc_check(java.util.Vector classname, java.util.Hashtable ch, java.util.Hashtable bh, boolean ext, java.util.Hashtable parach, java.util.Hashtable parabh)
           
(package private)  void set_Else_block(Statement blk)
           
(package private)  void set_Expr(Expr exp)
           
(package private)  void set_Then_block(Statement blk)
           
 
Methods inherited from class Statement
print_rec, print_rec, print_rec, print_rec
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

expr

Expr expr

then_block

Statement then_block

else_block

Statement else_block
Constructor Detail

IfStmt

public IfStmt()
Method Detail

set_Expr

void set_Expr(Expr exp)

set_Then_block

void set_Then_block(Statement blk)

set_Else_block

void set_Else_block(Statement blk)

sc_check

void sc_check(java.util.Vector classname,
              java.util.Hashtable ch,
              java.util.Hashtable bh,
              boolean ext,
              java.util.Hashtable parach,
              java.util.Hashtable parabh)
        throws SCStatementException
Specified by:
sc_check in class Statement
SCStatementException

codegen

public void codegen(ClassFile classfile,
                    CodeAttribute code)
             throws JVMCodeException
Specified by:
codegen in class Statement
JVMCodeException

if_codegen

public void if_codegen(ClassFile classfile,
                       CodeAttribute code,
                       boolean not)
                throws JVMCodeException
JVMCodeException