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 Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default booleanisStatic()default NsetStatic(boolean set)-
Methods inherited from interface com.github.javaparser.ast.nodeTypes.NodeWithModifiers
addModifier, getAccessSpecifier, getModifiers, hasModifier, removeModifier, setModifier, setModifiers, setModifiers
-
-
-
-
Method Detail
-
isStatic
default boolean isStatic()
- Returns:
- true, if the modifier
staticis 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)
-
-