Package org.powermock.reflect.internal
Class ConstructorFinder
- java.lang.Object
-
- org.powermock.reflect.internal.ConstructorFinder
-
class ConstructorFinder extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Object[]
arguments
private Constructor
potentialConstructor
private java.lang.Class<?>
type
private java.lang.Class<?>
unmockedType
-
Constructor Summary
Constructors Constructor Description ConstructorFinder(java.lang.Class<?> type, java.lang.Object... arguments)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
addArgumentForNestedClass()
java.lang.reflect.Constructor
findConstructor()
private java.util.Set<Constructor>
getDeclaredConstructorsWithoutPowerMockConstructor()
private boolean
isNestedClass()
private boolean
isPowerMockConstructor(java.lang.Class<?>[] parameterTypes)
private boolean
isVarArgConstructorFound()
private void
lookupPotentialConstructor()
private void
setPotentialConstructor(Constructor constructor)
private void
throwExceptionIfConstructorWasNotFound()
void
throwExceptionWhenMultipleConstructorMatchesFound(java.lang.reflect.Constructor[] constructors)
-
-
-
Field Detail
-
type
private java.lang.Class<?> type
-
arguments
private java.lang.Object[] arguments
-
unmockedType
private java.lang.Class<?> unmockedType
-
potentialConstructor
private Constructor potentialConstructor
-
-
Method Detail
-
findConstructor
public java.lang.reflect.Constructor findConstructor()
-
lookupPotentialConstructor
private void lookupPotentialConstructor()
-
isVarArgConstructorFound
private boolean isVarArgConstructorFound()
-
setPotentialConstructor
private void setPotentialConstructor(Constructor constructor)
-
throwExceptionWhenMultipleConstructorMatchesFound
public void throwExceptionWhenMultipleConstructorMatchesFound(java.lang.reflect.Constructor[] constructors)
-
addArgumentForNestedClass
private void addArgumentForNestedClass()
-
isNestedClass
private boolean isNestedClass()
-
getDeclaredConstructorsWithoutPowerMockConstructor
private java.util.Set<Constructor> getDeclaredConstructorsWithoutPowerMockConstructor()
-
isPowerMockConstructor
private boolean isPowerMockConstructor(java.lang.Class<?>[] parameterTypes)
-
throwExceptionIfConstructorWasNotFound
private void throwExceptionIfConstructorWasNotFound()
-
-