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