Errai 3.0.1-SNAPSHOT

org.jboss.errai.reflections.scanners
Class AbstractScanner

java.lang.Object
  extended by org.jboss.errai.reflections.scanners.AbstractScanner
All Implemented Interfaces:
Scanner
Direct Known Subclasses:
ConvertersScanner, ErraiPropertyScanner, FieldAnnotationsScanner, MethodAnnotationsScanner, MethodParametersAnnotationsScanner, MethodParameterScanner, ResourcesScanner, SubTypesScanner, TypeAnnotationsScanner, TypeElementsScanner, TypesScanner

public abstract class AbstractScanner
extends Object
implements Scanner


Constructor Summary
AbstractScanner()
           
 
Method Summary
protected  boolean acceptResult(String fqn)
           
 boolean acceptsInput(String file)
           
 Scanner filterResultsBy(com.google.common.base.Predicate<String> filter)
           
 Configuration getConfiguration()
           
protected  MetadataAdapter getMetadataAdapter()
           
 String getName()
          Get the name of this scanner.
 com.google.common.base.Predicate<String> getResultFilter()
           
 com.google.common.collect.Multimap<String,String> getStore()
           
abstract  void scan(Object cls)
           
 void scan(Vfs.File file)
           
 void setConfiguration(Configuration configuration)
           
 void setResultFilter(com.google.common.base.Predicate<String> resultFilter)
           
 void setStore(com.google.common.collect.Multimap<String,String> store)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractScanner

public AbstractScanner()
Method Detail

getName

public String getName()
Get the name of this scanner. This is normally the class name of the scanner. Subclasses designed to override the behaviour of built-in scanners should return the name of the scanner they wish to override.

Specified by:
getName in interface Scanner

acceptsInput

public boolean acceptsInput(String file)
Specified by:
acceptsInput in interface Scanner

scan

public void scan(Vfs.File file)
Specified by:
scan in interface Scanner

scan

public abstract void scan(Object cls)

getConfiguration

public Configuration getConfiguration()

setConfiguration

public void setConfiguration(Configuration configuration)
Specified by:
setConfiguration in interface Scanner

getStore

public com.google.common.collect.Multimap<String,String> getStore()

setStore

public void setStore(com.google.common.collect.Multimap<String,String> store)
Specified by:
setStore in interface Scanner

getResultFilter

public com.google.common.base.Predicate<String> getResultFilter()
Specified by:
getResultFilter in interface Scanner

setResultFilter

public void setResultFilter(com.google.common.base.Predicate<String> resultFilter)

filterResultsBy

public Scanner filterResultsBy(com.google.common.base.Predicate<String> filter)
Specified by:
filterResultsBy in interface Scanner

acceptResult

protected boolean acceptResult(String fqn)

getMetadataAdapter

protected MetadataAdapter getMetadataAdapter()

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.