JavaAnnotatedElement, JavaExecutable, JavaGenericDeclaration, JavaMember, JavaModel, SerializableDefaultJavaConstructorpublic interface JavaConstructor extends JavaModel, JavaAnnotatedElement, JavaGenericDeclaration, JavaMember, JavaExecutable, 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 | Description |
|---|---|---|
boolean |
signatureMatches(List<JavaType> parameterTypes) |
Returns
true if this constructor matches the parameterTypes, assuming it's a non-varArg constructor. |
boolean |
signatureMatches(List<JavaType> parameterTypes,
boolean varArgs) |
Returns
true if this constructor matches the parameterTypes and matches the varArg argument. |
getAnnotations, getComment, getNamedParameter, getTagByName, getTags, getTagsByNamegetCallSignature, getDeclaringClass, getExceptions, getExceptionTypes, getParameterByName, getParameters, getParameterTypes, getParameterTypes, getSourceCode, isVarArgsgetTypeParametersgetModifiers, getName, isAbstract, isFinal, isNative, isPrivate, isProtected, isPublic, isStatic, isStrictfp, isSynchronized, isTransient, isVolatilegetCodeBlock, getLineNumberboolean signatureMatches(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(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.