TPTP 4.6.0 Platform Project
Public API Specification

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

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

public class MethodNameRuleFilter
extends AbstractRuleFilter

This class provides rule filtering by method name


Constructor Summary
MethodNameRuleFilter(java.lang.String[] methodNames, boolean inclusive)
          Constructor
MethodNameRuleFilter(java.lang.String methodName, 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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodNameRuleFilter

public MethodNameRuleFilter(java.lang.String methodName,
                            boolean inclusive)
Constructor

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

MethodNameRuleFilter

public MethodNameRuleFilter(java.lang.String[] methodNames,
                            boolean inclusive)
Constructor

Parameters:
methodNames - An array of method names on which 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.6.0 Platform Project
Public API Specification