Class CompilationResult
java.lang.Object
fr.inria.rules.integraal.api.internal.CompilationResult
Stores the result of compiling a rule base for rewriting.
-
Constructor Summary
ConstructorsConstructorDescriptionCompilationResult(RuleBase ruleBase, InteGraalKeywords.Algorithms.Parameters.Compilation ruleCompilationType) Builds a compilation result for the given rule base and compilation type. -
Method Summary
Modifier and TypeMethodDescriptionReturns the rewriting algorithm associated with this compilation result.Returns the compilable part of the rule base.Returns the non-compilable part of the rule base.
-
Constructor Details
-
CompilationResult
public CompilationResult(RuleBase ruleBase, InteGraalKeywords.Algorithms.Parameters.Compilation ruleCompilationType) throws IllegalArgumentException Builds a compilation result for the given rule base and compilation type.- Parameters:
ruleBase- the rule base to compileruleCompilationType- the compilation strategy to apply- Throws:
IllegalArgumentException- if the compilation type is unknown
-
-
Method Details
-
getAlgorithm
Returns the rewriting algorithm associated with this compilation result.- Returns:
- the rewriting algorithm
-
getCompiled
Returns the compilable part of the rule base.- Returns:
- the compilable rules
-
getUncompiled
Returns the non-compilable part of the rule base.- Returns:
- the non-compilable rules
-