Representation of following kinds of new statements: new instance: o = new T new array: o = new T[..] new multi-array: o = new T[..][..]
| 35 | * </ul> |
| 36 | */ |
| 37 | public 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected