MCPcopy Create free account
hub / github.com/LFYSec/MScan / getTarget

Method getTarget

src/main/java/pascal/taie/ir/stmt/SwitchStmt.java:72–74  ·  view source on GitHub ↗

@return the i-th jump target (for i-th case) of the switch-statement. The indexes start from 0. Target for default case is excluded.

(int i)

Source from the content-addressed store, hash-verified

70 * The indexes start from 0. Target for default case is excluded.
71 */
72 public Stmt getTarget(int i) {
73 return targets.get(i);
74 }
75
76 public void setTargets(List<Stmt> targets) {
77 this.targets = List.copyOf(targets);

Callers

nothing calls this directly

Calls 1

getMethod · 0.65

Tested by

no test coverage detected