Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,java.lang.String> |
compatibility |
protected static Logger |
LOGGER |
protected ExpressionEvaluatorManager |
manager |
Constructor and Description |
---|
DefaultCompiler(ExpressionEvaluatorManager manager) |
Modifier and Type | Method and Description |
---|---|
void |
addCompatibility(java.lang.String compatid,
java.lang.String value) |
Compiler |
clone()
Creates a copy of the object.
|
Code |
compileExpression(java.lang.String expression) |
Code |
compileExpressionQuietly(java.lang.String expression) |
CodeBuilder |
getCodeBuilder() |
java.lang.String |
getCompatibility(java.lang.String compatid) |
GrammarSet |
getGrammars() |
LexicalAnalyzer |
getLexicalAnalyzer() |
boolean |
isObjectAccessSupported() |
Codes |
parse_arguments() |
Code |
parse_colon() |
Code |
parse_conditional() |
Code |
parse_expression() |
Code |
parse_expression(boolean allow_assignement) |
Codes |
parse_expressions(java.lang.String sep) |
Codes |
parse_expressions(java.lang.String sep,
java.lang.String[] terminationTokens) |
Code |
parse_factor() |
Code |
parse_getattr() |
Code |
parse_not() |
Code |
parse_relational() |
Code |
parse_sum() |
Code |
parse_termino() |
protected Code |
parse_user_operator(java.lang.String precedence,
Code op1,
java.util.function.Supplier<Code> op2) |
void |
setCodeBuilder(CodeBuilder codeBuilder) |
void |
setLexicalAnalyzer(LexicalAnalyzer lexer) |
void |
setObjectAccessSupported(boolean objectAccessSupported) |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cloneQuietly, cloneQuietly
protected static final Logger LOGGER
protected ExpressionEvaluatorManager manager
protected java.util.Map<java.lang.String,java.lang.String> compatibility
public DefaultCompiler(ExpressionEvaluatorManager manager)
public Compiler clone() throws java.lang.CloneNotSupportedException
Cloneable
clone
in interface Compiler
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- if the instance of the object cannot
be cloned. As this is extending Cloneable
so its sure
it implements it, so this exception may be used for problems on specific
object instances.Object#clone()}.
public void setLexicalAnalyzer(LexicalAnalyzer lexer)
setLexicalAnalyzer
in interface Compiler
public LexicalAnalyzer getLexicalAnalyzer()
getLexicalAnalyzer
in interface Compiler
public void setCodeBuilder(CodeBuilder codeBuilder)
setCodeBuilder
in interface Compiler
public CodeBuilder getCodeBuilder()
getCodeBuilder
in interface Compiler
public boolean isObjectAccessSupported()
isObjectAccessSupported
in interface Compiler
public void setObjectAccessSupported(boolean objectAccessSupported)
setObjectAccessSupported
in interface Compiler
public GrammarSet getGrammars()
getGrammars
in interface Compiler
public Code compileExpression(java.lang.String expression)
compileExpression
in interface Compiler
public Code compileExpressionQuietly(java.lang.String expression)
compileExpressionQuietly
in interface Compiler
public Code parse_expression()
public Code parse_expression(boolean allow_assignement)
protected Code parse_user_operator(java.lang.String precedence, Code op1, java.util.function.Supplier<Code> op2)
public Code parse_relational()
public Code parse_not()
public Code parse_conditional()
public Code parse_sum()
public Code parse_factor()
public Code parse_getattr()
public Code parse_colon()
public Code parse_termino()
public Codes parse_expressions(java.lang.String sep)
public Codes parse_expressions(java.lang.String sep, java.lang.String[] terminationTokens)
public Codes parse_arguments()
public void addCompatibility(java.lang.String compatid, java.lang.String value)
addCompatibility
in interface Compiler
public java.lang.String getCompatibility(java.lang.String compatid)
getCompatibility
in interface Compiler