Package org.reflections.scanners
Enum Scanners
- java.lang.Object
-
- java.lang.Enum<Scanners>
-
- org.reflections.scanners.Scanners
-
- All Implemented Interfaces:
Serializable,Comparable<Scanners>,Scanner,NameHelper,QueryBuilder
public enum Scanners extends Enum<Scanners> implements Scanner, QueryBuilder, NameHelper
base ReflectionsScanners such as:SubTypesTypesAnnotatedMethodsAnnotatedFieldsAnnotatedResourcesMethodsParameterMethodsSignatureMethodsReturn
Configurationin order to be queried
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ConstructorsAnnotatedscan constructor annotationsConstructorsParameterscan constructor parameters types and annotationsConstructorsSignaturescan constructors signatureFieldsAnnotatedscan field annotationsMethodsAnnotatedscan method annotationsMethodsParameterscan method parameters types and annotationsMethodsReturnscan method return typeMethodsSignaturescan methods signatureResourcesscan non .class files such as xml or properties filesSubTypesscan type superclasses and interfacesTypesAnnotatedscan type annotations
-
Field Summary
-
Fields inherited from interface org.reflections.util.NameHelper
primitiveDescriptors, primitiveNames, primitiveTypes
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanacceptResult(String fqn)ScannersfilterResultsBy(Predicate<String> filter)Stringindex()unique index name for scannerList<Map.Entry<String,String>>scan(javassist.bytecode.ClassFile classFile)scan the givenclassFileand produces list ofMap.Entrykey/valuesstatic ScannersvalueOf(String name)Returns the enum constant of this type with the specified name.static Scanners[]values()Returns an array containing the constants of this enum type, in the order they are declared.-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface org.reflections.util.NameHelper
forClass, forConstructor, forElement, forField, forMember, forMethod, forName, forNames, forNames, toName, toName, toName, toName, toName, toNames, toNames
-
-
-
-
Enum Constant Detail
-
SubTypes
public static final Scanners SubTypes
scan type superclasses and interfaces Note thatObjectclass is excluded by default, in order to reduce store size.
UsefilterResultsBy(Predicate)to change, for exampleSubTypes.filterResultsBy(c -> true)
-
TypesAnnotated
public static final Scanners TypesAnnotated
scan type annotations
-
MethodsAnnotated
public static final Scanners MethodsAnnotated
scan method annotations
-
ConstructorsAnnotated
public static final Scanners ConstructorsAnnotated
scan constructor annotations
-
FieldsAnnotated
public static final Scanners FieldsAnnotated
scan field annotations
-
Resources
public static final Scanners Resources
scan non .class files such as xml or properties files
-
MethodsParameter
public static final Scanners MethodsParameter
scan method parameters types and annotations
-
ConstructorsParameter
public static final Scanners ConstructorsParameter
scan constructor parameters types and annotations
-
MethodsSignature
public static final Scanners MethodsSignature
scan methods signature
-
ConstructorsSignature
public static final Scanners ConstructorsSignature
scan constructors signature
-
MethodsReturn
public static final Scanners MethodsReturn
scan method return type
-
-
Method Detail
-
values
public static Scanners[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Scanners c : Scanners.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Scanners valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
index
public String index()
Description copied from interface:Scannerunique index name for scanner- Specified by:
indexin interfaceQueryBuilder- Specified by:
indexin interfaceScanner
-
scan
public final List<Map.Entry<String,String>> scan(javassist.bytecode.ClassFile classFile)
Description copied from interface:Scannerscan the givenclassFileand produces list ofMap.Entrykey/values
-
acceptResult
protected boolean acceptResult(String fqn)
-
-