接口 JavaConstructor

所有超级接口:
JavaAnnotatedElement, JavaExecutable, JavaGenericDeclaration, JavaMember, JavaModel, Serializable
所有已知实现类:
DefaultJavaConstructor

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
  • 方法详细资料

    • signatureMatches

      boolean signatureMatches(List<JavaType> parameterTypes)
      Returns true if this constructor matches the parameterTypes, assuming it's a non-varArg constructor.
      参数:
      parameterTypes - the parameter types
      返回:
      true if signature matches, otherwise false
    • signatureMatches

      boolean signatureMatches(List<JavaType> parameterTypes, boolean varArgs)
      Returns true if this constructor matches the parameterTypes and matches the varArg argument.
      参数:
      parameterTypes - the parameter types
      varArgs - true if the last argument should be a varArg, otherwise false
      返回:
      true if signature matches, otherwise false