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