package io.coati; import java.util.ArrayList; import com.github.javaparser.ast.body.BodyDeclaration; import me.tomassetti.symbolsolver.model.resolution.TypeSolver; public abstract class JavaNameResolver { TypeSolver m_typeSolver = null; ArrayList m_ignoredContexts = null; public JavaNameResolver(TypeSolver typeSolver, ArrayList ignoredContexts) { m_typeSolver = typeSolver; if (ignoredContexts != null) { m_ignoredContexts = ignoredContexts; } else { m_ignoredContexts = new ArrayList(); } } protected boolean ignoresContext(BodyDeclaration context) { if (m_ignoredContexts != null) { for (BodyDeclaration ignoredContext: m_ignoredContexts) { if (ignoredContext.equals(context)) { return true; } } } return false; } }