public enum Scanners extends Enum<Scanners> implements Scanner, QueryBuilder, NameHelper
Scanner
s such as:
SubTypes
TypesAnnotated
MethodsAnnotated
ConstructorsAnnotated
FieldsAnnotated
Resources
MethodsParameter
ConstructorsParameter
MethodsSignature
ConstructorsSignature
MethodsReturn
Configuration
in order to be queriedEnum Constant and Description |
---|
ConstructorsAnnotated
scan constructor annotations
|
ConstructorsParameter
scan constructor parameters types and annotations
|
ConstructorsSignature
scan constructors signature
|
FieldsAnnotated
scan field annotations
|
MethodsAnnotated
scan method annotations
|
MethodsParameter
scan method parameters types and annotations
|
MethodsReturn
scan method return type
|
MethodsSignature
scan methods signature
|
Resources
scan non .class files such as xml or properties files
|
SubTypes
scan type superclasses and interfaces
|
TypesAnnotated
scan type annotations
|
primitiveDescriptors, primitiveNames, primitiveTypes
Modifier and Type | Method and Description |
---|---|
protected boolean |
acceptResult(String fqn) |
Scanners |
filterResultsBy(Predicate<String> filter) |
String |
index()
unique index name for scanner
|
List<Map.Entry<String,String>> |
scan(javassist.bytecode.ClassFile classFile)
scan the given
classFile and produces list of Map.Entry key/values |
static 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.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
acceptsInput, entries, entries, entries, entry, scan
public static final Scanners SubTypes
Object
class is excluded by default, in order to reduce store size.
filterResultsBy(Predicate)
to change, for example SubTypes.filterResultsBy(c -> true)
public static final Scanners TypesAnnotated
public static final Scanners MethodsAnnotated
public static final Scanners ConstructorsAnnotated
public static final Scanners FieldsAnnotated
public static final Scanners Resources
public static final Scanners MethodsParameter
public static final Scanners ConstructorsParameter
public static final Scanners MethodsSignature
public static final Scanners ConstructorsSignature
public static final Scanners MethodsReturn
public static Scanners[] values()
for (Scanners c : Scanners.values()) System.out.println(c);
public static Scanners valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String index()
Scanner
index
in interface Scanner
index
in interface QueryBuilder
public final List<Map.Entry<String,String>> scan(javassist.bytecode.ClassFile classFile)
Scanner
classFile
and produces list of Map.Entry
key/valuesprotected boolean acceptResult(String fqn)
Copyright © 2021. All rights reserved.