Package soot.dotnet.instructions
Class CilNewObjInstruction
- java.lang.Object
-
- soot.dotnet.instructions.AbstractCilnstruction
-
- soot.dotnet.instructions.CilCallInstruction
-
- soot.dotnet.instructions.AbstractNewObjInstanceInstruction
-
- soot.dotnet.instructions.CilNewObjInstruction
-
- All Implemented Interfaces:
CilInstruction
public class CilNewObjInstruction extends AbstractNewObjInstanceInstruction
Combi instruction with instantiating a new object and calling the constructor (no structs often) Call resolveCallConstructorBody() afterwards in StLoc
-
-
Field Summary
-
Fields inherited from class soot.dotnet.instructions.AbstractNewObjInstanceInstruction
listOfArgs, methodRef
-
Fields inherited from class soot.dotnet.instructions.AbstractCilnstruction
cilBlock, dotnetBody, instruction
-
-
Constructor Summary
Constructors Constructor Description CilNewObjInstruction(ProtoIlInstructions.IlInstructionMsg instruction, DotnetBody dotnetBody, CilBlock cilBlock)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected InvokeExprcreateInvokeExpr(Body jb, SootClass clazz, DotnetMethod method, soot.dotnet.instructions.CilCallInstruction.MethodParams methodParams)protected booleanhasBaseObj()voidjimplify(Body jb)Jimplify a starting statement of ILSpy ASTValuejimplifyExpr(Body jb)Call Expression-
Methods inherited from class soot.dotnet.instructions.AbstractNewObjInstanceInstruction
getListOfArgs, getMethodRef
-
Methods inherited from class soot.dotnet.instructions.CilCallInstruction
getLocalsToCastForCall, getMethodCallParams, getMethodCallParams, isNonVirtualCall
-
Methods inherited from class soot.dotnet.instructions.AbstractCilnstruction
createTempVar, createTempVar, simplifyComplexExpression
-
-
-
-
Constructor Detail
-
CilNewObjInstruction
public CilNewObjInstruction(ProtoIlInstructions.IlInstructionMsg instruction, DotnetBody dotnetBody, CilBlock cilBlock)
-
-
Method Detail
-
hasBaseObj
protected boolean hasBaseObj()
- Overrides:
hasBaseObjin classCilCallInstruction
-
jimplify
public void jimplify(Body jb)
Description copied from interface:CilInstructionJimplify a starting statement of ILSpy AST- Specified by:
jimplifyin interfaceCilInstruction- Overrides:
jimplifyin classCilCallInstruction
-
jimplifyExpr
public Value jimplifyExpr(Body jb)
Description copied from class:CilCallInstructionCall Expression- Specified by:
jimplifyExprin interfaceCilInstruction- Overrides:
jimplifyExprin classCilCallInstruction- Returns:
-
createInvokeExpr
protected InvokeExpr createInvokeExpr(Body jb, SootClass clazz, DotnetMethod method, soot.dotnet.instructions.CilCallInstruction.MethodParams methodParams)
- Overrides:
createInvokeExprin classAbstractNewObjInstanceInstruction
-
-