CodeGeneratorpublic class LambdaGenerator extends Object implements CodeGenerator
| Constructor | Description |
|---|---|
LambdaGenerator(AviatorEvaluatorInstance instance,
CodeGenerator parentCodeGenerator,
Parser parser,
AviatorClassLoader classLoader,
boolean newLexicalScope,
boolean inheritEnv) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addArgument(String name) |
|
void |
compileCallMethod() |
Compile a call method to invoke lambda compiled body expression.
|
LambdaFunctionBootstrap |
getLmabdaBootstrap() |
|
Expression |
getResult(boolean unboxObject) |
|
ScopeInfo |
getScopeInfo() |
|
void |
onAdd(Token<?> lookhead) |
|
void |
onAndLeft(Token<?> lookhead) |
|
void |
onAndRight(Token<?> lookhead) |
|
void |
onArray(Token<?> lookhead) |
|
void |
onArrayIndexEnd(Token<?> lookhead) |
|
void |
onArrayIndexStart(Token<?> token) |
|
void |
onAssignment(Token<?> lookhead) |
|
void |
onBitAnd(Token<?> lookhead) |
|
void |
onBitNot(Token<?> lookhead) |
|
void |
onBitOr(Token<?> lookhead) |
|
void |
onBitXor(Token<?> lookhead) |
|
void |
onConstant(Token<?> lookhead) |
|
void |
onDiv(Token<?> lookhead) |
|
void |
onEq(Token<?> lookhead) |
|
void |
onExponent(Token<?> lookhead) |
|
void |
onGe(Token<?> lookhead) |
|
void |
onGt(Token<?> lookhead) |
|
void |
onJoinLeft(Token<?> lookhead) |
|
void |
onJoinRight(Token<?> lookhead) |
|
void |
onLambdaArgument(Token<?> lookhead) |
|
void |
onLambdaBodyEnd(Token<?> lookhead) |
|
void |
onLambdaBodyStart(Token<?> lookhead) |
|
void |
onLambdaDefineStart(Token<?> lookhead) |
|
void |
onLe(Token<?> lookhead) |
|
void |
onLt(Token<?> lookhead) |
|
void |
onMatch(Token<?> lookhead) |
|
void |
onMethodInvoke(Token<?> lookhead) |
|
void |
onMethodName(Token<?> lookhead) |
|
void |
onMethodParameter(Token<?> lookhead) |
|
void |
onMod(Token<?> lookhead) |
|
void |
onMult(Token<?> lookhead) |
|
void |
onNeg(Token<?> lookhead) |
|
void |
onNeq(Token<?> lookhead) |
|
void |
onNot(Token<?> lookhead) |
|
void |
onShiftLeft(Token<?> lookhead) |
|
void |
onShiftRight(Token<?> lookhead) |
|
void |
onSub(Token<?> lookhead) |
|
void |
onTernaryBoolean(Token<?> lookhead) |
|
void |
onTernaryEnd(Token<?> lookhead) |
|
void |
onTernaryLeft(Token<?> lookhead) |
|
void |
onTernaryRight(Token<?> lookhead) |
|
void |
onUnsignedShiftRight(Token<?> lookhead) |
|
void |
setParser(Parser parser) |
|
void |
setScopeInfo(ScopeInfo scopeInfo) |
public LambdaGenerator(AviatorEvaluatorInstance instance, CodeGenerator parentCodeGenerator, Parser parser, AviatorClassLoader classLoader, boolean newLexicalScope, boolean inheritEnv)
public ScopeInfo getScopeInfo()
public void setScopeInfo(ScopeInfo scopeInfo)
public void setParser(Parser parser)
setParser in interface CodeGeneratorpublic void compileCallMethod()
public LambdaFunctionBootstrap getLmabdaBootstrap()
public void addArgument(String name)
public void onShiftRight(Token<?> lookhead)
onShiftRight in interface CodeGeneratorpublic void onShiftLeft(Token<?> lookhead)
onShiftLeft in interface CodeGeneratorpublic void onUnsignedShiftRight(Token<?> lookhead)
onUnsignedShiftRight in interface CodeGeneratorpublic void onAssignment(Token<?> lookhead)
onAssignment in interface CodeGeneratorpublic void onBitOr(Token<?> lookhead)
onBitOr in interface CodeGeneratorpublic void onBitAnd(Token<?> lookhead)
onBitAnd in interface CodeGeneratorpublic void onBitXor(Token<?> lookhead)
onBitXor in interface CodeGeneratorpublic void onBitNot(Token<?> lookhead)
onBitNot in interface CodeGeneratorpublic void onAdd(Token<?> lookhead)
onAdd in interface CodeGeneratorpublic void onSub(Token<?> lookhead)
onSub in interface CodeGeneratorpublic void onMult(Token<?> lookhead)
onMult in interface CodeGeneratorpublic void onExponent(Token<?> lookhead)
onExponent in interface CodeGeneratorpublic void onDiv(Token<?> lookhead)
onDiv in interface CodeGeneratorpublic void onAndLeft(Token<?> lookhead)
onAndLeft in interface CodeGeneratorpublic void onAndRight(Token<?> lookhead)
onAndRight in interface CodeGeneratorpublic void onTernaryBoolean(Token<?> lookhead)
onTernaryBoolean in interface CodeGeneratorpublic void onTernaryLeft(Token<?> lookhead)
onTernaryLeft in interface CodeGeneratorpublic void onTernaryRight(Token<?> lookhead)
onTernaryRight in interface CodeGeneratorpublic void onTernaryEnd(Token<?> lookhead)
onTernaryEnd in interface CodeGeneratorpublic void onJoinLeft(Token<?> lookhead)
onJoinLeft in interface CodeGeneratorpublic void onJoinRight(Token<?> lookhead)
onJoinRight in interface CodeGeneratorpublic void onEq(Token<?> lookhead)
onEq in interface CodeGeneratorpublic void onMatch(Token<?> lookhead)
onMatch in interface CodeGeneratorpublic void onNeq(Token<?> lookhead)
onNeq in interface CodeGeneratorpublic void onLt(Token<?> lookhead)
onLt in interface CodeGeneratorpublic void onLe(Token<?> lookhead)
onLe in interface CodeGeneratorpublic void onGt(Token<?> lookhead)
onGt in interface CodeGeneratorpublic void onGe(Token<?> lookhead)
onGe in interface CodeGeneratorpublic void onMod(Token<?> lookhead)
onMod in interface CodeGeneratorpublic void onNot(Token<?> lookhead)
onNot in interface CodeGeneratorpublic void onNeg(Token<?> lookhead)
onNeg in interface CodeGeneratorpublic Expression getResult(boolean unboxObject)
getResult in interface CodeGeneratorpublic void onConstant(Token<?> lookhead)
onConstant in interface CodeGeneratorpublic void onMethodName(Token<?> lookhead)
onMethodName in interface CodeGeneratorpublic void onMethodParameter(Token<?> lookhead)
onMethodParameter in interface CodeGeneratorpublic void onMethodInvoke(Token<?> lookhead)
onMethodInvoke in interface CodeGeneratorpublic void onLambdaDefineStart(Token<?> lookhead)
onLambdaDefineStart in interface CodeGeneratorpublic void onLambdaArgument(Token<?> lookhead)
onLambdaArgument in interface CodeGeneratorpublic void onLambdaBodyStart(Token<?> lookhead)
onLambdaBodyStart in interface CodeGeneratorpublic void onLambdaBodyEnd(Token<?> lookhead)
onLambdaBodyEnd in interface CodeGeneratorpublic void onArray(Token<?> lookhead)
onArray in interface CodeGeneratorpublic void onArrayIndexStart(Token<?> token)
onArrayIndexStart in interface CodeGeneratorpublic void onArrayIndexEnd(Token<?> lookhead)
onArrayIndexEnd in interface CodeGeneratorCopyright © 2022–2023. All rights reserved.