Enum Class Scanners
- All Implemented Interfaces:
Serializable, Comparable<Scanners>, Constable, Scanner, NameHelper, QueryBuilder
base Reflections
Scanners such as:
SubTypesTypesAnnotatedMethodsAnnotatedConstructorsAnnotatedFieldsAnnotatedResourcesMethodsParameterConstructorsParameterMethodsSignatureConstructorsSignatureMethodsReturn
Configuration in order to be queried-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionscan constructor annotationsscan constructor parameters types and annotationsscan constructors signaturescan field annotationsscan method annotationsscan method parameters types and annotationsscan method return typescan methods signaturescan non .class files such as xml or properties filesscan type superclasses and interfacesscan type annotations -
Field Summary
FieldsFields inherited from interface NameHelper
primitiveDescriptors, primitiveNames, primitiveTypes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanacceptResult(String fqn) filterResultsBy(Predicate<String> filter) index()unique index name for scannerscan(javassist.bytecode.ClassFile classFile) scan the givenclassFileand produces list ofMap.Entrykey/values(package private) abstract voidstatic ScannersReturns the enum constant of this class with the specified name.static Scanners[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface NameHelper
forClass, forConstructor, forElement, forField, forMember, forMethod, forName, forNames, forNames, toName, toName, toName, toName, toName, toNames, toNames
-
Enum Constant Details
-
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
scan type annotations -
MethodsAnnotated
scan method annotations -
ConstructorsAnnotated
scan constructor annotations -
FieldsAnnotated
scan field annotations -
Resources
scan non .class files such as xml or properties files -
MethodsParameter
scan method parameters types and annotations -
ConstructorsParameter
scan constructor parameters types and annotations -
MethodsSignature
scan methods signature -
ConstructorsSignature
scan constructors signature -
MethodsReturn
scan method return type
-
-
Field Details
-
resultFilter
-
-
Constructor Details
-
Scanners
private Scanners()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
index
-
filterResultsBy
-
scan
-
scan
-
acceptResult
-