com.softicar.platform.common.code.java.CodeAnalyser Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of platform-common Show documentation
Show all versions of platform-common Show documentation
The SoftiCAR Platform is a lightweight, Java-based library to create interactive business web applications.
package com.softicar.platform.common.code.java;
import java.util.TreeSet;
/**
* Searches through the list of code lines for identifiers
*
* @author Oliver Richers
*/
public class CodeAnalyser {
private final TreeSet identifiers = new TreeSet<>();
public TreeSet getIdentifiers() {
return identifiers;
}
public void analyse(Iterable code) {
for (String line: code) {
new IdentifierExtractor(line, identifiers).extract();
}
}
}