Identification of the local "this"

Moderator: Implementing code analyses for large software systems

alexandergreat524
Neuling
Neuling
Beiträge: 8
Registriert: 6. Nov 2014 18:38

Identification of the local "this"

Beitrag von alexandergreat524 »

Taking calling a constructor like public Foo (int a, int b) {this.a = a, this.b = b} into account, what could we do if we want to let our analysis know that "this" is really corresponding to what object with the certain class type? (InstanceFieldRef)(((AssignStmt) unit).getLeftOp()).getBase() does not help, does it? Because it shows that this = null after I have done that.

Zurück zu „Implementing code analyses for large software systems (ICA)“