public interface JavaConstructor extends JavaModel, JavaAnnotatedElement, JavaGenericDeclaration, JavaMember, JavaExecutable, java.io.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 and Description |
---|---|
boolean |
signatureMatches(java.util.List<JavaType> parameterTypes)
Returns
true if this constructor matches the parameterTypes, assuming it's a non-varArg constructor. |
boolean |
signatureMatches(java.util.List<JavaType> parameterTypes,
boolean varArgs)
Returns
true if this constructor matches the parameterTypes and matches the varArg argument. |
getCodeBlock, getLineNumber
getAnnotations, getComment, getNamedParameter, getTagByName, getTags, getTagsByName
getDeclaringClass, getExceptions, getExceptionTypes, getParameterByName, getParameters, getParameterTypes, getParameterTypes, getSourceCode, isVarArgs
getModifiers, getName, isAbstract, isFinal, isNative, isPrivate, isProtected, isPublic, isStatic, isStrictfp, isSynchronized, isTransient, isVolatile
getTypeParameters
boolean signatureMatches(java.util.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 false
boolean signatureMatches(java.util.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 false
true
if signature matches, otherwise false