public class Compile extends AbstractProjectCommand<Compile.Result>
| Modifier and Type | Class and Description |
|---|---|
static class |
Compile.Result
Result kind for this command
|
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
brief
Signals that brief error reporting should be used.
|
protected boolean |
counterexamples
Signals that counterexample generation should be performed.
|
protected boolean |
proof
Signals the proof should be printed during verification.
|
protected boolean |
verbose
Signals that verbose output should be produced.
|
protected boolean |
verificationConditions
Signals that verification conditions should be generated even if
verification is not performed.
|
protected boolean |
verify
Signals that compile-time verification of source files should be
performed.
|
protected wyfs.lang.Content.Filter<WhileyFile> |
whileyExcludes
Identifies which whiley sources files should not be considered for
compilation.
|
protected wyfs.lang.Content.Filter<WhileyFile> |
whileyIncludes
Identifies which whiley source files should be considered for
compilation.
|
protected wyfs.lang.Content.Filter<WyilFile> |
wyilExcludes
Identifies which wyil sources files should not be considered for
compilation.
|
protected wyfs.lang.Content.Filter<WyilFile> |
wyilIncludes
Identifies which wyil source files should be considered for
compilation.
|
logger, registry, whileydir, whileypath, wyaldir, wycsdir, wyildir| Constructor and Description |
|---|
Compile(wyfs.lang.Content.Registry registry,
wycc.util.Logger logger)
Construct a new instance of this command.
|
Compile(wyfs.lang.Content.Registry registry,
wycc.util.Logger logger,
OutputStream sysout,
OutputStream syserr)
Construct a new instance of this command.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addCompilationBuildRules(wybs.util.StdProject project)
Add build rules necessary for compiling whiley source files into binary
wyil files.
|
protected void |
addVerificationBuildRules(wybs.util.StdProject project)
Add build rules necessary for compiling wyil binary files into wyal files
for verification.
|
protected void |
addWhiley2WyilBuildRule(wybs.util.StdProject project)
Add the rule for compiling Whiley source files into WyIL files.
|
protected Compile.Result |
compile(wybs.util.StdProject project,
List<? extends wyfs.lang.Path.Entry<?>> entries) |
String |
describe(String option) |
String |
describeExcludes() |
String |
describeIncludes() |
Compile.Result |
execute(List<? extends wyfs.lang.Path.Entry<?>> entries) |
Compile.Result |
execute(String... args) |
void |
findCounterexamples(wyal.lang.WyalFile.Declaration.Assert assertion,
wybs.util.StdProject project) |
String |
getDescription() |
List |
getModifiedSourceFiles() |
static <T,S> List<wyfs.lang.Path.Entry<T>> |
getModifiedSourceFiles(wyfs.lang.Path.Root sourceDir,
wyfs.lang.Content.Filter<T> sourceIncludes,
wyfs.lang.Path.Root binaryDir,
wyfs.lang.Content.Type<S> binaryContentType)
Generate the list of source files which need to be recompiled.
|
String |
getName() |
String[] |
getOptions() |
boolean |
getVerificationConditions() |
boolean |
getVerify() |
void |
set(String option,
Object value) |
void |
setBrief() |
void |
setExcludes(wyfs.lang.Content.Filter<WhileyFile> excludes) |
void |
setIncludes(wyfs.lang.Content.Filter<WhileyFile> includes) |
void |
setVerbose() |
void |
setVerbose(boolean b) |
void |
setVerificationConditions(boolean flag) |
void |
setVerify(boolean flag) |
addBootpath, finaliseConfiguration, get, getAbstractRoot, getDirectoryRoot, initialiseProject, setWhileydir, setWhileypath, setWyaldir, setWyildirprotected boolean verbose
protected boolean brief
protected boolean verify
protected boolean counterexamples
protected boolean verificationConditions
protected boolean proof
protected wyfs.lang.Content.Filter<WhileyFile> whileyIncludes
protected wyfs.lang.Content.Filter<WhileyFile> whileyExcludes
whileyIncludes
. By default, no files files reachable from srcdir are excluded.protected wyfs.lang.Content.Filter<WyilFile> wyilIncludes
protected wyfs.lang.Content.Filter<WyilFile> wyilExcludes
whileyIncludes
. By default, no files files reachable from srcdir are excluded.public Compile(wyfs.lang.Content.Registry registry,
wycc.util.Logger logger)
registry - The content registry being used to match files to content
types.IOExceptionpublic Compile(wyfs.lang.Content.Registry registry,
wycc.util.Logger logger,
OutputStream sysout,
OutputStream syserr)
registry - The content registry being used to match files to content
types.IOExceptionpublic String getName()
public String[] getOptions()
getOptions in interface wycc.lang.Feature.ConfigurablegetOptions in class AbstractProjectCommand<Compile.Result>public String describe(String option)
describe in interface wycc.lang.Feature.Configurabledescribe in class AbstractProjectCommand<Compile.Result>public void set(String option, Object value) throws wycc.lang.Feature.ConfigurationError
set in interface wycc.lang.Feature.Configurableset in class AbstractProjectCommand<Compile.Result>wycc.lang.Feature.ConfigurationErrorpublic String getDescription()
public void setVerify(boolean flag)
public boolean getVerify()
public void setVerificationConditions(boolean flag)
public boolean getVerificationConditions()
public void setVerbose()
public void setVerbose(boolean b)
public void setBrief()
public String describeIncludes()
public void setIncludes(wyfs.lang.Content.Filter<WhileyFile> includes)
public String describeExcludes()
public void setExcludes(wyfs.lang.Content.Filter<WhileyFile> excludes)
public Compile.Result execute(String... args)
public Compile.Result execute(List<? extends wyfs.lang.Path.Entry<?>> entries)
protected Compile.Result compile(wybs.util.StdProject project, List<? extends wyfs.lang.Path.Entry<?>> entries)
protected void addCompilationBuildRules(wybs.util.StdProject project)
project - protected void addWhiley2WyilBuildRule(wybs.util.StdProject project)
project - protected void addVerificationBuildRules(wybs.util.StdProject project)
project - public void findCounterexamples(wyal.lang.WyalFile.Declaration.Assert assertion,
wybs.util.StdProject project)
public List getModifiedSourceFiles() throws IOException
IOExceptionpublic static <T,S> List<wyfs.lang.Path.Entry<T>> getModifiedSourceFiles(wyfs.lang.Path.Root sourceDir, wyfs.lang.Content.Filter<T> sourceIncludes, wyfs.lang.Path.Root binaryDir, wyfs.lang.Content.Type<S> binaryContentType) throws IOException
IOExceptionCopyright © 2017. All rights reserved.