net.sf.morph.lang.support
Class BaseExpressionParser

java.lang.Object
  extended by net.sf.morph.lang.support.BaseExpressionParser
All Implemented Interfaces:
ExpressionParser
Direct Known Subclasses:
SimpleExpressionParser

public abstract class BaseExpressionParser
extends java.lang.Object
implements ExpressionParser

A base class for expression parsers.

Since:
Nov 28, 2004
Author:
Matt Sgarlata

Constructor Summary
BaseExpressionParser()
           
 
Method Summary
 java.lang.String[] parse(java.lang.String expression)
          Parses an expression and returns the tokens found in the expression.
abstract  java.lang.String[] parseImpl(java.lang.String expression)
          Implement parse(expression).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseExpressionParser

public BaseExpressionParser()
Method Detail

parseImpl

public abstract java.lang.String[] parseImpl(java.lang.String expression)
                                      throws java.lang.Exception
Implement parse(expression).

Parameters:
expression - to parse
Returns:
String[] of path elements.
Throws:
java.lang.Exception

parse

public java.lang.String[] parse(java.lang.String expression)
                         throws InvalidExpressionException
Parses an expression and returns the tokens found in the expression.

Specified by:
parse in interface ExpressionParser
Parameters:
expression - the expression
Returns:
the tokens found in the expression
Throws:
InvalidExpressionException - if the supplied expression is invalid


Copyright © 2004-2008.