com.sonar.sslr.impl.ast
Class AlwaysSkipFromAst

java.lang.Object
  extended by com.sonar.sslr.impl.ast.AlwaysSkipFromAst
All Implemented Interfaces:
AstNodeSkippingPolicy, AstNodeType

public class AlwaysSkipFromAst
extends Object
implements AstNodeSkippingPolicy


Field Summary
static AlwaysSkipFromAst INSTANCE
           
 
Method Summary
 boolean hasToBeSkippedFromAst(AstNode node)
          Some AstNode can be pretty useless and makes a global AST less readable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final AlwaysSkipFromAst INSTANCE
Method Detail

hasToBeSkippedFromAst

public boolean hasToBeSkippedFromAst(AstNode node)
Description copied from interface: AstNodeSkippingPolicy
Some 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:
hasToBeSkippedFromAst in interface AstNodeSkippingPolicy
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.


Copyright © 2009-2014 SonarSource. All Rights Reserved.