1 package com.github.javaparser.ast.nodeTypes.modifiers; 2 3 import com.github.javaparser.ast.Node; 4 import com.github.javaparser.ast.nodeTypes.NodeWithModifiers; 5 6 import static com.github.javaparser.ast.Modifier.Keyword.STATIC; 7 8 /** 9 * A node that can be static. 10 */ 11 public interface NodeWithStaticModifier<N extends Node> extends NodeWithModifiers<N> { 12 isStatic()13 default boolean isStatic() { 14 return hasModifier(STATIC); 15 } 16 17 @SuppressWarnings("unchecked") setStatic(boolean set)18 default N setStatic(boolean set) { 19 return setModifier(STATIC, set); 20 } 21 22 } 23