Interface NodeWithFinalModifier<N extends Node>
- All Superinterfaces:
NodeWithModifiers<N>
- All Known Implementing Classes:
CallableDeclaration
,ClassOrInterfaceDeclaration
,ConstructorDeclaration
,FieldDeclaration
,MethodDeclaration
,Parameter
,RecordDeclaration
,VariableDeclarationExpr
A node that can be final.
-
Method Summary
Methods inherited from interface com.github.javaparser.ast.nodeTypes.NodeWithModifiers
addModifier, getAccessSpecifier, getModifiers, hasModifier, removeModifier, setModifier, setModifiers, setModifiers
-
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
-