anvil.script.statements
Class Case

java.lang.Object
  |
  +--anvil.script.statements.Case

public class Case
extends java.lang.Object


Field Summary
protected  BlockStatement _block
           
protected  Any _const
           
protected  Expression _expr
           
protected  Source _source
           
protected  Target _target
           
 
Constructor Summary
Case(Expression expr, BlockStatement block)
           
 
Method Summary
 void addChild(Statement statement)
           
 void check(ErrorListener listener)
           
 void checkExpression(ErrorListener listener)
           
 void compile(ByteCompiler context)
           
 Jumps eliminate(ErrorListener listener)
           
 BlockStatement getBlock()
           
 Any getConstant()
           
 Expression getExpression()
           
 Location getLocation()
           
 void go_to(Code code)
           
 void if_ne(Code code)
           
 boolean isDefault()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_source

protected Source _source

_target

protected Target _target

_expr

protected Expression _expr

_const

protected Any _const

_block

protected BlockStatement _block
Constructor Detail

Case

public Case(Expression expr,
            BlockStatement block)
Method Detail

isDefault

public boolean isDefault()

getExpression

public Expression getExpression()

getBlock

public BlockStatement getBlock()

getConstant

public Any getConstant()

getLocation

public Location getLocation()

addChild

public void addChild(Statement statement)

check

public void check(ErrorListener listener)

checkExpression

public void checkExpression(ErrorListener listener)

eliminate

public Jumps eliminate(ErrorListener listener)

compile

public void compile(ByteCompiler context)

go_to

public void go_to(Code code)

if_ne

public void if_ne(Code code)