Lines Matching refs:factory

106      * factory to use.
158 private static void registerAnalyzer(FileAnalyzerFactory factory) {
159 for (String name : factory.getFileNames()) {
160 FileAnalyzerFactory old = FILE_NAMES.put(name, factory);
164 for (String suffix : factory.getSuffixes()) {
165 FileAnalyzerFactory old = ext.put(suffix, factory);
169 for (String magic : factory.getMagicStrings()) {
170 FileAnalyzerFactory old = magics.put(magic, factory);
174 matchers.addAll(factory.getMatchers());
175 factories.add(factory);
182 * @param factory a factory which creates
188 FileAnalyzerFactory factory) {
189 if (factory == null) {
192 ext.put(extension, factory);
215 FileAnalyzerFactory factory = find(in, file);
216 if (factory == null) {
219 return factory.getAnalyzer();
282 * if the factory was not found
287 FileAnalyzerFactory factory = find(in, file);
289 if (factory != null) {
290 type = factory.getContentType();
298 * @param factory The analyzer factory for this filetype
308 public static void writeXref(FileAnalyzerFactory factory, Reader in,
314 if (factory.getGenre() == Genre.PLAIN) {
319 factory.writeXref(input, out, defs, annotation, project);
345 * @param factory the analyzer factory to get the genre for
348 public static Genre getGenre(FileAnalyzerFactory factory) {
349 if (factory != null) {
350 return factory.getGenre();
359 * @param factoryClassName name of the factory class
360 * @return a file analyzer factory
379 * @param factoryClass the factory class
380 * @return a file analyzer factory
411 * @return the analyzer factory to use
417 FileAnalyzerFactory factory = find(file);
422 if (factory != null) {
423 return factory;
432 * @return the analyzer factory to use
443 FileAnalyzerFactory factory =
445 if (factory != null) {
446 return factory;
459 * @return the analyzer factory to use
476 FileAnalyzerFactory factory = find(content);
477 if (factory != null) {
478 return factory;
495 * @return the analyzer factory to use