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)
      • setModifiers

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

        default Modifier.Keyword getAccessSpecifier()
        Returns:
        Modifier.Keyword.PUBLIC, Modifier.Keyword.PROTECTED, Modifier.Keyword.PRIVATE, or Modifier.Keyword.PACKAGE_PRIVATE when none of the others exists.