Class ASTConstructorDeclaration

    • Constructor Detail

      • ASTConstructorDeclaration

        @InternalApi
        @Deprecated
        public ASTConstructorDeclaration​(int id)
        Deprecated.
      • ASTConstructorDeclaration

        @InternalApi
        @Deprecated
        public ASTConstructorDeclaration​(JavaParser p,
                                         int id)
        Deprecated.
    • Method Detail

      • getKind

        public MethodLikeNode.MethodLikeKind getKind()
        Description copied from interface: MethodLikeNode
        Returns a token indicating whether this node is a lambda expression or a method or constructor declaration. Can be used to downcast safely to a subinterface or an implementing class.
        Returns:
        The kind of method-like
      • containsComment

        public boolean containsComment()
      • setContainsComment

        @InternalApi
        @Deprecated
        public void setContainsComment()
        Deprecated.
      • getArity

        public int getArity()
        Returns the number of formal parameters expected by this constructor (excluding any receiver parameter). A varargs parameter counts as one.
      • getAnnotation

        public ASTAnnotation getAnnotation​(String annotQualifiedName)
        Description copied from interface: Annotatable
        Get specific annotaion on this node.
        Specified by:
        getAnnotation in interface Annotatable
        Parameters:
        annotQualifiedName - qulified name of the annotation.
        Returns:
        ASTAnnotaion node if the annotation is present on this node, else null
      • isAnnotationPresent

        public boolean isAnnotationPresent​(String annotQualifiedName)
        Description copied from interface: Annotatable
        Checks whether the annotation is present on this node.
        Specified by:
        isAnnotationPresent in interface Annotatable
        Parameters:
        annotQualifiedName - qulified name of the annotation.
        Returns:
        true if the annotation is present on this node, else false
      • isAnyAnnotationPresent

        public boolean isAnyAnnotationPresent​(Collection<String> annotQualifiedNames)
        Description copied from interface: Annotatable
        Checks whether any annotation is present on this node.
        Specified by:
        isAnyAnnotationPresent in interface Annotatable
        Parameters:
        annotQualifiedNames - collection that cotains qulified name of annotations.
        Returns:
        true if any annotation is present on this node, else false