org.hackystat.sensorbase.uripattern
Class CompoundPattern

java.lang.Object
  extended by org.hackystat.sensorbase.uripattern.CompoundPattern
All Implemented Interfaces:
Pattern

 class CompoundPattern
extends java.lang.Object
implements Pattern

Compound pattern.

Author:
(Cedric) Qin ZHANG

Constructor Summary
CompoundPattern(Operator operator, Pattern[] operands)
          Creates a new compound pattern.
 
Method Summary
 boolean matches(java.lang.String filePath)
          Tests whether the pattern matches a file path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompoundPattern

CompoundPattern(Operator operator,
                Pattern[] operands)
Creates a new compound pattern.

Parameters:
operator - The logic operator.
operands - The operands.
Method Detail

matches

public boolean matches(java.lang.String filePath)
Tests whether the pattern matches a file path.

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