Class JavaConstructorId

  • All Implemented Interfaces:
    Comparable<ConstructId>

    public class JavaConstructorId
    extends JavaId
    Identifies a class constructor relative to its class (normal or nested).
    • Constructor Detail

      • JavaConstructorId

        public JavaConstructorId​(JavaId _simple_name,
                                 List<String> _parameter_types)

        Constructor for JavaConstructorId.

        Parameters:
        _simple_name - a JavaId object.
        _parameter_types - a List object.
    • Method Detail

      • getQualifiedName

        public String getQualifiedName()
        Returns the fully qualified constructor name, including package and (unqualified) parameter types. Example: test.package.TestClass(int)
        Specified by:
        getQualifiedName in class ConstructId
        Returns:
        a String object.
      • getName

        public String getName()
        Returns the constructor name, which is equal to the class name, plus the (unqualified) parameter types in brackets. Example: TestClass(int)
        Specified by:
        getName in class ConstructId
        Returns:
        a String object.
      • getSimpleName

        public String getSimpleName()
        Returns the simple constructor name, which is equal to the class name. Example: Test
        Specified by:
        getSimpleName in class ConstructId
        Returns:
        a String object.
      • getConstructorIdParams

        public String getConstructorIdParams()

        getConstructorIdParams.

        Returns:
        a String object.
      • hasParams

        public boolean hasParams()
        Returns true if the constructor has parameters, false otherwise.
        Returns:
        a boolean.