Class GenericClassWrapper<T>
java.lang.Object
io.github.valentinherrmann.levenshtein.Wrapper<T>
io.github.valentinherrmann.levenshtein.ClassWrapper<T>
io.github.valentinherrmann.levenshtein.GenericClassWrapper<T>
- Type Parameters:
T- the type of the class being wrapped
A generic class wrapper for actually existing classes to make them compatible with the other wrappers.
This wrapper is used to represent the actual superclass and interfaces of other wrapped classes.
It wraps a class that already exists (loaded via reflection) and provides minimal functionality.
Unlike full ClassWrapper subclasses, it does not support creating instances.
Only use this if you already have the class available via reflection and NOT for classes which
you expect to always exist!
-
Field Summary
Fields inherited from class ClassWrapper
obj -
Constructor Summary
ConstructorsConstructorDescriptionGenericClassWrapper(Class<T> clz) Constructs a new GenericClassWrapper for an existing class. -
Method Summary
Methods inherited from class ClassWrapper
actualToString, equals, expectedToString, findWithDeviation, getAttributeWrappers, getClazz, getConstructorWrappers, getDynamicSubclassObj, getExpectedPackage, getMethodWrappers, getObj, getObj, hashCode, implicitModifiers, mock, newObj, newObjOverriding, newObjWithoutConstructor, parseExistence, reference, setCachedObj, testGetter, testGettersSetters, testGettersSetters, testGettersSetters, testGettersSetters, toString, usability, verifyExistence, verifyInterfaces, verifySuperClassMethods inherited from class Wrapper
ensureChecked, getActualModifiers, getActualName, getExpectedName, getMissingModifiers, getOverallExistence, getParentClassWrapper, getUnexpectedModifiers, hasUnexpectedModifier, isModifierExpected, legacyReportsUnexpectedStatic, parseExistence, relevantModifierMask, verifyExistence, verifyModifiers
-
Constructor Details
-
GenericClassWrapper
-
-
Method Details
-
getObj
This method is not supported for GenericClassWrapper as it only wraps existing classes.- Specified by:
getObjin classClassWrapper<T>- Parameters:
forceNew- ignored- Returns:
- always null
-