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.ABSTRACT; 7 8 /** 9 * A node that can be abstract. 10 */ 11 public interface NodeWithAbstractModifier<N extends Node> extends NodeWithModifiers<N> { isAbstract()12 default boolean isAbstract() { 13 return hasModifier(ABSTRACT); 14 } 15 16 @SuppressWarnings("unchecked") setAbstract(boolean set)17 default N setAbstract(boolean set) { 18 return setModifier(ABSTRACT, set); 19 } 20 } 21