TPTP 4.6.0 Platform Project
Public API Specification

org.eclipse.tptp.platform.analysis.codereview.cpp.rulefilter
Class GlobalVariableRuleFilter

java.lang.Object
  extended by org.eclipse.tptp.platform.analysis.codereview.cpp.AbstractRuleFilter
      extended by org.eclipse.tptp.platform.analysis.codereview.cpp.rulefilter.GlobalVariableRuleFilter
All Implemented Interfaces:
IRuleFilter

public class GlobalVariableRuleFilter
extends AbstractRuleFilter


Constructor Summary
GlobalVariableRuleFilter(boolean inclusive)
          This class provides rule filtering of global variables. the variable declaration may be at root of a file or within a namespace (in which case it would be refered to as namespace::varname, so it might be good to add the namespace name to such variables when making use of this filter)
 
Method Summary
 boolean satisfies(org.eclipse.cdt.core.dom.ast.IASTNode node)
          Determine if the node is satisfied by the specified filter rule
 
Methods inherited from class org.eclipse.tptp.platform.analysis.codereview.cpp.AbstractRuleFilter
isInclusive
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GlobalVariableRuleFilter

public GlobalVariableRuleFilter(boolean inclusive)
This class provides rule filtering of global variables. the variable declaration may be at root of a file or within a namespace (in which case it would be refered to as namespace::varname, so it might be good to add the namespace name to such variables when making use of this filter)

Parameters:
inclusive - True if filtering will include only nodes that match the filter criteria, false to exclude matching nodes
Method Detail

satisfies

public boolean satisfies(org.eclipse.cdt.core.dom.ast.IASTNode node)
Determine if the node is satisfied by the specified filter rule

Specified by:
satisfies in interface IRuleFilter
Specified by:
satisfies in class AbstractRuleFilter
Parameters:
node - The ASTNode to test
Returns:
true if the node satisifes the filtering rule

TPTP 4.6.0 Platform Project
Public API Specification