public class ExpressionExporter
extends java.lang.Object
| Constructor and Description |
|---|
ExpressionExporter() |
ExpressionExporter(boolean keepConstants)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
export(Expression expr)
Export the expression as a readable String.
|
void |
setIndentation(int indent)
Set the indentation value.
|
void |
setNewLinesForBlocks(boolean newLines)
Set if new lines must be inserted between each block.
|
public ExpressionExporter()
public ExpressionExporter(boolean keepConstants)
keepConstants - true if constants declarations must be kept.public void setNewLinesForBlocks(boolean newLines)
newLines - true if new lines must be inserted between each blockpublic void setIndentation(int indent)
indent - the indentation valuepublic java.lang.String export(Expression expr)
export("a + sin(b)") = "a + sin(b)";
expr - the expressionCopyright © 2018 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence