Skip to content

Commit

Permalink
Add class comment for ClassPathInterpreterLoader
Browse files Browse the repository at this point in the history
  • Loading branch information
Balletie committed May 31, 2016
1 parent c110edd commit 62771a6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@
import com.oracle.truffle.api.vm.PolyglotEngine;

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

DynSemEntryPoint entryPoint = getEntryPoint(dynSemProperties);
//RuleRegistry ruleRegistry = getRuleRegistry(interpreterJar, dynSemProperties);

String mimeType = entryPoint.getMimeType();
return PolyglotEngine.newBuilder().config(mimeType, DynSemLanguage.PARSER, nonParser)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
import org.metaborg.spoofax.shell.commands.LanguageCommand;
import org.metaborg.spoofax.shell.core.DynSemEvaluationStrategy;
import org.metaborg.spoofax.shell.core.IEvaluationStrategy;
import org.metaborg.spoofax.shell.core.IInterpreterLoader;
import org.metaborg.spoofax.shell.core.JarInterpreterLoader;
import org.metaborg.spoofax.shell.invoker.ICommandFactory;
import org.metaborg.spoofax.shell.invoker.ICommandInvoker;
import org.metaborg.spoofax.shell.invoker.SpoofaxCommandInvoker;
Expand Down

0 comments on commit 62771a6

Please sign in to comment.