TPTP 4.2.0 Platform Project
Public API Specification

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

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

public class TypeRuleFilter
extends AbstractRuleFilter

This class provides rule filtering by type name


Constructor Summary
TypeRuleFilter(java.lang.String typeName, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeRuleFilter

public TypeRuleFilter(java.lang.String typeName,
                      boolean inclusive)
Constructor

Parameters:
typeName - The type name by 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.2.0 Platform Project
Public API Specification