Package sootup.core.jimple.common.stmt
Interface InvokableStmt
- All Superinterfaces:
Acceptor<StmtVisitor>
,EquivTo
,Stmt
- All Known Implementing Classes:
JAssignStmt
,JInvokeStmt
Interface for Stmts that could invoke a different method which will be executed before the next
statement is executed
-
Method Summary
Modifier and TypeMethodDescriptionReturns the possible invoke expression in the invokable statementboolean
Checks if the invokable statement can potentially invoke a static initializer To cause a static initializer call, the statement contains a static method call, a new expression, or a static field reference.Methods inherited from interface sootup.core.jimple.basic.EquivTo
equivHashCode, equivTo, equivTo
Methods inherited from interface sootup.core.jimple.common.stmt.Stmt
asInvokableStmt, asJAssignStmt, asJBreakpointStmt, asJEnterMonitorStmt, asJExitMonitorStmt, asJGotoStmt, asJIdentityStmt, asJIfStmt, asJInvokeStmt, asJNopStmt, asJRetStmt, asJReturnStmt, asJReturnVoidStmt, asJSwitchStmt, asJThrowStmt, branches, containsArrayRef, containsFieldRef, fallsThrough, getArrayRef, getDef, getExpectedSuccessorCount, getFieldRef, getPositionInfo, getUses, getUsesAndDefs, isInvokableStmt, isJAssignStmt, isJBreakpointStmt, isJEnterMonitorStmt, isJExitMonitorStmt, isJGotoStmt, isJIdentityStmt, isJIfStmt, isJInvokeStmt, isJNopStmt, isJRetStmt, isJReturnStmt, isJReturnVoidStmt, isJSwitchStmt, isJThrowStmt, toJAssignStmt, toJBreakpointStmt, toJEnterMonitorStmt, toJExitMonitorStmt, toJGotoStmt, toJIdentityStmt, toJIfStmt, toJInvokeStmt, toJNopStmt, toJRetStmt, toJReturnStmt, toJReturnVoidStmt, toJSwitchStmt, toJThrowStmt, toString, withNewUse
-
Method Details
-
invokesStaticInitializer
boolean invokesStaticInitializer()Checks if the invokable statement can potentially invoke a static initializer To cause a static initializer call, the statement contains a static method call, a new expression, or a static field reference.- Returns:
- true if the statement can cause a static initializer call, and false if not.
-
getInvokeExpr
Optional<AbstractInvokeExpr> getInvokeExpr()Returns the possible invoke expression in the invokable statement- Returns:
- The optional contains the invoke expression of the invokable statement or is empty if there is no invoke expression.
-