public class SkipFromAstIfOnlyOneChild extends java.lang.Object implements AstNodeSkippingPolicy
Constructor and Description |
---|
SkipFromAstIfOnlyOneChild() |
Modifier and Type | Method and Description |
---|---|
boolean |
hasToBeSkippedFromAst(AstNode node)
Some AstNode can be pretty useless and makes a global AST less readable.
|
public boolean hasToBeSkippedFromAst(AstNode node)
AstNodeSkippingPolicy
hasToBeSkippedFromAst
in interface AstNodeSkippingPolicy
node
- the node that should or not be removed from the ASTCopyright © 2012 SonarSource. All Rights Reserved.