public class NumberSignExpressionCompiler extends Object implements ExpressionCompiler
cshhets.core.formula.compiler.ExcelExpressionCompiler
Modifier and Type | Field and Description |
---|---|
static char |
FORMULA_STARTER
The character that signals that a cell's content is a formula ('#')
|
Constructor and Description |
---|
NumberSignExpressionCompiler()
Creates the Excel expression compiler.
|
Modifier and Type | Method and Description |
---|---|
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() |
public static final char FORMULA_STARTER
public NumberSignExpressionCompiler()
public char getStarter()
getStarter
in interface ExpressionCompiler
public Expression compile(Cell cell, String source) throws FormulaCompilationException
ExpressionCompiler
compile
in interface ExpressionCompiler
cell
- the cell for which the expression is to be compiledsource
- a string representing the expression to be compiledFormulaCompilationException
- if the expression could not be compiledprotected Expression convert(Cell cell, antlr.collections.AST node) throws FormulaCompilationException
node
- the abstract syntax tree node to convertFormulaCompilationException