Package org.ek9lang.compiler.phase6
Class PluginResolution
java.lang.Object
org.ek9lang.compiler.CompilerPhase
org.ek9lang.compiler.phase6.PluginResolution
- All Implemented Interfaces:
BiFunction<Workspace,
CompilerFlags, CompilationPhaseResult>
SINGLE THREADED
No-op at this stage. Ready for if we ever do need to plugin anything.
The idea will be to enable a developer to include a module that uses the word 'external'
and in effect just provides type/method signatures in EK9, but then at this phase the compiler
attempt to locate the actual 'shared library' or 'jar' file to ensure for the target architecture
compilation and linking can actually be achieved.
-
Field Summary
Fields inherited from class org.ek9lang.compiler.CompilerPhase
compilableProgramAccess, listener, reporter
-
Constructor Summary
ConstructorDescriptionPluginResolution
(SharedThreadContext<CompilableProgram> compilableProgramAccess, Consumer<CompilationEvent> listener, CompilerReporter reporter) Create new instance to resolve plugins for extern packages. -
Method Summary
Modifier and TypeMethodDescriptionboolean
doApply
(Workspace workspace, CompilerFlags compilerFlags) Do the compilation phase.Methods inherited from class org.ek9lang.compiler.CompilerPhase
apply
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.function.BiFunction
andThen
-
Constructor Details
-
Method Details
-
doApply
Description copied from class:CompilerPhase
Do the compilation phase.- Specified by:
doApply
in classCompilerPhase
-