Interface JavaConstructor

    • Method Detail

      • signatureMatches

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

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