public class UserOperatorBase extends java.lang.Object implements UserOperator
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
functionName |
protected java.lang.String |
tokenLiteral |
OERATOR_PRECEDENCE_CONDITIONAL, OERATOR_PRECEDENCE_FACTOR, OERATOR_PRECEDENCE_RELATIONAL, OERATOR_PRECEDENCE_SUM
Constructor and Description |
---|
UserOperatorBase(java.lang.String name,
java.lang.String precedence) |
UserOperatorBase(java.lang.String name,
java.lang.String precedence,
java.lang.String tokenLiteral,
java.lang.String functionName) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
name() |
protected boolean |
parse_operator(LexicalAnalyzer lexer) |
Code |
parse(LexicalAnalyzer lexer,
CodeBuilder codebuilder,
Code op1,
java.util.function.Supplier<Code> op2) |
java.lang.String |
precedence() |
protected java.lang.String functionName
protected java.lang.String tokenLiteral
public UserOperatorBase(java.lang.String name, java.lang.String precedence)
public UserOperatorBase(java.lang.String name, java.lang.String precedence, java.lang.String tokenLiteral, java.lang.String functionName)
public java.lang.String name()
name
in interface UserOperator
public java.lang.String precedence()
precedence
in interface UserOperator
public Code parse(LexicalAnalyzer lexer, CodeBuilder codebuilder, Code op1, java.util.function.Supplier<Code> op2)
parse
in interface UserOperator
protected boolean parse_operator(LexicalAnalyzer lexer)