Class ClassModel
java.lang.Object
com.carrotsearch.randomizedtesting.ClassModel
Class model for a test suite. Builds relationship (overrides/ shadows) links
for methods and fields.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static classClassModel.ClassElement<T extends Member, E extends ClassModel.ClassElement<T,E>> static final classstatic final classprivate static classClassModel.ModelBuilder<T_MEMBER extends Member, T_MODEL extends ClassModel.ClassElement<T_MEMBER,T_MODEL>> static enum -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final LinkedHashMap<Field, ClassModel.FieldModel> (package private) static final Comparator<Field> private final LinkedHashMap<Method, ClassModel.MethodModel> (package private) static final Comparator<Method> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static LinkedHashMap<Field, ClassModel.FieldModel> fieldsModel(Class<?> clazz) getAnnotatedLeafMethods(Class<? extends Annotation> annotation) <T extends Annotation>
TgetAnnotation(Method method, Class<T> annClass, boolean inherited) <T extends Annotation>
booleanisAnnotationPresent(Method method, Class<T> annClass, boolean inherited) private static LinkedHashMap<Method, ClassModel.MethodModel> methodsModel(Class<?> clazz)
-
Field Details
-
methodSorter
-
fieldSorter
-
methods
-
fields
-
-
Constructor Details
-
ClassModel
-
-
Method Details
-
methodsModel
-
fieldsModel
-
getMethods
-
getFields
-
getAnnotatedLeafMethods
public Map<Method, ClassModel.MethodModel> getAnnotatedLeafMethods(Class<? extends Annotation> annotation) -
getAnnotation
-
isAnnotationPresent
public <T extends Annotation> boolean isAnnotationPresent(Method method, Class<T> annClass, boolean inherited)
-