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[]argumentsprivate ConstructorpotentialConstructorprivate java.lang.Class<?>typeprivate 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 voidaddArgumentForNestedClass()java.lang.reflect.ConstructorfindConstructor()private java.util.Set<Constructor>getDeclaredConstructorsWithoutPowerMockConstructor()private booleanisNestedClass()private booleanisPowerMockConstructor(java.lang.Class<?>[] parameterTypes)private booleanisVarArgConstructorFound()private voidlookupPotentialConstructor()private voidsetPotentialConstructor(Constructor constructor)private voidthrowExceptionIfConstructorWasNotFound()voidthrowExceptionWhenMultipleConstructorMatchesFound(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()
-
-