org.jpox.store.mapped.expression
Class MatchExpressionParser

java.lang.Object
  extended by org.jpox.store.mapped.expression.MatchExpressionParser

public class MatchExpressionParser
extends java.lang.Object

Parser for a Match Expression.


Constructor Summary
MatchExpressionParser(java.lang.String input, char zeroOrMoreChar, char anyChar, char escapeChar)
          Constructor
 
Method Summary
 java.lang.String parsePattern()
          Parse a pattern expression
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MatchExpressionParser

public MatchExpressionParser(java.lang.String input,
                             char zeroOrMoreChar,
                             char anyChar,
                             char escapeChar)
Constructor

Parameters:
input - The input string
zeroOrMoreChar - The pattern string for representing zero or more characters. Most of databases will use the percent sign character.
anyChar - The pattern string for representing one character. Most of databases will use the underscore character.
escapeChar - The pattern string for representing to escape zeroOrMoreChar or anyChar. Most of databases will use the backslash \ character.
Method Detail

parsePattern

public java.lang.String parsePattern()
Parse a pattern expression

Returns:
the parsed expression

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © -2008 . All Rights Reserved.