// resolve each element in the list
Enumeration e = elements();
while (e.hasMoreElements()) {
JavaToken t = (JavaToken) e.nextElement();
// System.out.println("!resolve "+t.getText()+" file="+t.getFile().getAbsolutePath()+":"+t.getLine());
Definition d = symbolTable.lookup(t.getText(),
t.getParamCount(), null);
if (d == null) {
d = symbolTable.findPackage(t.getText());
}
if (d != null) {
// System.out.println("Found reference:"+d.getQualifiedName());
d.addReference(new Occurrence(t.getFile(), t.getLine(),
t.getColumn(),
t.getPackageName(),
t.getClassName(),
t.getMethodName()));
d.resolveRefs(symbolTable);
}
// else
// System.out.println("Could not resolve "+t.getText());