gr.uom.java.xmi.AnonymousClassDeclarationVisitor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of refactoring-miner Show documentation
Show all versions of refactoring-miner Show documentation
RefactoringMiner is a library/API written in Java that can detect refactorings applied in the history of a Java project.
package gr.uom.java.xmi;
import java.util.LinkedHashSet;
import java.util.Set;
import org.eclipse.jdt.core.dom.ASTVisitor;
import org.eclipse.jdt.core.dom.AnonymousClassDeclaration;
public class AnonymousClassDeclarationVisitor extends ASTVisitor {
private Set anonymousClassDeclarations = new LinkedHashSet();
public boolean visit(AnonymousClassDeclaration node) {
anonymousClassDeclarations.add(node);
return super.visit(node);
}
public Set getAnonymousClassDeclarations() {
return anonymousClassDeclarations;
}
}