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 CommandStream
getCommandStream()
Provides access to the generatedCommandStream
for evaluating / replaying theCommand
s 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.void
seal()
-
-
-
Constructor Detail
-
CompilationResultImpl
public CompilationResultImpl(CommandStream commandStream)
-
-
Method Detail
-
getCommandStream
public CommandStream getCommandStream()
Description copied from interface:CompilationResult
Provides access to the generatedCommandStream
for evaluating / replaying theCommand
s after the compile operation.- Specified by:
getCommandStream
in interfaceCompilationResult
- Returns:
- the command stream generated by the compiler
-
getWarnings
public List<CompilerMessage> getWarnings()
Description copied from interface:CompilationResult
Provides the list of warnings recorded during the compilation.- Specified by:
getWarnings
in 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:CompilationResult
Provides the list of errors recorded during the compilation.- Specified by:
getErrors
in interfaceCompilationResult
- Returns:
- the list of errors; the list can be empty if no errors have been encountered
-
seal
public void seal()
-
-