package no.uio.ifi.refaktor.analyze.collectors; import no.uio.ifi.refaktor.prefix.Prefix; import no.uio.ifi.refaktor.prefix.PrefixSet; import no.uio.ifi.refaktor.utils.CompilationUnitTextSelection; public class PrefixesCollector extends AbstractPrefixCollector { private final PrefixSet prefixes; public PrefixesCollector(CompilationUnitTextSelection selection) { super(selection); this.prefixes = new PrefixSet(); } protected void registerPrefix(Prefix prefix) { prefixes.registerAllSubPrefixesOf(prefix); } public PrefixSet getPrefixes() { return prefixes; } @Override public void clearData() { prefixes.clear(); } }