CLIUtils

public class CLIUtils

Fields

SPOOFAXPATH

public static final String SPOOFAXPATH

Constructors

CLIUtils

public CLIUtils(Spoofax spoofax)

Methods

getCWD

public FileObject getCWD()

Get the current working directory

getLanguage

public ILanguageImpl getLanguage(String languageName)

Get a already loaded language by language name

getOrCreateCWDProject

public IProject getOrCreateCWDProject()

Get or create the project in the current working directory

getOrCreateProject

public IProject getOrCreateProject(FileObject resource)

Get or create project for the given resource

getProject

public IProject getProject(FileObject location)

Get project for the given resource

loadLanguage

public ILanguageImpl loadLanguage(FileObject location)

Load a language from the directory or archive indicated by location

loadLanguagesFromPath

public void loadLanguagesFromPath()

Load languages from the SPOOFAXPATH environment variable

printMessages

public void printMessages(OutputStream os, Iterable<IMessage> messages)

Print formatted messages to the given output stream