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. |
getCallSignature, getDeclaringClass, getExceptions, getExceptionTypes, getParameterByName, getParameters, getParameterTypes, getParameterTypes, getSourceCode, isVarArgsgetAnnotations, getComment, getNamedParameter, getTagByName, getTags, getTagsByNamegetCodeBlock, getLineNumbergetTypeParametersgetModifiers, getName, isAbstract, isFinal, isNative, isPrivate, isProtected, isPublic, isStatic, isStrictfp, isSynchronized, isTransient, isVolatileboolean 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 falseCopyright © 2002-2018. All Rights Reserved.