Package org.powermock.reflect.internal
Class ConstructorFinder
java.lang.Object
org.powermock.reflect.internal.ConstructorFinder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Object[]
private Constructor
private Class
<?> private Class
<?> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
private Set
<Constructor> private boolean
private boolean
isPowerMockConstructor
(Class<?>[] parameterTypes) private boolean
private void
private void
setPotentialConstructor
(Constructor constructor) private void
void
throwExceptionWhenMultipleConstructorMatchesFound
(Constructor[] constructors)
-
Field Details
-
type
-
arguments
-
unmockedType
-
potentialConstructor
-
-
Constructor Details
-
ConstructorFinder
-
-
Method Details
-
findConstructor
-
lookupPotentialConstructor
private void lookupPotentialConstructor() -
isVarArgConstructorFound
private boolean isVarArgConstructorFound() -
setPotentialConstructor
-
throwExceptionWhenMultipleConstructorMatchesFound
-
addArgumentForNestedClass
private void addArgumentForNestedClass() -
isNestedClass
private boolean isNestedClass() -
getDeclaredConstructorsWithoutPowerMockConstructor
-
isPowerMockConstructor
-
throwExceptionIfConstructorWasNotFound
private void throwExceptionIfConstructorWasNotFound()
-