Package com.sonar.sslr.impl.ast
Class NeverSkipFromAst
- java.lang.Object
-
- com.sonar.sslr.impl.ast.NeverSkipFromAst
-
- All Implemented Interfaces:
AstNodeSkippingPolicy,AstNodeType
public class NeverSkipFromAst extends Object implements AstNodeSkippingPolicy
-
-
Field Summary
Fields Modifier and Type Field Description static NeverSkipFromAstINSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasToBeSkippedFromAst(AstNode node)Some AstNode can be pretty useless and makes a global AST less readable.
-
-
-
Field Detail
-
INSTANCE
public static final NeverSkipFromAst INSTANCE
-
-
Method Detail
-
hasToBeSkippedFromAst
public boolean hasToBeSkippedFromAst(AstNode node)
Description copied from interface:AstNodeSkippingPolicySome AstNode can be pretty useless and makes a global AST less readable. This method allows to automatically remove those AstNode from the AST.- Specified by:
hasToBeSkippedFromAstin interfaceAstNodeSkippingPolicy- Parameters:
node- the node that should or not be removed from the AST- Returns:
- true if AstNode with this type must be skipped from the AST.
-
-