Package com.thoughtworks.qdox.model
Interface JavaConstructor
- All Superinterfaces:
JavaAnnotatedElement
,JavaExecutable
,JavaGenericDeclaration
,JavaMember
,JavaModel
,Serializable
- All Known Implementing Classes:
DefaultJavaConstructor
public interface JavaConstructor
extends JavaModel, JavaAnnotatedElement, JavaGenericDeclaration, JavaMember, JavaExecutable, Serializable
Modeled equivalent of
Constructor
, providing the most important methods.
Where the original Constructor is using an Array, this model is using a List
.- Since:
- 2.0
-
Method Summary
Modifier and TypeMethodDescriptionboolean
signatureMatches
(List<JavaType> parameterTypes) Returnstrue
if this constructor matches the parameterTypes, assuming it's a non-varArg constructor.boolean
signatureMatches
(List<JavaType> parameterTypes, boolean varArgs) Returnstrue
if this constructor matches the parameterTypes and matches the varArg argument.Methods inherited from interface com.thoughtworks.qdox.model.JavaAnnotatedElement
getAnnotations, getComment, getNamedParameter, getTagByName, getTags, getTagsByName
Methods inherited from interface com.thoughtworks.qdox.model.JavaExecutable
getCallSignature, getDeclaringClass, getExceptions, getExceptionTypes, getParameterByName, getParameters, getParameterTypes, getParameterTypes, getSourceCode, isVarArgs
Methods inherited from interface com.thoughtworks.qdox.model.JavaGenericDeclaration
getTypeParameters
Methods inherited from interface com.thoughtworks.qdox.model.JavaMember
getModifiers, getName, isAbstract, isFinal, isNative, isPrivate, isProtected, isPublic, isStatic, isStrictfp, isSynchronized, isTransient, isVolatile
Methods inherited from interface com.thoughtworks.qdox.model.JavaModel
getCodeBlock, getLineNumber
-
Method Details
-
signatureMatches
Returnstrue
if this constructor matches the parameterTypes, assuming it's a non-varArg constructor.- Parameters:
parameterTypes
- the parameter types- Returns:
true
if signature matches, otherwisefalse
-
signatureMatches
Returnstrue
if this constructor matches the parameterTypes and matches the varArg argument.- Parameters:
parameterTypes
- the parameter typesvarArgs
-true
if the last argument should be a varArg, otherwisefalse
- Returns:
true
if signature matches, otherwisefalse
-