• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.STRICTFP;
7 
8 /**
9  * A node that can be strictfp.
10  */
11 public interface NodeWithStrictfpModifier<N extends Node> extends NodeWithModifiers<N> {
isStrictfp()12     default boolean isStrictfp() {
13         return hasModifier(STRICTFP);
14     }
15 
16     @SuppressWarnings("unchecked")
setStrictfp(boolean set)17     default N setStrictfp(boolean set) {
18         return setModifier(STRICTFP, set);
19     }
20 }
21