|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcsheets.core.formula.compiler.ExcelExpressionCompiler
public class ExcelExpressionCompiler
A compiler that generates Excel-style formulas from strings.
| Field Summary | |
|---|---|
static char |
FORMULA_STARTER
The character that signals that a cell's content is a formula ('=') |
| Constructor Summary | |
|---|---|
ExcelExpressionCompiler()
Creates the Excel expression compiler. |
|
| Method Summary | |
|---|---|
Expression |
compile(Cell cell,
String source)
Compiles an expression from the given string. |
protected Expression |
convert(Cell cell,
antlr.collections.AST node)
Converts the given ANTLR AST to an expression. |
char |
getStarter()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final char FORMULA_STARTER
| Constructor Detail |
|---|
public ExcelExpressionCompiler()
| Method Detail |
|---|
public char getStarter()
getStarter in interface ExpressionCompiler
public Expression compile(Cell cell,
String source)
throws FormulaCompilationException
ExpressionCompiler
compile in interface ExpressionCompilercell - the cell for which the expression is to be compiledsource - a string representing the expression to be compiled
FormulaCompilationException - if the expression could not be compiled
protected Expression convert(Cell cell,
antlr.collections.AST node)
throws FormulaCompilationException
node - the abstract syntax tree node to convert
FormulaCompilationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||