SpoofaxLanguageSpecConfigBuilder

public class SpoofaxLanguageSpecConfigBuilder extends LanguageSpecConfigBuilder implements ISpoofaxLanguageSpecConfigBuilder

Configuration-based builder for ILanguageSpecConfig objects.

Fields

buildSteps

protected Collection<IBuildStepConfig> buildSteps

placeholderCharacters

protected PlaceholderCharacters placeholderCharacters

prettyPrint

protected String prettyPrint

sdf2tableVersion

protected Sdf2tableVersion sdf2tableVersion

sdfArgs

protected Arguments sdfArgs

sdfExternalDef

protected String sdfExternalDef

sdfMainFile

protected String sdfMainFile

sdfVersion

protected SdfVersion sdfVersion

strArgs

protected Arguments strArgs

strExternalJar

protected String strExternalJar

strExternalJarFlags

protected String strExternalJarFlags

strFormat

protected StrategoFormat strFormat

Constructors

SpoofaxLanguageSpecConfigBuilder

public SpoofaxLanguageSpecConfigBuilder(AConfigurationReaderWriter configReaderWriter)

Methods

addBuildSteps

public ISpoofaxLanguageSpecConfigBuilder addBuildSteps(Iterable<IBuildStepConfig> buildSteps)

addCompileDeps

public ISpoofaxLanguageSpecConfigBuilder addCompileDeps(Iterable<LanguageIdentifier> deps)

addExports

public ISpoofaxLanguageSpecConfigBuilder addExports(Iterable<IExportConfig> exports)

addGenerates

public ISpoofaxLanguageSpecConfigBuilder addGenerates(Iterable<IGenerateConfig> generates)

addJavaDeps

public ISpoofaxLanguageSpecConfigBuilder addJavaDeps(Iterable<LanguageIdentifier> deps)

addLangContribs

public ISpoofaxLanguageSpecConfigBuilder addLangContribs(Iterable<LanguageContributionIdentifier> contribs)

addPardonedLanguages

public ISpoofaxLanguageSpecConfigBuilder addPardonedLanguages(Iterable<String> languages)

addSourceDeps

public ISpoofaxLanguageSpecConfigBuilder addSourceDeps(Iterable<LanguageIdentifier> deps)

build

public ISpoofaxLanguageSpecConfig build(FileObject rootFolder)

withBuildSteps

public ISpoofaxLanguageSpecConfigBuilder withBuildSteps(Iterable<IBuildStepConfig> buildSteps)

withCompileDeps

public ISpoofaxLanguageSpecConfigBuilder withCompileDeps(Iterable<LanguageIdentifier> deps)

withExports

public ISpoofaxLanguageSpecConfigBuilder withExports(Iterable<IExportConfig> exports)

withGenerates

public ISpoofaxLanguageSpecConfigBuilder withGenerates(Iterable<IGenerateConfig> generates)

withIdentifier

public ISpoofaxLanguageSpecConfigBuilder withIdentifier(LanguageIdentifier identifier)

withJavaDeps

public ISpoofaxLanguageSpecConfigBuilder withJavaDeps(Iterable<LanguageIdentifier> deps)

withLangContribs

public ISpoofaxLanguageSpecConfigBuilder withLangContribs(Iterable<LanguageContributionIdentifier> contribs)

withMetaborgVersion

public ISpoofaxLanguageSpecConfigBuilder withMetaborgVersion(String metaborgVersion)

withName

public ISpoofaxLanguageSpecConfigBuilder withName(String name)

withPardonedLanguages

public ISpoofaxLanguageSpecConfigBuilder withPardonedLanguages(Iterable<String> languages)

withPlaceholderPostfix

public ISpoofaxLanguageSpecConfigBuilder withPlaceholderPostfix(String placeholderPostfix)

withPlaceholderPrefix

public ISpoofaxLanguageSpecConfigBuilder withPlaceholderPrefix(String placeholderPrefix)

withPrettyPrintLanguage

public ISpoofaxLanguageSpecConfigBuilder withPrettyPrintLanguage(String prettyPrintLanguage)

withSdf2tableVersion

public ISpoofaxLanguageSpecConfigBuilder withSdf2tableVersion(Sdf2tableVersion sdf2tableVersion)

withSdfArgs

public ISpoofaxLanguageSpecConfigBuilder withSdfArgs(Arguments args)

withSdfExternalDef

public ISpoofaxLanguageSpecConfigBuilder withSdfExternalDef(String def)

withSdfMainFile

public ISpoofaxLanguageSpecConfigBuilder withSdfMainFile(String sdfMainFile)

withSdfVersion

public ISpoofaxLanguageSpecConfigBuilder withSdfVersion(SdfVersion sdfVersion)

withSourceDeps

public ISpoofaxLanguageSpecConfigBuilder withSourceDeps(Iterable<LanguageIdentifier> deps)

withStrArgs

public ISpoofaxLanguageSpecConfigBuilder withStrArgs(Arguments args)

withStrExternalJar

public ISpoofaxLanguageSpecConfigBuilder withStrExternalJar(String jar)

withStrExternalJarFlags

public ISpoofaxLanguageSpecConfigBuilder withStrExternalJarFlags(String flags)

withStrFormat

public ISpoofaxLanguageSpecConfigBuilder withStrFormat(StrategoFormat format)

withStrTypesmart

public ISpoofaxLanguageSpecConfigBuilder withStrTypesmart(boolean typesmart)

withUseBuildSystemSpec

public ISpoofaxLanguageSpecConfigBuilder withUseBuildSystemSpec(boolean useBuildSystemSpec)