Package com.thoughtworks.qdox.model.impl
Class DefaultJavaConstructor
java.lang.Object
com.thoughtworks.qdox.model.impl.AbstractJavaModel
com.thoughtworks.qdox.model.impl.AbstractBaseJavaEntity
com.thoughtworks.qdox.model.impl.AbstractJavaEntity
com.thoughtworks.qdox.model.impl.AbstractInheritableJavaEntity
com.thoughtworks.qdox.model.impl.DefaultJavaExecutable
com.thoughtworks.qdox.model.impl.DefaultJavaConstructor
- All Implemented Interfaces:
JavaAnnotatedElement,JavaConstructor,JavaExecutable,JavaGenericDeclaration,JavaMember,JavaModel,Serializable
- Since:
- 2.0
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanEquivalent ofGenericDeclaration.getTypeParameters()inthashCode()voidsetTypeParameters(List<JavaTypeVariable<JavaConstructor>> typeParameters) booleansignatureMatches(List<JavaType> parameterTypes) Returnstrueif this constructor matches the parameterTypes, assuming it's a non-varArg constructor.booleansignatureMatches(List<JavaType> parameterTypes, boolean varArgs) Returnstrueif this constructor matches the parameterTypes and matches the varArg argument.toString()Methods inherited from class com.thoughtworks.qdox.model.impl.DefaultJavaExecutable
getCallSignature, getExceptions, getExceptionTypes, getParameterByName, getParameters, getParameterTypes, getParameterTypes, getReturns, getSignature, getSourceCode, getTagsByName, isPublic, isVarArgs, setExceptions, setParameters, setSourceCodeMethods inherited from class com.thoughtworks.qdox.model.impl.AbstractInheritableJavaEntity
getTagByNameMethods inherited from class com.thoughtworks.qdox.model.impl.AbstractJavaEntity
getDeclaringClass, getModifiers, getName, isAbstract, isFinal, isNative, isPrivate, isProtected, isStatic, isStrictfp, isSynchronized, isTransient, isVolatile, setDeclaringClass, setModifiers, setNameMethods inherited from class com.thoughtworks.qdox.model.impl.AbstractBaseJavaEntity
getAnnotations, getComment, getNamedParameter, getSource, getTagByName, getTags, getTagsByName, setAnnotations, setComment, setSource, setTagsMethods inherited from class com.thoughtworks.qdox.model.impl.AbstractJavaModel
getLineNumber, getModelWriter, setLineNumber, setModelWriterFactoryMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.thoughtworks.qdox.model.JavaAnnotatedElement
getAnnotations, getComment, getNamedParameter, getTagByName, getTags, getTagsByNameMethods inherited from interface com.thoughtworks.qdox.model.JavaExecutable
getCallSignature, getDeclaringClass, getExceptions, getExceptionTypes, getParameterByName, getParameters, getParameterTypes, getParameterTypes, getSourceCode, isVarArgsMethods inherited from interface com.thoughtworks.qdox.model.JavaMember
getModifiers, getName, isAbstract, isFinal, isNative, isPrivate, isProtected, isPublic, isStatic, isStrictfp, isSynchronized, isTransient, isVolatileMethods inherited from interface com.thoughtworks.qdox.model.JavaModel
getLineNumber
-
Field Details
-
typeParameters
-
-
Constructor Details
-
DefaultJavaConstructor
public DefaultJavaConstructor()
-
-
Method Details
-
setTypeParameters
-
getTypeParameters
Equivalent ofGenericDeclaration.getTypeParameters()- Specified by:
getTypeParametersin interfaceJavaGenericDeclaration- Returns:
- a list of typeParameters, never
null
-
signatureMatches
Returnstrueif this constructor matches the parameterTypes, assuming it's a non-varArg constructor.- Specified by:
signatureMatchesin interfaceJavaConstructor- Parameters:
parameterTypes- the parameter types- Returns:
trueif signature matches, otherwisefalse
-
signatureMatches
Returnstrueif this constructor matches the parameterTypes and matches the varArg argument.- Specified by:
signatureMatchesin interfaceJavaConstructor- Overrides:
signatureMatchesin classDefaultJavaExecutable- Parameters:
parameterTypes- the parameter typesvarArgs-trueif the last argument should be a varArg, otherwisefalse- Returns:
trueif signature matches, otherwisefalse
-
getCodeBlock
- Specified by:
getCodeBlockin interfaceJavaModel- Returns:
- the codeblock
-
toString
-
hashCode
public int hashCode() -
equals
-