org.hackystat.sensorbase.uripattern
Class NotOperator

java.lang.Object
  extended by org.hackystat.sensorbase.uripattern.NotOperator
All Implemented Interfaces:
Operator

 class NotOperator
extends java.lang.Object
implements Operator

Not logic operator for two patterns.

Author:
(Cedric) Qin ZHANG

Field Summary
 
Fields inherited from interface org.hackystat.sensorbase.uripattern.Operator
AND, NOT, OR
 
Constructor Summary
NotOperator()
           
 
Method Summary
 int getArity()
          Gets the arity of this operator.
 boolean matches(Pattern[] patterns, java.lang.String filePath)
          Perform operator operation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotOperator

NotOperator()
Method Detail

getArity

public int getArity()
Gets the arity of this operator.

Specified by:
getArity in interface Operator
Returns:
The arity.

matches

public boolean matches(Pattern[] patterns,
                       java.lang.String filePath)
Perform operator operation.

Specified by:
matches in interface Operator
Parameters:
patterns - The operand.
filePath - The file path to match.
Returns:
True if there is a match.