org.hackystat.sensorbase.uripattern
Class AndOperator

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

 class AndOperator
extends java.lang.Object
implements Operator

And 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
AndOperator()
           
 
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

AndOperator

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