Interface NodeWithStaticModifier<N extends Node>

All Superinterfaces:
NodeWithModifiers<N>
All Known Implementing Classes:
AnnotationDeclaration, CallableDeclaration, ClassOrInterfaceDeclaration, ConstructorDeclaration, EnumDeclaration, FieldDeclaration, MethodDeclaration, ModuleRequiresDirective, RecordDeclaration, TypeDeclaration

public interface NodeWithStaticModifier<N extends Node> extends NodeWithModifiers<N>
A node that can be static.
  • Method Details

    • isStatic

      default boolean isStatic()
      Returns:
      true, if the modifier static is explicitly added to this node. If the node is implicitly static without an explicit modifier (e.g. nested records), this method should be overridden.
    • setStatic

      default N setStatic(boolean set)