Interface NodeWithFinalModifier<N extends Node>
-
- All Superinterfaces:
NodeWithModifiers<N>
- All Known Implementing Classes:
CallableDeclaration,ClassOrInterfaceDeclaration,ConstructorDeclaration,FieldDeclaration,MethodDeclaration,Parameter,RecordDeclaration,RecordPatternExpr,TypePatternExpr,VariableDeclarationExpr
public interface NodeWithFinalModifier<N extends Node> extends NodeWithModifiers<N>
A node that can be final.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default booleanisFinal()default NsetFinal(boolean set)-
Methods inherited from interface com.github.javaparser.ast.nodeTypes.NodeWithModifiers
addModifier, getAccessSpecifier, getModifiers, hasModifier, removeModifier, setModifier, setModifiers, setModifiers
-
-
-
-
Method Detail
-
isFinal
default boolean isFinal()
- Returns:
- true, if the modifier
finalis 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)
-
-