Package com.helix.core.bytecode
Interface BytecodeGenerator
- All Known Implementing Classes:
AsmBytecodeGenerator,AsmGenerator,ByteBuddyGenerator
public interface BytecodeGenerator
Strategy interface for compiling AST expression trees into executable
CompiledRule instances.-
Method Summary
Modifier and TypeMethodDescriptiongenerate(Rule rule, ExpressionNode astRoot) Generates an executableCompiledRuleinstance from a rule definition and its parsed AST.
-
Method Details
-
generate
Generates an executableCompiledRuleinstance from a rule definition and its parsed AST.- Parameters:
rule- raw rule definition metadataastRoot- parsed root AST node- Returns:
- compiled rule instance
- Throws:
BytecodeGenerationException- if generation fails
-