public class SkipFromAstIfOnlyOneChild extends Object implements AstNodeSkippingPolicy
| Modifier and Type | Field and Description |
|---|---|
static SkipFromAstIfOnlyOneChild |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasToBeSkippedFromAst(AstNode node)
Some AstNode can be pretty useless and makes a global AST less readable.
|
public static final SkipFromAstIfOnlyOneChild INSTANCE
public boolean hasToBeSkippedFromAst(AstNode node)
AstNodeSkippingPolicyhasToBeSkippedFromAst in interface AstNodeSkippingPolicynode - the node that should or not be removed from the ASTCopyright © 2009–2018 SonarSource. All rights reserved.