Package com.thoughtworks.qdox.model
Interface JavaConstructor
-
- All Superinterfaces:
JavaAnnotatedElement
,JavaExecutable
,JavaGenericDeclaration
,JavaMember
,JavaModel
,java.io.Serializable
- All Known Implementing Classes:
DefaultJavaConstructor
public interface JavaConstructor extends JavaModel, JavaAnnotatedElement, JavaGenericDeclaration, JavaMember, JavaExecutable, java.io.Serializable
Modeled equivalent ofConstructor
, providing the most important methods. Where the original Constructor is using an Array, this model is using aList
.- Since:
- 2.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
signatureMatches(java.util.List<JavaType> parameterTypes)
Returnstrue
if this constructor matches the parameterTypes, assuming it's a non-varArg constructor.boolean
signatureMatches(java.util.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 Detail
-
signatureMatches
boolean signatureMatches(java.util.List<JavaType> parameterTypes)
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
boolean signatureMatches(java.util.List<JavaType> parameterTypes, boolean varArgs)
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
-
-