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
- Author:
- Robert
- See Also:
-
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 DefaultJavaExecutable
getCallSignature, getExceptions, getExceptionTypes, getParameterByName, getParameters, getParameterTypes, getParameterTypes, getReturns, getSignature, getSourceCode, getTagsByName, isPublic, isVarArgs, setExceptions, setParameters, setSourceCodeMethods inherited from class AbstractInheritableJavaEntity
getTagByNameMethods inherited from class AbstractJavaEntity
getDeclaringClass, getModifiers, getName, isAbstract, isFinal, isNative, isPrivate, isProtected, isStatic, isStrictfp, isSynchronized, isTransient, isVolatile, setDeclaringClass, setModifiers, setNameMethods inherited from class AbstractBaseJavaEntity
getAnnotations, getComment, getNamedParameter, getSource, getTagByName, getTags, getTagsByName, setAnnotations, setComment, setSource, setTagsMethods inherited from class AbstractJavaModel
getLineNumber, getModelWriter, setLineNumber, setModelWriterFactoryMethods inherited from interface JavaAnnotatedElement
getAnnotations, getComment, getNamedParameter, getTagByName, getTags, getTagsByNameMethods inherited from interface JavaExecutable
getCallSignature, getDeclaringClass, getExceptions, getExceptionTypes, getParameterByName, getParameters, getParameterTypes, getParameterTypes, getSourceCode, isVarArgsMethods inherited from interface JavaMember
getModifiers, getName, isAbstract, isFinal, isNative, isPrivate, isProtected, isPublic, isStatic, isStrictfp, isSynchronized, isTransient, isVolatileMethods inherited from interface JavaModel
getLineNumber
-
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
-
equals
-