Class ConstructorDocImpl

  • All Implemented Interfaces:
    ConstructorDoc, Doc, ExecutableMemberDoc, MemberDoc, ProgramElementDoc, java.lang.Comparable<java.lang.Object>

    @Deprecated
    public class ConstructorDocImpl
    extends ExecutableMemberDocImpl
    implements ConstructorDoc
    Deprecated.
    Represents a constructor of a java class.

    This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.

    Since:
    1.2
    • Constructor Detail

      • ConstructorDocImpl

        public ConstructorDocImpl​(DocEnv env,
                                  com.sun.tools.javac.code.Symbol.MethodSymbol sym)
        Deprecated.
        constructor.
      • ConstructorDocImpl

        public ConstructorDocImpl​(DocEnv env,
                                  com.sun.tools.javac.code.Symbol.MethodSymbol sym,
                                  com.sun.source.util.TreePath treePath)
        Deprecated.
        constructor.
    • Method Detail

      • isConstructor

        public boolean isConstructor()
        Deprecated.
        Return true if it is a constructor, which it is.
        Specified by:
        isConstructor in interface Doc
        Overrides:
        isConstructor in class DocImpl
        Returns:
        true
      • name

        public java.lang.String name()
        Deprecated.
        Get the name.
        Specified by:
        name in interface Doc
        Specified by:
        name in class DocImpl
        Returns:
        the name of the member.
      • toString

        public java.lang.String toString()
        Deprecated.
        Returns a string representation of this constructor. Includes the qualified signature and any type parameters. Type parameters precede the class name, as they do in the syntax for invoking constructors with explicit type parameters using "new". (This is unlike the syntax for invoking methods with explicit type parameters.)
        Overrides:
        toString in class DocImpl