com.veromodo.tempo.filters.rules.concrete
Class KeywordPredicate

java.lang.Object
  extended by com.veromodo.tempo.filters.rules.concrete.KeywordPredicate
All Implemented Interfaces:
SemanticPredicate<ASTIdentifier>

public class KeywordPredicate
extends java.lang.Object
implements SemanticPredicate<ASTIdentifier>


Constructor Summary
KeywordPredicate(ErrorLog log, MessageSource source)
           
 
Method Summary
 void addKeyword(java.lang.String word)
           
 boolean eval(ASTIdentifier n)
          evaluates the object n.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeywordPredicate

public KeywordPredicate(ErrorLog log,
                        MessageSource source)
Method Detail

addKeyword

public void addKeyword(java.lang.String word)

eval

public boolean eval(ASTIdentifier n)
Description copied from interface: SemanticPredicate
evaluates the object n. Returns true if the object matches the critera, false otherwise. Reports errors if nessisary.

Specified by:
eval in interface SemanticPredicate<ASTIdentifier>
Parameters:
n - an object to be checked.
Returns:
true if the object matches.