All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.softicar.platform.common.code.java.CodeAnalyser Maven / Gradle / Ivy

Go to download

The SoftiCAR Platform is a lightweight, Java-based library to create interactive business web applications.

There is a newer version: 50.0.0
Show newest version
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();
		}
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy