public FieldUsageAnalysis(Collection<? extends Method> methods) {
// find non-transitive usage
for (Method method : methods) {
for (Statement statement : method.getStatements()) {
if (statement instanceof FieldStatement) {
FieldStatement stm = (FieldStatement)statement;
Field field = stm.getField();
uses.add(method, field);
}
}
}