org.dellroad.jc.cgen
Class NullCheckStmt

java.lang.Object
  extended bysoot.tagkit.AbstractHost
      extended bysoot.AbstractUnit
          extended bysoot.jimple.internal.AbstractStmt
              extended bysoot.jimple.internal.JInvokeStmt
                  extended byorg.dellroad.jc.cgen.NullCheckStmt
All Implemented Interfaces:
ConvertToBaf, Host, InvokeStmt, Serializable, Stmt, Switchable, Unit

public class NullCheckStmt
extends JInvokeStmt

Jimple statement that represents a null pointer check. This is a hack, as we have to look like a normal Jimple stmt.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class soot.AbstractUnit
emptyList
 
Constructor Summary
NullCheckStmt(Value value)
           
 
Method Summary
static SootMethod getNullCheckMethod()
           
 Value getNullCheckValue()
           
static void insertNullCheck(PatchingChain units, Stmt stmt, Value value)
           
static boolean isNullCheck(Stmt stmt)
           
 String toString()
           
 void toString(UnitPrinter up)
           
 
Methods inherited from class soot.jimple.internal.JInvokeStmt
apply, branches, clone, containsInvokeExpr, convertToBaf, fallsThrough, getInvokeExpr, getInvokeExprBox, getUseBoxes, setInvokeExpr
 
Methods inherited from class soot.jimple.internal.AbstractStmt
containsArrayRef, containsFieldRef, getArrayRef, getArrayRefBox, getFieldRef, getFieldRefBox
 
Methods inherited from class soot.AbstractUnit
addBoxPointingToThis, clearUnitBoxes, getBoxesPointingToThis, getDefBoxes, getUnitBoxes, getUseAndDefBoxes, redirectJumpsToThisTo, removeBoxPointingToThis
 
Methods inherited from class soot.tagkit.AbstractHost
addAllTagsOf, addTag, getTag, getTags, hasTag, removeAllTags, removeTag
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface soot.jimple.Stmt
containsArrayRef, containsFieldRef, getArrayRef, getArrayRefBox, getFieldRef, getFieldRefBox
 
Methods inherited from interface soot.Unit
addBoxPointingToThis, clearUnitBoxes, getBoxesPointingToThis, getDefBoxes, getUnitBoxes, getUseAndDefBoxes, redirectJumpsToThisTo, removeBoxPointingToThis
 
Methods inherited from interface soot.tagkit.Host
addAllTagsOf, addTag, getTag, getTags, hasTag, removeAllTags, removeTag
 

Constructor Detail

NullCheckStmt

public NullCheckStmt(Value value)
Method Detail

getNullCheckValue

public Value getNullCheckValue()

toString

public void toString(UnitPrinter up)

toString

public String toString()

getNullCheckMethod

public static SootMethod getNullCheckMethod()

insertNullCheck

public static void insertNullCheck(PatchingChain units,
                                   Stmt stmt,
                                   Value value)

isNullCheck

public static boolean isNullCheck(Stmt stmt)