All Packages Class Hierarchy This Package Previous Next Index
Class gnu.rex.RexResult
java.lang.Object
|
+----gnu.rex.RexResult
- public class RexResult
- extends Object
-
length()
- returns length of the matched string
-
length(int)
- returns length of a matched substring
-
offset()
- returns the offset into the input stream of characters
at which the matched string begins.
-
offset(int)
- returns the offset into the input stream of characters
at which the matched substring begins.
-
subResults()
- returns the number of sub-results
-
toString()
-
offset
public final int offset()
- returns the offset into the input stream of characters
at which the matched string begins.
length
public final int length()
- returns length of the matched string
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
length
public final int length(int n)
- returns length of a matched substring
- Parameters:
- n - sub-expression number
subResults
public final int subResults()
- returns the number of sub-results
toString
public final String toString()
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index