Package sootup.core.jimple.common.stmt
Class JInvokeStmt
java.lang.Object
sootup.core.jimple.common.stmt.AbstractStmt
sootup.core.jimple.common.stmt.JInvokeStmt
- All Implemented Interfaces:
EquivTo,FallsThroughStmt,InvokableStmt,Stmt,Acceptor<StmtVisitor>
A method call
-
Field Summary
Fields inherited from class sootup.core.jimple.common.stmt.AbstractStmt
positionInfo -
Constructor Summary
ConstructorsConstructorDescriptionJInvokeStmt(@NonNull AbstractInvokeExpr invokeExpr, @NonNull StmtPositionInfo positionInfo) -
Method Summary
Modifier and TypeMethodDescription<V extends StmtVisitor>
Vaccept(@NonNull V v) Called when this object is visited.booleanbranches()Returns true if execution after this statement does not necessarily continue at the following statement.voidcollectUses(List<Value> collector) Collects all values used by this statement into the given list.intReturns a (not necessarily fixed) hash code for this object.booleanequivTo(Object o, @NonNull JimpleComparator comparator) Returns true if this object is equivalent to o according to the given comparator.booleanReturns true if execution after this statement may continue at the following statement.@NonNull Optional<AbstractInvokeExpr>Returns the possible invoke expression in the invokable statementbooleanChecks 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.booleantoString()voidtoString(@NonNull StmtPrinter up) @NonNull JInvokeStmtwithInvokeExpr(AbstractInvokeExpr invokeExpr) @NonNull JInvokeStmtwithPositionInfo(@NonNull StmtPositionInfo positionInfo) Methods inherited from class sootup.core.jimple.common.stmt.AbstractStmt
asInvokableStmt, containsArrayRef, containsFieldRef, getArrayRef, getDef, getExpectedSuccessorCount, getFieldRef, getPositionInfo, isInvokableStmt, withNewUseMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface sootup.core.jimple.common.stmt.Stmt
asInvokableStmt, asJAssignStmt, asJBreakpointStmt, asJEnterMonitorStmt, asJExitMonitorStmt, asJGotoStmt, asJIdentityStmt, asJIfStmt, asJNopStmt, asJRetStmt, asJReturnStmt, asJReturnVoidStmt, asJSwitchStmt, asJThrowStmt, containsArrayRef, containsFieldRef, getArrayRef, getDef, getExpectedSuccessorCount, getFieldRef, getPositionInfo, getUses, getUsesAndDefs, isInvokableStmt, isJAssignStmt, isJBreakpointStmt, isJEnterMonitorStmt, isJExitMonitorStmt, isJGotoStmt, isJIdentityStmt, isJIfStmt, isJNopStmt, isJRetStmt, isJReturnStmt, isJReturnVoidStmt, isJSwitchStmt, isJThrowStmt, toJAssignStmt, toJBreakpointStmt, toJEnterMonitorStmt, toJExitMonitorStmt, toJGotoStmt, toJIdentityStmt, toJIfStmt, toJNopStmt, toJRetStmt, toJReturnStmt, toJReturnVoidStmt, toJSwitchStmt, toJThrowStmt, withNewUse
-
Constructor Details
-
JInvokeStmt
-
-
Method Details
-
invokesStaticInitializer
public boolean invokesStaticInitializer()Description copied from interface:InvokableStmtChecks 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.- Specified by:
invokesStaticInitializerin interfaceInvokableStmt- Returns:
- true if the statement can cause a static initializer call, and false if not.
-
toString
-
toString
-
isJInvokeStmt
public boolean isJInvokeStmt()- Specified by:
isJInvokeStmtin interfaceStmt
-
asJInvokeStmt
- Specified by:
asJInvokeStmtin interfaceStmt
-
toJInvokeStmt
- Specified by:
toJInvokeStmtin interfaceStmt
-
getInvokeExpr
Description copied from interface:InvokableStmtReturns the possible invoke expression in the invokable statement- Specified by:
getInvokeExprin interfaceInvokableStmt- Returns:
- The optional contains the invoke expression of the invokable statement or is empty if there is no invoke expression.
-
collectUses
Description copied from interface:StmtCollects all values used by this statement into the given list.- Specified by:
collectUsesin interfaceStmt- Overrides:
collectUsesin classAbstractStmt
-
accept
Description copied from interface:AcceptorCalled when this object is visited.- Specified by:
acceptin interfaceAcceptor<StmtVisitor>- Type Parameters:
V- the concrete visitor type- Parameters:
v- the visitor processing this object- Returns:
- the visitor after processing
-
fallsThrough
public boolean fallsThrough()Description copied from interface:StmtReturns true if execution after this statement may continue at the following statement. (e.g. GotoStmt will return false and e.g. IfStmt will return true).- Specified by:
fallsThroughin interfaceFallsThroughStmt- Specified by:
fallsThroughin interfaceStmt- Returns:
- true if control may fall through to the next statement
-
branches
public boolean branches()Description copied from interface:StmtReturns true if execution after this statement does not necessarily continue at the following statement. TheBranchingStmt's GotoStmt, JSwitchStmt and IfStmt will return true. -
equivTo
Description copied from interface:EquivToReturns true if this object is equivalent to o according to the given comparator. -
equivHashCode
public int equivHashCode()Description copied from interface:EquivToReturns a (not necessarily fixed) hash code for this object. This hash code coincides with equivTo; it is undefined in the presence of mutable objects. The contract is defined inJimpleComparator.- Specified by:
equivHashCodein interfaceEquivTo- Returns:
- a structural hash code consistent with equivTo
-
withInvokeExpr
-
withPositionInfo
-