Interface NodeWithFinalModifier<N extends Node>

All Superinterfaces:
NodeWithModifiers<N>
All Known Implementing Classes:
CallableDeclaration, ClassOrInterfaceDeclaration, ConstructorDeclaration, FieldDeclaration, MethodDeclaration, Parameter, RecordDeclaration, VariableDeclarationExpr

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

    • isFinal

      default boolean isFinal()
      Returns:
      true, if the modifier final is explicitly added to this node. If the node is implicitly final without an explicit modifier (e.g. records, and components of a record), this method should be overridden.
    • setFinal

      default N setFinal(boolean set)