|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object soot.jimple.Jimple
public class Jimple
The Jimple class contains all the constructors for the components of the Jimple
grammar for the Jimple body.
Immediate -> Local | Constant
RValue -> Local | Constant | ConcreteRef | Expr
Variable -> Local | ArrayRef | InstanceFieldRef | StaticFieldRef
Constructor Summary | |
---|---|
Jimple(Singletons.Global g)
|
Method Summary | |
---|---|
static Value |
cloneIfNecessary(Value val)
|
static boolean |
isJavaKeywordType(Type t)
|
static List<String> |
jimpleKeywordList()
|
AddExpr |
newAddExpr(Value op1,
Value op2)
Constructs a AddExpr(Immediate, Immediate) grammar chunk. |
AndExpr |
newAndExpr(Value op1,
Value op2)
Constructs a AndExpr(Immediate, Immediate) grammar chunk. |
ValueBox |
newArgBox(Value value)
|
ArrayRef |
newArrayRef(Value base,
Value index)
Constructs a ArrayRef(Local, Immediate) grammar chunk. |
AssignStmt |
newAssignStmt(Value variable,
Value rvalue)
Constructs a AssignStmt(Variable, RValue) grammar chunk. |
JimpleBody |
newBody()
Returns an empty JimpleBody with no associated method. |
JimpleBody |
newBody(SootMethod m)
Returns an empty JimpleBody associated with method m. |
BreakpointStmt |
newBreakpointStmt()
Constructs a BreakpointStmt() grammar chunk. |
CastExpr |
newCastExpr(Value op1,
Type t)
Constructs a CastExpr(Immediate, Type) grammar chunk. |
CaughtExceptionRef |
newCaughtExceptionRef()
Constructs a CaughtExceptionRef() grammar chunk. |
CmpExpr |
newCmpExpr(Value op1,
Value op2)
Constructs a CmpExpr(Immediate, Immediate) grammar chunk. |
CmpgExpr |
newCmpgExpr(Value op1,
Value op2)
Constructs a CmpgExpr(Immediate, Immediate) grammar chunk. |
CmplExpr |
newCmplExpr(Value op1,
Value op2)
Constructs a CmplExpr(Immediate, Immediate) grammar chunk. |
ValueBox |
newConditionExprBox(Value value)
|
DivExpr |
newDivExpr(Value op1,
Value op2)
Constructs a DivExpr(Immediate, Immediate) grammar chunk. |
DynamicInvokeExpr |
newDynamicInvokeExpr(SootMethodRef bootstrapMethodRef,
List bootstrapArgs,
SootMethodRef methodRef,
List args)
Constructs a NewDynamicInvokeExpr(SootMethodRef bootstrapMethodRef, List bootstrapArgs, SootMethodRef methodRef, List args) grammar chunk. |
EnterMonitorStmt |
newEnterMonitorStmt(Value op)
Constructs a EnterMonitorStmt(Immediate) grammar chunk. |
EqExpr |
newEqExpr(Value op1,
Value op2)
Constructs a EqExpr(Immediate, Immediate) grammar chunk. |
ExitMonitorStmt |
newExitMonitorStmt(Value op)
Constructs a ExitMonitorStmt(Immediate) grammar chunk |
GeExpr |
newGeExpr(Value op1,
Value op2)
Constructs a GeExpr(Immediate, Immediate) grammar chunk. |
GotoStmt |
newGotoStmt(Unit target)
Constructs a GotoStmt(Stmt) grammar chunk. |
GotoStmt |
newGotoStmt(UnitBox stmtBox)
|
GtExpr |
newGtExpr(Value op1,
Value op2)
Constructs a GtExpr(Immediate, Immediate) grammar chunk. |
ValueBox |
newIdentityRefBox(Value value)
|
IdentityStmt |
newIdentityStmt(Value local,
Value identityRef)
Constructs a IdentityStmt(Local, IdentityRef) grammar chunk. |
IfStmt |
newIfStmt(Value condition,
Unit target)
Constructs a IfStmt(Condition, Stmt) grammar chunk. |
IfStmt |
newIfStmt(Value condition,
UnitBox target)
|
ValueBox |
newImmediateBox(Value value)
|
InstanceFieldRef |
newInstanceFieldRef(Value base,
SootFieldRef f)
Constructs a InstanceFieldRef(Local, SootFieldRef) grammar chunk. |
InstanceOfExpr |
newInstanceOfExpr(Value op1,
Type t)
Constructs a InstanceOfExpr(Immediate, Type) grammar chunk. |
InterfaceInvokeExpr |
newInterfaceInvokeExpr(Local base,
SootMethodRef method)
Constructs a NewInterfaceInvokeExpr(Local base, SootMethodRef method, List of Immediate) grammar chunk. |
InterfaceInvokeExpr |
newInterfaceInvokeExpr(Local base,
SootMethodRef method,
List args)
Constructs a NewInterfaceInvokeExpr(Local base, SootMethodRef method, List of Immediate) grammar chunk. |
InterfaceInvokeExpr |
newInterfaceInvokeExpr(Local base,
SootMethodRef method,
Value arg)
Constructs a NewInterfaceInvokeExpr(Local base, SootMethodRef method, List of Immediate) grammar chunk. |
InterfaceInvokeExpr |
newInterfaceInvokeExpr(Local base,
SootMethodRef method,
Value arg1,
Value arg2)
Constructs a NewInterfaceInvokeExpr(Local base, SootMethodRef method, List of Immediate) grammar chunk. |
ValueBox |
newInvokeExprBox(Value value)
|
InvokeStmt |
newInvokeStmt(Value op)
Constructs a InvokeStmt(InvokeExpr) grammar chunk. |
LeExpr |
newLeExpr(Value op1,
Value op2)
Constructs a LeExpr(Immediate, Immediate) grammar chunk. |
LengthExpr |
newLengthExpr(Value op)
Constructs a LengthExpr(Immediate) grammar chunk. |
Local |
newLocal(String name,
Type t)
Constructs a Local with the given name and type. |
ValueBox |
newLocalBox(Value value)
|
LookupSwitchStmt |
newLookupSwitchStmt(Value key,
List<Object> lookupValues,
List<Object> targets,
UnitBox defaultTarget)
|
LookupSwitchStmt |
newLookupSwitchStmt(Value key,
List lookupValues,
List targets,
Unit defaultTarget)
Constructs a LookupSwitchStmt(Immediate, List of Immediate, List of Unit, Stmt) grammar chunk. |
LtExpr |
newLtExpr(Value op1,
Value op2)
Constructs a LtExpr(Immediate, Immediate) grammar chunk. |
MulExpr |
newMulExpr(Value op1,
Value op2)
Constructs a MulExpr(Immediate, Immediate) grammar chunk. |
NeExpr |
newNeExpr(Value op1,
Value op2)
Constructs a NeExpr(Immediate, Immediate) grammar chunk. |
NegExpr |
newNegExpr(Value op)
Constructs a NegExpr(Immediate, Immediate) grammar chunk. |
NewArrayExpr |
newNewArrayExpr(Type type,
Value size)
Constructs a NewArrayExpr(Type, Immediate) grammar chunk. |
NewExpr |
newNewExpr(RefType type)
Constructs a NewExpr(RefType) grammar chunk. |
NewMultiArrayExpr |
newNewMultiArrayExpr(ArrayType type,
List sizes)
Constructs a NewMultiArrayExpr(ArrayType, List of Immediate) grammar chunk. |
NopStmt |
newNopStmt()
Constructs a NopStmt() grammar chunk. |
OrExpr |
newOrExpr(Value op1,
Value op2)
Constructs a OrExpr(Immediate, Immediate) grammar chunk. |
ParameterRef |
newParameterRef(Type paramType,
int number)
Constructs a ParameterRef(SootMethod, int) grammar chunk. |
RemExpr |
newRemExpr(Value op1,
Value op2)
Constructs a RemExpr(Immediate, Immediate) grammar chunk. |
RetStmt |
newRetStmt(Value stmtAddress)
Constructs a RetStmt(Local) grammar chunk. |
ReturnStmt |
newReturnStmt(Value op)
Constructs a ReturnStmt(Immediate) grammar chunk. |
ReturnVoidStmt |
newReturnVoidStmt()
Constructs a ReturnVoidStmt() grammar chunk. |
ValueBox |
newRValueBox(Value value)
|
ShlExpr |
newShlExpr(Value op1,
Value op2)
Constructs a ShlExpr(Immediate, Immediate) grammar chunk. |
ShrExpr |
newShrExpr(Value op1,
Value op2)
Constructs a ShrExpr(Immediate, Immediate) grammar chunk. |
SpecialInvokeExpr |
newSpecialInvokeExpr(Local base,
SootMethodRef method)
Constructs a NewSpecialInvokeExpr(Local base, SootMethodRef method, List of Immediate) grammar chunk. |
SpecialInvokeExpr |
newSpecialInvokeExpr(Local base,
SootMethodRef method,
List args)
Constructs a NewSpecialInvokeExpr(Local base, SootMethodRef method, List of Immediate) grammar chunk. |
SpecialInvokeExpr |
newSpecialInvokeExpr(Local base,
SootMethodRef method,
Value arg)
Constructs a NewSpecialInvokeExpr(Local base, SootMethodRef method, List of Immediate) grammar chunk. |
SpecialInvokeExpr |
newSpecialInvokeExpr(Local base,
SootMethodRef method,
Value arg1,
Value arg2)
Constructs a NewSpecialInvokeExpr(Local base, SootMethodRef method, List of Immediate) grammar chunk. |
StaticFieldRef |
newStaticFieldRef(SootFieldRef f)
Constructs a StaticFieldRef(SootFieldRef) grammar chunk. |
StaticInvokeExpr |
newStaticInvokeExpr(SootMethodRef method)
Constructs a NewStaticInvokeExpr(ArrayType, List of Immediate) grammar chunk. |
StaticInvokeExpr |
newStaticInvokeExpr(SootMethodRef method,
List args)
|
StaticInvokeExpr |
newStaticInvokeExpr(SootMethodRef method,
Value... args)
Constructs a NewStaticInvokeExpr(ArrayType, List of Immediate) grammar chunk. |
StaticInvokeExpr |
newStaticInvokeExpr(SootMethodRef method,
Value arg1,
Value arg2)
Constructs a NewStaticInvokeExpr(ArrayType, List of Immediate) grammar chunk. |
UnitBox |
newStmtBox(Unit unit)
|
SubExpr |
newSubExpr(Value op1,
Value op2)
Constructs a SubExpr(Immediate, Immediate) grammar chunk. |
TableSwitchStmt |
newTableSwitchStmt(Value key,
int lowIndex,
int highIndex,
List<Object> targets,
UnitBox defaultTarget)
|
TableSwitchStmt |
newTableSwitchStmt(Value key,
int lowIndex,
int highIndex,
List targets,
Unit defaultTarget)
Constructs a TableSwitchStmt(Immediate, int, int, List of Unit, Stmt) grammar chunk. |
ThisRef |
newThisRef(RefType t)
Constructs a ThisRef(RefType) grammar chunk. |
ThrowStmt |
newThrowStmt(Value op)
Constructs a ThrowStmt(Immediate) grammar chunk. |
Trap |
newTrap(SootClass exception,
UnitBox beginStmt,
UnitBox endStmt,
UnitBox handlerStmt)
|
Trap |
newTrap(SootClass exception,
Unit beginStmt,
Unit endStmt,
Unit handlerStmt)
Constructs a new JTrap for the given exception on the given Stmt range with the given Stmt handler. |
UshrExpr |
newUshrExpr(Value op1,
Value op2)
Constructs a UshrExpr(Immediate, Immediate) grammar chunk. |
ValueBox |
newVariableBox(Value value)
|
VirtualInvokeExpr |
newVirtualInvokeExpr(Local base,
SootMethodRef method)
Constructs a NewVirtualInvokeExpr(Local base, SootMethodRef method, List of Immediate) grammar chunk. |
VirtualInvokeExpr |
newVirtualInvokeExpr(Local base,
SootMethodRef method,
List args)
Constructs a NewVirtualInvokeExpr(Local base, SootMethodRef method, List of Immediate) grammar chunk. |
VirtualInvokeExpr |
newVirtualInvokeExpr(Local base,
SootMethodRef method,
Value arg)
Constructs a NewVirtualInvokeExpr(Local base, SootMethodRef method, List of Immediate) grammar chunk. |
VirtualInvokeExpr |
newVirtualInvokeExpr(Local base,
SootMethodRef method,
Value arg1,
Value arg2)
Constructs a NewVirtualInvokeExpr(Local base, SootMethodRef method, List of Immediate) grammar chunk. |
XorExpr |
newXorExpr(Value op1,
Value op2)
Constructs a XorExpr(Immediate, Immediate) grammar chunk. |
static Jimple |
v()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String NEWARRAY
public static final String NEWMULTIARRAY
public static final String NOP
public static final String RET
public static final String SPECIALINVOKE
public static final String DYNAMICINVOKE
public static final String STATICINVOKE
public static final String TABLESWITCH
public static final String VIRTUALINVOKE
public static final String NULL_TYPE
public static final String UNKNOWN
public static final String CMP
public static final String CMPG
public static final String CMPL
public static final String ENTERMONITOR
public static final String EXITMONITOR
public static final String INTERFACEINVOKE
public static final String LENGTHOF
public static final String LOOKUPSWITCH
public static final String NEG
public static final String IF
public static final String ABSTRACT
public static final String BOOLEAN
public static final String BREAK
public static final String BYTE
public static final String CASE
public static final String CATCH
public static final String CHAR
public static final String CLASS
public static final String FINAL
public static final String NATIVE
public static final String PUBLIC
public static final String PROTECTED
public static final String PRIVATE
public static final String STATIC
public static final String SYNCHRONIZED
public static final String TRANSIENT
public static final String VOLATILE
public static final String STRICTFP
public static final String ENUM
public static final String ANNOTATION
public static final String INTERFACE
public static final String VOID
public static final String SHORT
public static final String INT
public static final String LONG
public static final String FLOAT
public static final String DOUBLE
public static final String EXTENDS
public static final String IMPLEMENTS
public static final String BREAKPOINT
public static final String DEFAULT
public static final String GOTO
public static final String INSTANCEOF
public static final String NEW
public static final String RETURN
public static final String THROW
public static final String THROWS
public static final String NULL
public static final String FROM
public static final String TO
public static final String WITH
public static final String CLS
public static final String TRUE
public static final String FALSE
Constructor Detail |
---|
public Jimple(Singletons.Global g)
Method Detail |
---|
public static Jimple v()
public static List<String> jimpleKeywordList()
public static boolean isJavaKeywordType(Type t)
public static Value cloneIfNecessary(Value val)
public XorExpr newXorExpr(Value op1, Value op2)
public UshrExpr newUshrExpr(Value op1, Value op2)
public SubExpr newSubExpr(Value op1, Value op2)
public ShrExpr newShrExpr(Value op1, Value op2)
public ShlExpr newShlExpr(Value op1, Value op2)
public RemExpr newRemExpr(Value op1, Value op2)
public OrExpr newOrExpr(Value op1, Value op2)
public NeExpr newNeExpr(Value op1, Value op2)
public MulExpr newMulExpr(Value op1, Value op2)
public LeExpr newLeExpr(Value op1, Value op2)
public GeExpr newGeExpr(Value op1, Value op2)
public EqExpr newEqExpr(Value op1, Value op2)
public DivExpr newDivExpr(Value op1, Value op2)
public CmplExpr newCmplExpr(Value op1, Value op2)
public CmpgExpr newCmpgExpr(Value op1, Value op2)
public CmpExpr newCmpExpr(Value op1, Value op2)
public GtExpr newGtExpr(Value op1, Value op2)
public LtExpr newLtExpr(Value op1, Value op2)
public AddExpr newAddExpr(Value op1, Value op2)
public AndExpr newAndExpr(Value op1, Value op2)
public NegExpr newNegExpr(Value op)
public LengthExpr newLengthExpr(Value op)
public CastExpr newCastExpr(Value op1, Type t)
public InstanceOfExpr newInstanceOfExpr(Value op1, Type t)
public NewExpr newNewExpr(RefType type)
public NewArrayExpr newNewArrayExpr(Type type, Value size)
public NewMultiArrayExpr newNewMultiArrayExpr(ArrayType type, List sizes)
public StaticInvokeExpr newStaticInvokeExpr(SootMethodRef method, Value... args)
public StaticInvokeExpr newStaticInvokeExpr(SootMethodRef method, List args)
public SpecialInvokeExpr newSpecialInvokeExpr(Local base, SootMethodRef method, List args)
public DynamicInvokeExpr newDynamicInvokeExpr(SootMethodRef bootstrapMethodRef, List bootstrapArgs, SootMethodRef methodRef, List args)
public VirtualInvokeExpr newVirtualInvokeExpr(Local base, SootMethodRef method, List args)
public InterfaceInvokeExpr newInterfaceInvokeExpr(Local base, SootMethodRef method, List args)
public StaticInvokeExpr newStaticInvokeExpr(SootMethodRef method)
public SpecialInvokeExpr newSpecialInvokeExpr(Local base, SootMethodRef method)
public VirtualInvokeExpr newVirtualInvokeExpr(Local base, SootMethodRef method)
public InterfaceInvokeExpr newInterfaceInvokeExpr(Local base, SootMethodRef method)
public SpecialInvokeExpr newSpecialInvokeExpr(Local base, SootMethodRef method, Value arg)
public VirtualInvokeExpr newVirtualInvokeExpr(Local base, SootMethodRef method, Value arg)
public InterfaceInvokeExpr newInterfaceInvokeExpr(Local base, SootMethodRef method, Value arg)
public StaticInvokeExpr newStaticInvokeExpr(SootMethodRef method, Value arg1, Value arg2)
public SpecialInvokeExpr newSpecialInvokeExpr(Local base, SootMethodRef method, Value arg1, Value arg2)
public VirtualInvokeExpr newVirtualInvokeExpr(Local base, SootMethodRef method, Value arg1, Value arg2)
public InterfaceInvokeExpr newInterfaceInvokeExpr(Local base, SootMethodRef method, Value arg1, Value arg2)
public ThrowStmt newThrowStmt(Value op)
public ExitMonitorStmt newExitMonitorStmt(Value op)
public EnterMonitorStmt newEnterMonitorStmt(Value op)
public BreakpointStmt newBreakpointStmt()
public GotoStmt newGotoStmt(Unit target)
public GotoStmt newGotoStmt(UnitBox stmtBox)
public NopStmt newNopStmt()
public ReturnVoidStmt newReturnVoidStmt()
public ReturnStmt newReturnStmt(Value op)
public RetStmt newRetStmt(Value stmtAddress)
public IfStmt newIfStmt(Value condition, Unit target)
public IfStmt newIfStmt(Value condition, UnitBox target)
public IdentityStmt newIdentityStmt(Value local, Value identityRef)
public AssignStmt newAssignStmt(Value variable, Value rvalue)
public InvokeStmt newInvokeStmt(Value op)
public TableSwitchStmt newTableSwitchStmt(Value key, int lowIndex, int highIndex, List targets, Unit defaultTarget)
public TableSwitchStmt newTableSwitchStmt(Value key, int lowIndex, int highIndex, List<Object> targets, UnitBox defaultTarget)
public LookupSwitchStmt newLookupSwitchStmt(Value key, List lookupValues, List targets, Unit defaultTarget)
public LookupSwitchStmt newLookupSwitchStmt(Value key, List<Object> lookupValues, List<Object> targets, UnitBox defaultTarget)
public Local newLocal(String name, Type t)
public Trap newTrap(SootClass exception, Unit beginStmt, Unit endStmt, Unit handlerStmt)
public Trap newTrap(SootClass exception, UnitBox beginStmt, UnitBox endStmt, UnitBox handlerStmt)
public StaticFieldRef newStaticFieldRef(SootFieldRef f)
public ThisRef newThisRef(RefType t)
public ParameterRef newParameterRef(Type paramType, int number)
public InstanceFieldRef newInstanceFieldRef(Value base, SootFieldRef f)
public CaughtExceptionRef newCaughtExceptionRef()
public ArrayRef newArrayRef(Value base, Value index)
public ValueBox newVariableBox(Value value)
public ValueBox newLocalBox(Value value)
public ValueBox newRValueBox(Value value)
public ValueBox newImmediateBox(Value value)
public ValueBox newArgBox(Value value)
public ValueBox newIdentityRefBox(Value value)
public ValueBox newConditionExprBox(Value value)
public ValueBox newInvokeExprBox(Value value)
public UnitBox newStmtBox(Unit unit)
public JimpleBody newBody(SootMethod m)
public JimpleBody newBody()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |