- 所有超级接口:
JavaAnnotatedElement,JavaExecutable,JavaGenericDeclaration,JavaMember,JavaModel,Serializable
- 所有已知实现类:
DefaultJavaConstructor
public interface JavaConstructor
extends JavaModel, JavaAnnotatedElement, JavaGenericDeclaration, JavaMember, JavaExecutable, Serializable
Modeled equivalent of
Constructor, providing the most important methods.
Where the original Constructor is using an Array, this model is using a List.- 从以下版本开始:
- 2.0
- 作者:
- Robert Scholte
-
方法概要
修饰符和类型方法说明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.从接口继承的方法 com.thoughtworks.qdox.model.JavaAnnotatedElement
getAnnotations, getComment, getNamedParameter, getTagByName, getTags, getTagsByName从接口继承的方法 com.thoughtworks.qdox.model.JavaExecutable
getCallSignature, getDeclaringClass, getExceptions, getExceptionTypes, getParameterByName, getParameters, getParameterTypes, getParameterTypes, getSourceCode, isVarArgs从接口继承的方法 com.thoughtworks.qdox.model.JavaGenericDeclaration
getTypeParameters从接口继承的方法 com.thoughtworks.qdox.model.JavaMember
getModifiers, getName, isAbstract, isFinal, isNative, isPrivate, isProtected, isPublic, isStatic, isStrictfp, isSynchronized, isTransient, isVolatile从接口继承的方法 com.thoughtworks.qdox.model.JavaModel
getCodeBlock, getLineNumber
-
方法详细资料
-
signatureMatches
Returnstrueif this constructor matches the parameterTypes, assuming it's a non-varArg constructor.- 参数:
parameterTypes- the parameter types- 返回:
trueif signature matches, otherwisefalse
-
signatureMatches
Returnstrueif this constructor matches the parameterTypes and matches the varArg argument.- 参数:
parameterTypes- the parameter typesvarArgs-trueif the last argument should be a varArg, otherwisefalse- 返回:
trueif signature matches, otherwisefalse
-