Interface NodeWithModifiers<N extends Node>

    • Method Detail

      • getModifiers

        NodeList<Modifier> getModifiers()
        Return the modifiers of this variable declaration. Warning: modifying the returned set will not trigger observers, you have to use setModifiers for that.
        Returns:
        modifiers
        See Also:
        Modifier
      • removeModifier

        default N removeModifier​(Modifier.Keyword... modifiersToRemove)
      • hasModifier

        default boolean hasModifier​(Modifier.Keyword modifier)
        Parameters:
        modifier - the modifer being searched for
        Returns:
        true if the modifier has been explicitly added to this node, else false
      • setModifiers

        default N setModifiers​(Modifier.Keyword... modifiers)
        Creates a list of modifier nodes corresponding to the keywords passed, and set it.
      • getAccessSpecifier

        default AccessSpecifier getAccessSpecifier()
        Returns:
        the access specifier as far as it can be derived from the modifiers. Does not take anything else into account (like "interface methods are implicitly public")