frysk.expunit
Class Equals

java.lang.Object
  extended by frysk.expunit.Match
      extended by frysk.expunit.Equals

public class Equals
extends Match

Match a simple string anchored at the start of the current output.


Field Summary
private  String s
           
 
Constructor Summary
Equals(String s)
           
 
Method Summary
protected  int end(int g)
          Return the end of matched group G.
(package private)  boolean find(String output)
          Find the pattern in the output, normally this is an unanchored match.
protected  String group(int g)
          Return matched group G.
protected  int groupCount()
          Return the number of matched groups.
protected  int start(int g)
          Return the start of matched group G.
 String toString()
          Return the string that will be matched.
 
Methods inherited from class frysk.expunit.Match
end, escape, execute, group, start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

s

private String s
Constructor Detail

Equals

public Equals(String s)
Method Detail

toString

public String toString()
Return the string that will be matched.

Overrides:
toString in class Object

groupCount

protected int groupCount()
Description copied from class: Match
Return the number of matched groups.

Overrides:
groupCount in class Match

group

protected String group(int g)
Description copied from class: Match
Return matched group G.

Overrides:
group in class Match

start

protected int start(int g)
Description copied from class: Match
Return the start of matched group G.

Overrides:
start in class Match

end

protected int end(int g)
Description copied from class: Match
Return the end of matched group G.

Overrides:
end in class Match

find

boolean find(String output)
Description copied from class: Match
Find the pattern in the output, normally this is an unanchored match.

Specified by:
find in class Match