public interface JavaConstructor extends JavaModel, JavaAnnotatedElement, JavaGenericDeclaration, JavaMember, JavaExecutable, java.io.Serializable
Constructor, providing the most important methods.
Where the original Constructor is using an Array, this model is using a List.| Modifier and Type | Method and Description |
|---|---|
boolean |
signatureMatches(java.util.List<JavaType> parameterTypes)
Returns
true if this constructor matches the parameterTypes, assuming it's a non-varArg constructor. |
boolean |
signatureMatches(java.util.List<JavaType> parameterTypes,
boolean varArgs)
Returns
true if this constructor matches the parameterTypes and matches the varArg argument. |
getCodeBlock, getLineNumbergetAnnotations, getComment, getNamedParameter, getTagByName, getTags, getTagsByNamegetDeclaringClass, getExceptions, getExceptionTypes, getParameterByName, getParameters, getParameterTypes, getParameterTypes, getSourceCode, isVarArgsgetModifiers, getName, isAbstract, isFinal, isNative, isPrivate, isProtected, isPublic, isStatic, isStrictfp, isSynchronized, isTransient, isVolatilegetTypeParametersboolean signatureMatches(java.util.List<JavaType> parameterTypes)
true if this constructor matches the parameterTypes, assuming it's a non-varArg constructor.parameterTypes - the parameter typestrue if signature matches, otherwise falseboolean signatureMatches(java.util.List<JavaType> parameterTypes, boolean varArgs)
true if this constructor matches the parameterTypes and matches the varArg argument.parameterTypes - the parameter typesvarArgs - true if the last argument should be a varArg, otherwise falsetrue if signature matches, otherwise false