org.hackystat.sensorbase.uripattern
Class OrOperator

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

 class OrOperator
extends java.lang.Object
implements Operator

Or 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
OrOperator()
           
 
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

OrOperator

OrOperator()
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.