org.jicengine.expression
Interface Parser

All Known Implementing Classes:
CompositeParser, FieldValueParser, LJEParser, MethodInvocationParser, StaticValueParser, VariableParser

public interface Parser

for parsing string expressions into executable operations.

Author:
.timo

Field Summary
static char ARRAY_LENGTH_END
           
static char ARRAY_LENGTH_START
           
static java.lang.String BOOLEAN_FALSE
           
static java.lang.String BOOLEAN_TRUE
           
static char METHOD_PARAMS_END
           
static char METHOD_PARAMS_START
           
static char OPERATION_SEPARATOR
           
static char STRING_MARKER
           
 
Method Summary
 Operation parse(java.lang.String expression)
           
 

Field Detail

OPERATION_SEPARATOR

public static final char OPERATION_SEPARATOR

METHOD_PARAMS_START

public static final char METHOD_PARAMS_START

METHOD_PARAMS_END

public static final char METHOD_PARAMS_END

ARRAY_LENGTH_START

public static final char ARRAY_LENGTH_START

ARRAY_LENGTH_END

public static final char ARRAY_LENGTH_END

BOOLEAN_TRUE

public static final java.lang.String BOOLEAN_TRUE

BOOLEAN_FALSE

public static final java.lang.String BOOLEAN_FALSE

STRING_MARKER

public static final char STRING_MARKER
Method Detail

parse

public Operation parse(java.lang.String expression)
                throws SyntaxException
Returns:
Parsers may return null in order to signal 'abort' i.e. if the syntax of the expression is not understood by the parser implementation. i.e. NumberParser returns null if the expression is a string-expression..
Throws:
ExpressionException - if the syntax of the expression looked like okay, but the parsing failed for some reason.
SyntaxException