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

Class New

src/main/java/pascal/taie/ir/stmt/New.java:37–57  ·  view source on GitHub ↗

Representation of following kinds of new statements: new instance: o = new T new array: o = new T[..] new multi-array: o = new T[..][..]

Source from the content-addressed store, hash-verified

35 * </ul>
36 */
37public class New extends AssignStmt<Var, NewExp> {
38
39 /**
40 * The method containing this new statement.
41 */
42 private final JMethod container;
43
44 public New(JMethod method, Var lvalue, NewExp rvalue) {
45 super(lvalue, rvalue);
46 this.container = method;
47 }
48
49 public JMethod getContainer() {
50 return container;
51 }
52
53 @Override
54 public <T> T accept(StmtVisitor<T> visitor) {
55 return visitor.visit(this);
56 }
57}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected