Interface DirectivesContainer<T extends DirectivesContainer>

    • Method Detail

      • getDirectives

        java.util.List<Directive> getDirectives()
        This will return a list of all the directives that have been put on Node as a flat list, which may contain repeatable and non repeatable directives.
        Returns:
        a list of all the directives associated with this Node
      • getDirectivesByName

        default java.util.Map<java.lang.String,​java.util.List<Directive>> getDirectivesByName()
        This will return a Map of the all directives that are associated with a Node, including both repeatable and non repeatable directives.
        Returns:
        a map of all directives by directive name
      • getDirectives

        default java.util.List<Directive> getDirectives​(java.lang.String directiveName)
        Returns all of the directives with the provided name, including repeatable and non repeatable directives.
        Parameters:
        directiveName - the name of the directives to retrieve
        Returns:
        the directives or empty list if there is not one with that name
      • hasDirective

        default boolean hasDirective​(java.lang.String directiveName)
        This returns true if the AST node contains one or more directives by the specified name
        Parameters:
        directiveName - the name ot check
        Returns:
        true if the AST node contains one or more directives by the specified name