Uses of Class
io.github.valentinherrmann.levenshtein.ClassWrapper
-
Uses of ClassWrapper in io.github.valentinherrmann.levenshtein
Subclasses of ClassWrapper in io.github.valentinherrmann.levenshteinModifier and TypeClassDescriptionclassA generic class wrapper for actually existing classes to make them compatible with the other wrappers.Methods in io.github.valentinherrmann.levenshtein that return ClassWrapperModifier and TypeMethodDescriptionWrapper.getParentClassWrapper()Retrieves the parent class wrapper containing this element.static <V> ClassWrapper<V> Creates a wrapper that only refers to a student class by its expected name, for use as the type of an attribute, a return value or a parameter, e.g.Methods in io.github.valentinherrmann.levenshtein with parameters of type ClassWrapperModifier and TypeMethodDescriptionstatic List<org.junit.jupiter.api.DynamicTest> StructuralLevenshtein.structuralTestFactory(StructuralLevenshtein.DetailLevel detailsLevel, boolean skipEmpty, ClassWrapper<?>... classWrappers) LikeStructuralLevenshtein.structuralTestFactory(DetailLevel, ClassWrapper[]), but chooses whether groups without wrappers get a test.static List<org.junit.jupiter.api.DynamicTest> StructuralLevenshtein.structuralTestFactory(StructuralLevenshtein.DetailLevel detailsLevel, ClassWrapper<?>... classWrappers) Factory method for creating dynamic structural tests based on class wrappers.Constructors in io.github.valentinherrmann.levenshtein with parameters of type ClassWrapperModifierConstructorDescriptionAttributeWrapper(ClassWrapper<T> parentClass, String expectedName, ClassWrapper<? extends V> expectedType, String... modifiers) Constructs a new AttributeWrapper for an attribute whose type is a student class, e.g. an attributedrummerof typeDrummer.AttributeWrapper(ClassWrapper<T> parentClass, String expectedName, Class<V> expectedType, String... modifiers) Constructs a new AttributeWrapper for verifying a class attribute.AttributeWrapper(ClassWrapper<T> parentClass, String expectedName, Supplier<? extends ClassWrapper<? extends V>> expectedType, String... modifiers) LikeAttributeWrapper(ClassWrapper, String, ClassWrapper, String...), but the wrapper of the type is only taken from the supplier when the attribute is checked, e.g.ClassWrapper(String expectedName, String expectedPackage, ClassWrapper<?> superClassWrapper, ClassWrapper<?>[] interfaceWrappers, String... modifiers) Constructs a new ClassWrapper with superclass and interface expectations.ConstructorWrapper(ClassWrapper<T> parentClass, Class<?>[] paramTypes, String... modifiers) Constructs a new ConstructorWrapper for verifying a class constructor.ConstructorWrapper(ClassWrapper<T> parentClass, Object[] paramTypes, String... modifiers) Constructs a new ConstructorWrapper whose parameter types may include student classes.ConstructorWrapper(ClassWrapper<T> parentClass, String modifiers) Constructs a new ConstructorWrapper for a no-argument constructor.MethodWrapper(ClassWrapper<T> parentClass, String expectedName, ClassWrapper<? extends R> expectedReturnType, Object[] paramTypes, String... modifiers) Constructs a new MethodWrapper whose return type is a student class, e.g.MethodWrapper(ClassWrapper<T> parentClass, String expectedName, ClassWrapper<? extends R> expectedReturnType, String... modifiers) LikeMethodWrapper(ClassWrapper, String, ClassWrapper, Object[], String...)for a method with no parameters.MethodWrapper(ClassWrapper<T> parentClass, String expectedName, Class<R> expectedReturnType, Class<?>[] paramTypes, String... modifiers) Constructs a new MethodWrapper for verifying a class method.MethodWrapper(ClassWrapper<T> parentClass, String expectedName, Class<R> expectedReturnType, Object[] paramTypes, String... modifiers) Constructs a new MethodWrapper whose parameter types may include student classes.MethodWrapper(ClassWrapper<T> parentClass, String expectedName, Class<R> expectedReturnType, String... modifiers) Constructs a new MethodWrapper for a method with no parameters.MethodWrapper(ClassWrapper<T> parentClass, String expectedName, Supplier<? extends ClassWrapper<? extends R>> expectedReturnType, Object[] paramTypes, String... modifiers) LikeMethodWrapper(ClassWrapper, String, ClassWrapper, Object[], String...), but the wrapper of the return type is only taken from the supplier when the method is checked, e.g.MethodWrapper(ClassWrapper<T> parentClass, String expectedName, Supplier<? extends ClassWrapper<? extends R>> expectedReturnType, String... modifiers) LikeMethodWrapper(ClassWrapper, String, Supplier, Object[], String...)for a method with no parameters.Wrapper(ClassWrapper<T> parentClass, String expectedName, String... expectedModifiers) Constructs a new Wrapper for a reflection element with expected name and modifiers.Constructor parameters in io.github.valentinherrmann.levenshtein with type arguments of type ClassWrapperModifierConstructorDescriptionAttributeWrapper(ClassWrapper<T> parentClass, String expectedName, Supplier<? extends ClassWrapper<? extends V>> expectedType, String... modifiers) LikeAttributeWrapper(ClassWrapper, String, ClassWrapper, String...), but the wrapper of the type is only taken from the supplier when the attribute is checked, e.g.MethodWrapper(ClassWrapper<T> parentClass, String expectedName, Supplier<? extends ClassWrapper<? extends R>> expectedReturnType, Object[] paramTypes, String... modifiers) LikeMethodWrapper(ClassWrapper, String, ClassWrapper, Object[], String...), but the wrapper of the return type is only taken from the supplier when the method is checked, e.g.MethodWrapper(ClassWrapper<T> parentClass, String expectedName, Supplier<? extends ClassWrapper<? extends R>> expectedReturnType, String... modifiers) LikeMethodWrapper(ClassWrapper, String, Supplier, Object[], String...)for a method with no parameters.