TPTP 4.4.0 Platform Project
Public API Specification

org.eclipse.tptp.platform.analysis.codereview.java.rulefilter
Class OperatorRuleFilter

java.lang.Object
  extended byorg.eclipse.tptp.platform.analysis.codereview.java.AbstractRuleFilter
      extended byorg.eclipse.tptp.platform.analysis.codereview.java.rulefilter.OperatorRuleFilter
All Implemented Interfaces:
IRuleFilter

public class OperatorRuleFilter
extends AbstractRuleFilter

This class provides rule filtering by operator within expressions


Constructor Summary
OperatorRuleFilter(java.lang.String[] operators, boolean inclusive)
          Constructor
OperatorRuleFilter(java.lang.String operator, boolean inclusive)
          Constructor
 
Method Summary
 boolean satisfies(org.eclipse.jdt.core.dom.ASTNode node)
          Determine if the node is satisfied by the specified filter rule
 
Methods inherited from class org.eclipse.tptp.platform.analysis.codereview.java.AbstractRuleFilter
isInclusive, isSuccessful, setSuccess
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OperatorRuleFilter

public OperatorRuleFilter(java.lang.String operator,
                          boolean inclusive)
Constructor

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

OperatorRuleFilter

public OperatorRuleFilter(java.lang.String[] operators,
                          boolean inclusive)
Constructor

Parameters:
operators - An array of operators to filter
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.jdt.core.dom.ASTNode 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.4.0 Platform Project
Public API Specification