org.powermock.reflect.internal.Constructor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of powermock-reflect Show documentation
Show all versions of powermock-reflect Show documentation
Various utilities for accessing internals of a class.
package org.powermock.reflect.internal;
class Constructor {
private final Class>[] parameterTypes;
private java.lang.reflect.Constructor constructor;
private boolean isVarArgs;
Constructor(java.lang.reflect.Constructor constructor) {
this.constructor = constructor;
this.parameterTypes = constructor.getParameterTypes();
this.isVarArgs = constructor.isVarArgs();
}
boolean canBeInvokeWith(Object[] arguments) {
return new ParametersMatcher(isVarArgs, parameterTypes, arguments).match();
}
public java.lang.reflect.Constructor> getJavaConstructor() {
return constructor;
}
public boolean isVarArg() {
return isVarArgs;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy