Class DefaultJavaConstructor

    • Constructor Detail

      • DefaultJavaConstructor

        public DefaultJavaConstructor()
    • Method Detail

      • signatureMatches

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

        public boolean signatureMatches​(java.util.List<JavaType> parameterTypes,
                                        boolean varArgs)
        Returns true if this constructor matches the parameterTypes and matches the varArg argument.
        Specified by:
        signatureMatches in interface JavaConstructor
        Overrides:
        signatureMatches in class DefaultJavaExecutable
        Parameters:
        parameterTypes - the parameter types
        varArgs - true if the last argument should be a varArg, otherwise false
        Returns:
        true if signature matches, otherwise false
      • getCodeBlock

        public java.lang.String getCodeBlock()
        Specified by:
        getCodeBlock in interface JavaModel
        Returns:
        the codeblock
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object