org.hackystat.sensorbase.uripattern
Interface Operator

All Known Implementing Classes:
AndOperator, NotOperator, OrOperator

interface Operator

Logic operator for two patterns.

Author:
(Cedric) Qin ZHANG

Field Summary
static Operator AND
          And operator.
static Operator NOT
          Not operator.
static Operator OR
          Or Operator.
 
Method Summary
 int getArity()
          Gets the arity of this operator.
 boolean matches(Pattern[] patterns, java.lang.String filePath)
          Perform operator operation.
 

Field Detail

AND

static final Operator AND
And operator.


OR

static final Operator OR
Or Operator.


NOT

static final Operator NOT
Not operator.

Method Detail

getArity

int getArity()
Gets the arity of this operator.

Returns:
The arity.

matches

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

Parameters:
patterns - The operand.
filePath - The file path to match.
Returns:
True if there is a match.