1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package net.sf.morph.lang.support;
17
18 import net.sf.morph.lang.InvalidExpressionException;
19
20 /**
21 * A basic parser that breaks an expression into an array of tokens.
22 *
23 * @author Matt Sgarlata
24 * @since Nov 28, 2004
25 */
26 public interface ExpressionParser {
27
28 /**
29 * Parses an expression and returns the tokens found in the expression.
30 *
31 * @param expression
32 * the expression
33 * @return the tokens found in the expression
34 * @throws InvalidExpressionException
35 * if the supplied expression is invalid
36 */
37 public String[] parse(String expression) throws InvalidExpressionException;
38 }