org.dellroad.jc.cgen
Class CValueSwitch

java.lang.Object
  extended bysoot.jimple.AbstractJimpleValueSwitch
      extended byorg.dellroad.jc.cgen.CValueSwitch
All Implemented Interfaces:
ConstantSwitch, ExprSwitch, JimpleValueSwitch, RefSwitch, Switch

public class CValueSwitch
extends AbstractJimpleValueSwitch

Converts Jimple expressions into C expressions.


Constructor Summary
CValueSwitch(CMethod method, ValueBox valueBox)
           
 
Method Summary
 void caseAddExpr(AddExpr v)
           
 void caseAndExpr(AndExpr v)
           
 void caseArrayRef(ArrayRef v)
           
 void caseCastExpr(CastExpr v)
           
 void caseCaughtExceptionRef(CaughtExceptionRef v)
           
 void caseCmpExpr(CmpExpr v)
           
 void caseCmpgExpr(CmpgExpr v)
           
 void caseCmplExpr(CmplExpr v)
           
 void caseDivExpr(DivExpr v)
           
 void caseDoubleConstant(DoubleConstant v)
           
 void caseEqExpr(EqExpr v)
           
 void caseFloatConstant(FloatConstant v)
           
 void caseGeExpr(GeExpr v)
           
 void caseGtExpr(GtExpr v)
           
 void caseInstanceFieldRef(InstanceFieldRef v)
           
 void caseInstanceOfExpr(InstanceOfExpr v)
           
 void caseIntConstant(IntConstant v)
           
 void caseInterfaceInvokeExpr(InterfaceInvokeExpr v)
           
 void caseLeExpr(LeExpr v)
           
 void caseLengthExpr(LengthExpr v)
           
 void caseLocal(Local local)
           
 void caseLongConstant(LongConstant v)
           
 void caseLtExpr(LtExpr v)
           
 void caseMulExpr(MulExpr v)
           
 void caseNeExpr(NeExpr v)
           
 void caseNegExpr(NegExpr v)
           
 void caseNewArrayExpr(NewArrayExpr v)
           
 void caseNewExpr(NewExpr v)
           
 void caseNewMultiArrayExpr(NewMultiArrayExpr v)
           
 void caseNullConstant(NullConstant v)
           
 void caseOrExpr(OrExpr v)
           
 void caseParameterRef(ParameterRef v)
           
 void caseRemExpr(RemExpr v)
           
 void caseShlExpr(ShlExpr v)
           
 void caseShrExpr(ShrExpr v)
           
 void caseSpecialInvokeExpr(SpecialInvokeExpr v)
           
 void caseStaticFieldRef(StaticFieldRef v)
           
 void caseStaticInvokeExpr(StaticInvokeExpr v)
           
 void caseStringConstant(StringConstant v)
           
 void caseSubExpr(SubExpr v)
           
 void caseThisRef(ThisRef v)
           
 void caseUshrExpr(UshrExpr v)
           
 void caseVirtualInvokeExpr(VirtualInvokeExpr v)
           
 void caseXorExpr(XorExpr v)
           
 void defaultCase(Object v)
           
 
Methods inherited from class soot.jimple.AbstractJimpleValueSwitch
getResult, setResult
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CValueSwitch

public CValueSwitch(CMethod method,
                    ValueBox valueBox)
Method Detail

caseArrayRef

public void caseArrayRef(ArrayRef v)

caseDoubleConstant

public void caseDoubleConstant(DoubleConstant v)

caseFloatConstant

public void caseFloatConstant(FloatConstant v)

caseIntConstant

public void caseIntConstant(IntConstant v)

caseLongConstant

public void caseLongConstant(LongConstant v)

caseNullConstant

public void caseNullConstant(NullConstant v)

caseStringConstant

public void caseStringConstant(StringConstant v)

caseAddExpr

public void caseAddExpr(AddExpr v)

caseAndExpr

public void caseAndExpr(AndExpr v)

caseCmpExpr

public void caseCmpExpr(CmpExpr v)

caseCmpgExpr

public void caseCmpgExpr(CmpgExpr v)

caseCmplExpr

public void caseCmplExpr(CmplExpr v)

caseDivExpr

public void caseDivExpr(DivExpr v)

caseEqExpr

public void caseEqExpr(EqExpr v)

caseGeExpr

public void caseGeExpr(GeExpr v)

caseGtExpr

public void caseGtExpr(GtExpr v)

caseLeExpr

public void caseLeExpr(LeExpr v)

caseLtExpr

public void caseLtExpr(LtExpr v)

caseMulExpr

public void caseMulExpr(MulExpr v)

caseNeExpr

public void caseNeExpr(NeExpr v)

caseOrExpr

public void caseOrExpr(OrExpr v)

caseRemExpr

public void caseRemExpr(RemExpr v)

caseShlExpr

public void caseShlExpr(ShlExpr v)

caseShrExpr

public void caseShrExpr(ShrExpr v)

caseSubExpr

public void caseSubExpr(SubExpr v)

caseUshrExpr

public void caseUshrExpr(UshrExpr v)

caseXorExpr

public void caseXorExpr(XorExpr v)

caseInterfaceInvokeExpr

public void caseInterfaceInvokeExpr(InterfaceInvokeExpr v)

caseSpecialInvokeExpr

public void caseSpecialInvokeExpr(SpecialInvokeExpr v)

caseStaticInvokeExpr

public void caseStaticInvokeExpr(StaticInvokeExpr v)

caseVirtualInvokeExpr

public void caseVirtualInvokeExpr(VirtualInvokeExpr v)

caseCastExpr

public void caseCastExpr(CastExpr v)

caseInstanceOfExpr

public void caseInstanceOfExpr(InstanceOfExpr v)

caseNewArrayExpr

public void caseNewArrayExpr(NewArrayExpr v)

caseNewMultiArrayExpr

public void caseNewMultiArrayExpr(NewMultiArrayExpr v)

caseNewExpr

public void caseNewExpr(NewExpr v)

caseLengthExpr

public void caseLengthExpr(LengthExpr v)

caseNegExpr

public void caseNegExpr(NegExpr v)

caseInstanceFieldRef

public void caseInstanceFieldRef(InstanceFieldRef v)

caseLocal

public void caseLocal(Local local)

caseParameterRef

public void caseParameterRef(ParameterRef v)

caseCaughtExceptionRef

public void caseCaughtExceptionRef(CaughtExceptionRef v)

caseThisRef

public void caseThisRef(ThisRef v)

caseStaticFieldRef

public void caseStaticFieldRef(StaticFieldRef v)

defaultCase

public void defaultCase(Object v)