Class CompilationResultImpl
- java.lang.Object
-
- org.apache.sling.scripting.sightly.impl.compiler.CompilationResultImpl
-
- All Implemented Interfaces:
CompilationResult
public class CompilationResultImpl extends Object implements CompilationResult
-
-
Constructor Summary
Constructors Constructor Description CompilationResultImpl(CommandStream commandStream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CommandStreamgetCommandStream()Provides access to the generatedCommandStreamfor evaluating / replaying theCommands after the compile operation.List<CompilerMessage>getErrors()Provides the list of errors recorded during the compilation.List<CompilerMessage>getWarnings()Provides the list of warnings recorded during the compilation.voidseal()
-
-
-
Constructor Detail
-
CompilationResultImpl
public CompilationResultImpl(CommandStream commandStream)
-
-
Method Detail
-
getCommandStream
public CommandStream getCommandStream()
Description copied from interface:CompilationResultProvides access to the generatedCommandStreamfor evaluating / replaying theCommands after the compile operation.- Specified by:
getCommandStreamin interfaceCompilationResult- Returns:
- the command stream generated by the compiler
-
getWarnings
public List<CompilerMessage> getWarnings()
Description copied from interface:CompilationResultProvides the list of warnings recorded during the compilation.- Specified by:
getWarningsin interfaceCompilationResult- Returns:
- the list of warnings; the list can be empty if no warnings have been emitted
-
getErrors
public List<CompilerMessage> getErrors()
Description copied from interface:CompilationResultProvides the list of errors recorded during the compilation.- Specified by:
getErrorsin interfaceCompilationResult- Returns:
- the list of errors; the list can be empty if no errors have been encountered
-
seal
public void seal()
-
-