jodd.lagarto
Class LagartoParserUtil

java.lang.Object
  extended by jodd.lagarto.LagartoParserUtil

public class LagartoParserUtil
extends java.lang.Object

Lagarto parser util.


Constructor Summary
LagartoParserUtil()
           
 
Method Summary
static int[] calculateLineAndColumn(java.lang.CharSequence charSequence, int position)
          Calculates line and column of current position in character sequence.
static int regionIndexOf(java.lang.CharSequence charSequence, int start, int end, char matchingChar)
          Returns the index of matching character in character sequence region.
static int regionIndexOf(java.lang.CharSequence charSequence, int start, int end, java.lang.String match)
          Returns the index of matching string in character sequence region.
static boolean regionStartWith(java.lang.CharSequence charSequence, int start, int end, java.lang.String matchingString)
          Returns true if character sequence region starts with provided string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LagartoParserUtil

public LagartoParserUtil()
Method Detail

regionStartWith

public static boolean regionStartWith(java.lang.CharSequence charSequence,
                                      int start,
                                      int end,
                                      java.lang.String matchingString)
Returns true if character sequence region starts with provided string.


regionIndexOf

public static int regionIndexOf(java.lang.CharSequence charSequence,
                                int start,
                                int end,
                                char matchingChar)
Returns the index of matching character in character sequence region. Returns -1 if character is not found.


regionIndexOf

public static int regionIndexOf(java.lang.CharSequence charSequence,
                                int start,
                                int end,
                                java.lang.String match)
Returns the index of matching string in character sequence region. Returns -1 if matching string is not found.


calculateLineAndColumn

public static int[] calculateLineAndColumn(java.lang.CharSequence charSequence,
                                           int position)
Calculates line and column of current position in character sequence. Returns int[2] where first number is line and second number is column.



Copyright © 2003-2012 Jodd Team