Package sootup.core.jimple.common.stmt
Class JThrowStmt
java.lang.Object
sootup.core.jimple.common.stmt.AbstractStmt
sootup.core.jimple.common.stmt.JThrowStmt
- All Implemented Interfaces:
EquivTo,Stmt,Acceptor<StmtVisitor>
A statement that throws an Exception
-
Field Summary
Fields inherited from class sootup.core.jimple.common.stmt.AbstractStmt
positionInfo -
Constructor Summary
Constructors -
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, 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.intReturns the amount of unexceptional successors the Stmt needs to have in the ControlFlowGraph.@NonNull ImmediategetOp()booleantoString()voidtoString(@NonNull StmtPrinter up) @NonNull JThrowStmt@NonNull JThrowStmtwithPositionInfo(@NonNull StmtPositionInfo positionInfo) Methods inherited from class sootup.core.jimple.common.stmt.AbstractStmt
asInvokableStmt, containsArrayRef, containsFieldRef, getArrayRef, getDef, 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
asJAssignStmt, asJBreakpointStmt, asJEnterMonitorStmt, asJExitMonitorStmt, asJGotoStmt, asJIdentityStmt, asJIfStmt, asJInvokeStmt, asJNopStmt, asJRetStmt, asJReturnStmt, asJReturnVoidStmt, asJSwitchStmt, getUses, getUsesAndDefs, isJAssignStmt, isJBreakpointStmt, isJEnterMonitorStmt, isJExitMonitorStmt, isJGotoStmt, isJIdentityStmt, isJIfStmt, isJInvokeStmt, isJNopStmt, isJRetStmt, isJReturnStmt, isJReturnVoidStmt, isJSwitchStmt, toJAssignStmt, toJBreakpointStmt, toJEnterMonitorStmt, toJExitMonitorStmt, toJGotoStmt, toJIdentityStmt, toJIfStmt, toJInvokeStmt, toJNopStmt, toJRetStmt, toJReturnStmt, toJReturnVoidStmt, toJSwitchStmt
-
Constructor Details
-
JThrowStmt
-
-
Method Details
-
toString
-
toString
-
isJThrowStmt
public boolean isJThrowStmt() -
asJThrowStmt
-
toJThrowStmt
-
accept
Description copied from interface:AcceptorCalled when this object is visited.- 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).- 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.- Returns:
- true if this statement may branch to a non-sequential successor
-
getExpectedSuccessorCount
public int getExpectedSuccessorCount()Description copied from class:AbstractStmtReturns the amount of unexceptional successors the Stmt needs to have in the ControlFlowGraph.- Specified by:
getExpectedSuccessorCountin interfaceStmt- Overrides:
getExpectedSuccessorCountin classAbstractStmt
-
equivTo
Description copied from interface:EquivToReturns true if this object is equivalent to o according to the given comparator.- Parameters:
o- the object to compare withcomparator- the comparator defining the equivalence relation- Returns:
- true if this object is structurally equivalent to o under the given comparator
-
withOp
-
withPositionInfo
-
getOp
-
collectUses
Description copied from interface:StmtCollects all values used by this statement into the given list.- Specified by:
collectUsesin interfaceStmt- Overrides:
collectUsesin classAbstractStmt
-
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.- Returns:
- a structural hash code consistent with equivTo
-