| java.lang.Object org.jicarilla.lang.RegexpSelector
RegexpSelector | public class RegexpSelector implements CriterionExposingSelector(Code) | | A
Selector which matches the string representation of an object
against the provided regular expression pattern.
author: Leo Simons version: $Id: RegexpSelector.java,v 1.1 2004/03/23 13:37:58 lsimons Exp $ |
Field Summary | |
final protected Pattern | m_pattern The regular expression to match against. |
Constructor Summary | |
public | RegexpSelector(Pattern pattern) Create a new instance using the specified pattern. |
Method Summary | |
public boolean | equals(Object o) | public Object | getCriterion() | public int | hashCode() | public boolean | select(Object object) Match the provided parameter against the pattern of this selector, or
against "null" if the provided parameter is null. |
m_pattern | final protected Pattern m_pattern(Code) | | The regular expression to match against.
|
RegexpSelector | public RegexpSelector(Pattern pattern)(Code) | | Create a new instance using the specified pattern.
Parameters: pattern - the regular expression to match against |
hashCode | public int hashCode()(Code) | | |
select | public boolean select(Object object)(Code) | | Match the provided parameter against the pattern of this selector, or
against "null" if the provided parameter is null.
Parameters: object - the object to test true if the object is selected, false otherwise |
|
|