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 ReflectionsScanner
s such as:SubTypes
TypesAnnotated
MethodsAnnotated
FieldsAnnotated
Resources
MethodsParameter
MethodsSignature
MethodsReturn
Configuration
in order to be queried
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ConstructorsAnnotated
scan constructor annotationsConstructorsParameter
scan constructor parameters types and annotationsConstructorsSignature
scan constructors signatureFieldsAnnotated
scan field annotationsMethodsAnnotated
scan method annotationsMethodsParameter
scan method parameters types and annotationsMethodsReturn
scan method return typeMethodsSignature
scan methods signatureResources
scan non .class files such as xml or properties filesSubTypes
scan type superclasses and interfacesTypesAnnotated
scan 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 boolean
acceptResult(String fqn)
Scanners
filterResultsBy(Predicate<String> filter)
String
index()
unique index name for scannerList<Map.Entry<String,String>>
scan(javassist.bytecode.ClassFile classFile)
scan the givenclassFile
and produces list ofMap.Entry
key/valuesstatic Scanners
valueOf(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 thatObject
class 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:Scanner
unique index name for scanner- Specified by:
index
in interfaceQueryBuilder
- Specified by:
index
in interfaceScanner
-
scan
public final List<Map.Entry<String,String>> scan(javassist.bytecode.ClassFile classFile)
Description copied from interface:Scanner
scan the givenclassFile
and produces list ofMap.Entry
key/values
-
acceptResult
protected boolean acceptResult(String fqn)
-
-