Skip to content

Commit 62771a6

Browse files
committed
Add class comment for ClassPathInterpreterLoader
1 parent c110edd commit 62771a6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

org.metaborg.spoofax.shell.core/src/main/java/org/metaborg/spoofax/shell/core/ClassPathInterpreterLoader.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@
1515
import com.oracle.truffle.api.vm.PolyglotEngine;
1616

1717
/**
18-
* Loads an interpreter from a jar archive.
18+
* Loads an interpreter that is present in the class path. This {@link IInterpreterLoader} uses
19+
* reflection to load the generated {@link DynSemEntryPoint} and {@link DynSemLanguage} subclasses.
20+
* It instantiates a {@link PolyglotEngine} with the {@link NonParser} that is provided, by using
21+
* the supported {@link DynSemLanguage#PARSER configuration parameter}.
1922
*/
2023
public class ClassPathInterpreterLoader implements IInterpreterLoader {
2124
private NonParser nonParser;
@@ -38,7 +41,6 @@ public PolyglotEngine loadInterpreterForLanguage(ILanguageImpl langImpl)
3841
DynSemContext.LANGUAGE = language;
3942

4043
DynSemEntryPoint entryPoint = getEntryPoint(dynSemProperties);
41-
//RuleRegistry ruleRegistry = getRuleRegistry(interpreterJar, dynSemProperties);
4244

4345
String mimeType = entryPoint.getMimeType();
4446
return PolyglotEngine.newBuilder().config(mimeType, DynSemLanguage.PARSER, nonParser)

org.metaborg.spoofax.shell.core/src/main/java/org/metaborg/spoofax/shell/core/ReplModule.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
import org.metaborg.spoofax.shell.commands.LanguageCommand;
1616
import org.metaborg.spoofax.shell.core.DynSemEvaluationStrategy;
1717
import org.metaborg.spoofax.shell.core.IEvaluationStrategy;
18-
import org.metaborg.spoofax.shell.core.IInterpreterLoader;
19-
import org.metaborg.spoofax.shell.core.JarInterpreterLoader;
2018
import org.metaborg.spoofax.shell.invoker.ICommandFactory;
2119
import org.metaborg.spoofax.shell.invoker.ICommandInvoker;
2220
import org.metaborg.spoofax.shell.invoker.SpoofaxCommandInvoker;

0 commit comments

Comments
 (0)