All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class gnu.rex.RexResult

java.lang.Object
   |
   +----gnu.rex.RexResult

public class RexResult
extends Object

Method Index

 o length()
returns length of the matched string
 o length(int)
returns length of a matched substring
 o offset()
returns the offset into the input stream of characters at which the matched string begins.
 o offset(int)
returns the offset into the input stream of characters at which the matched substring begins.
 o subResults()
returns the number of sub-results
 o toString()

Methods

 o offset
 public final int offset()
returns the offset into the input stream of characters at which the matched string begins.

 o length
 public final int length()
returns length of the matched string

 o offset
 public final int offset(int n)
returns the offset into the input stream of characters at which the matched substring begins. The offset is relative to the origin of the entire string that has matched a given regular expression. In other words, it's relative to the offset returned by offset() or offset(0).

Parameters:
n - sub-expression number
 o length
 public final int length(int n)
returns length of a matched substring

Parameters:
n - sub-expression number
 o subResults
 public final int subResults()
returns the number of sub-results

 o toString
 public final String toString()
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index