org.jacorb.notification.util

Class PatternWrapper

public abstract class PatternWrapper extends Object

This is a Wrapper around a PatternMatcher.

Version: $Id: PatternWrapper.java,v 1.13 2006/11/24 14:14:48 alphonse.bendt Exp $

Author: Alphonse Bendt

Method Summary
abstract voidcompile(String pattern)
static PatternWrapperinit(String patternString)
abstract intmatch(String text)
Match the given input against this pattern.

Method Detail

compile

public abstract void compile(String pattern)

init

public static PatternWrapper init(String patternString)

match

public abstract int match(String text)
Match the given input against this pattern.

Parameters: text the input to be matched

Returns: the index of the last character matched, plus one or zero if the pattern did not match.