|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.formulacompiler.spreadsheet.SpreadsheetToEngineCompiler.Config
public static class SpreadsheetToEngineCompiler.Config
Configuration data for new instances of
SpreadsheetToEngineCompiler
.
SpreadsheetCompiler.newSpreadsheetCompiler(org.formulacompiler.spreadsheet.SpreadsheetToEngineCompiler.Config)
Field Summary | |
---|---|
SpreadsheetBinding |
binding
The spreadsheet binding to use as input, which also identifies the spreadsheet to use. |
boolean |
compileToReadableCode
Controls whether AFC should attempt to compile more readable code (when decompiled), possibly at the expense of engine size and performance. |
boolean |
computationListenerEnabled
Allows logging intermediate cell values. |
ComputationMode |
computationMode
Tells AFC to calculate expressions as for example Excel or OpenOffice does. |
ConstantExpressionOptimizationListener |
constantExpressionOptimizationListener
Allows to receive notifications about events during compilation process. |
java.lang.Class |
factoryClass
Specifies either a class from which to descend the generated computation factory, or an interface which the generated factory should implement. |
java.lang.reflect.Method |
factoryMethod
The method of the factoryClass which AFC should implement to return new
computation instances. |
boolean |
fullCaching
Controls whether AFC should compile the computation with full internal caching of values, or only (usually minimal) caching at its own discretion. |
NumericType |
numericType
The numeric type to use for all internal computations. |
java.lang.ClassLoader |
parentClassLoader
The parent class loader to use for the compiled engine. |
Constructor Summary | |
---|---|
SpreadsheetToEngineCompiler.Config()
|
Method Summary | |
---|---|
void |
validate()
Validates the configuration. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public SpreadsheetBinding binding
public NumericType numericType
public ComputationMode computationMode
public java.lang.Class factoryClass
null
. If set,
must be public
, and have at most a single abstract method, which must then be the
factoryMethod
.
public java.lang.reflect.Method factoryMethod
factoryClass
which AFC should implement to return new
computation instances. Must be specified if and only if a factory class is specified,
otherwise leave it null
. Must be public
, and have a single parameter of
the SpreadsheetBinder.Config.inputClass
of the
spreadsheet binding, and return the
SpreadsheetBinder.Config.outputClass
of the
spreadsheet binding.
public boolean fullCaching
public java.lang.ClassLoader parentClassLoader
public boolean compileToReadableCode
public boolean computationListenerEnabled
public ConstantExpressionOptimizationListener constantExpressionOptimizationListener
Constructor Detail |
---|
public SpreadsheetToEngineCompiler.Config()
Method Detail |
---|
public void validate()
java.lang.IllegalArgumentException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |