org.jface.stepmt.core.patterns
Class StringPattern

java.lang.Object
  extended byorg.jface.stepmt.core.patterns.AbstractPattern
      extended byorg.jface.stepmt.core.patterns.StringPattern
All Implemented Interfaces:
Pattern

public class StringPattern
extends AbstractPattern

Version:
$Id: StringPattern.java,v 1.2 2004/02/07 11:25:35 powerpete Exp $
Author:
M. Petersen

Field Summary
 
Fields inherited from class org.jface.stepmt.core.patterns.AbstractPattern
name
 
Constructor Summary
StringPattern(java.lang.String value)
           
 
Method Summary
 Interval match(java.lang.String str, int index)
          Returns the Interval matching this pattern at the given index.
 
Methods inherited from class org.jface.stepmt.core.patterns.AbstractPattern
checkBounds, getName, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringPattern

public StringPattern(java.lang.String value)
Method Detail

match

public Interval match(java.lang.String str,
                      int index)
Description copied from interface: Pattern
Returns the Interval matching this pattern at the given index.

Parameters:
str - The String
index - The index that is used to match the position.
Returns:
The Interval matchin this Pattern or null.


Copyright © 2003-2004 jface.org. All Rights Reserved.