gr.uom.java.xmi.decomposition.AbstractStatement 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.decomposition;
import java.util.List;
public abstract class AbstractStatement extends AbstractCodeFragment {
private CompositeStatementObject parent;
public void setParent(CompositeStatementObject parent) {
this.parent = parent;
}
public CompositeStatementObject getParent() {
return this.parent;
}
public String getString() {
return toString();
}
public VariableDeclaration searchVariableDeclaration(String variableName) {
VariableDeclaration variableDeclaration = this.getVariableDeclaration(variableName);
if(variableDeclaration != null) {
return variableDeclaration;
}
else if(parent != null) {
return parent.searchVariableDeclaration(variableName);
}
return null;
}
public abstract List getLeaves();
public abstract int statementCount();
}