|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjack.plugin.JackJml2bConfiguration
This class represents a configuration extracted from the Jack plugin and used to compile, edit and prove jml files.
| Field Summary | |
static java.lang.String |
EVERYTHING
|
static int |
EXSURES_EXCEPTION_FALSE
|
static int |
EXSURES_EXCEPTION_TRUE
|
static int |
EXSURES_OTHER
|
static int |
EXSURES_RUNTIMEEXCEPTION_FALSE
|
static java.lang.String |
NOTHING
|
| Constructor Summary | |
JackJml2bConfiguration(org.eclipse.core.resources.IProject prj)
Creates a new JackJml2bConfiguration suitable for use with the given project. |
|
| Method Summary | |
Expression |
getDefaultEnsures()
Returns the default ensures clause |
java.util.Vector |
getDefaultExsures()
Returns the default exsures clause |
boolean |
getDefaultExternalFile()
|
static java.lang.String |
getDefaultJmlEnsuresText(org.eclipse.core.resources.IProject project)
Returns the default ensures clause for jml. |
static java.lang.String[] |
getDefaultJmlExsuresExceptions(org.eclipse.core.resources.IProject project)
|
static java.lang.String |
getDefaultJmlExsuresOther(org.eclipse.core.resources.IProject project)
|
static int |
getDefaultJmlExsuresType(org.eclipse.core.resources.IProject project)
Return the default exsures type for the given project. |
static java.lang.String |
getDefaultJmlModifies(org.eclipse.core.resources.IProject project)
Returns the default modifies clause for jml specifications. |
static java.lang.String |
getDefaultJmlRequiresText(org.eclipse.core.resources.IProject project)
Returns the default requires clause for jml if it is not set to requires true. |
ModifiesClause |
getDefaultModifies()
Returns the default modifies clause |
Expression |
getDefaultRequires()
Returns the default requires clause |
JmlPathEntry[] |
getJmlPath()
Returns the path where files have to be searched |
java.io.File |
getSubdirectory()
Returns the directory where the files have to be read and write. |
org.eclipse.swt.graphics.FontData |
getViewerFont()
Returns the font data to use to display to source code text |
static boolean |
isDefaultJmlEnsuresTrue(org.eclipse.core.resources.IProject project)
|
static boolean |
isDefaultJmlRequiresTrue(org.eclipse.core.resources.IProject project)
Indicate wether the default value for requires clauses is
set to requires true or not. |
boolean |
isFileGenerated(java.lang.String name)
|
boolean |
isObviousPoGenerated()
Indicates whether obvious PO have to be generated or not |
boolean |
isObviousProver(java.lang.String name)
|
boolean |
isViewShown(java.lang.String name)
Indicates whether a view of the lemma have to be displayed or not. |
boolean |
isWellDefPoGenerated()
|
void |
setDefaultExternalFile(boolean b)
|
static boolean |
setDefaultJmlEnsuresText(org.eclipse.core.resources.IProject project,
java.lang.String value)
|
static boolean |
setDefaultJmlEnsuresTrue(org.eclipse.core.resources.IProject project,
boolean value)
|
static boolean |
setDefaultJmlExsuresExceptions(org.eclipse.core.resources.IProject project,
java.lang.String[] exceptions)
|
static boolean |
setDefaultJmlExsuresOther(org.eclipse.core.resources.IProject project,
java.lang.String value)
|
static boolean |
setDefaultJmlExsuresType(org.eclipse.core.resources.IProject project,
int value)
|
static boolean |
setDefaultJmlModifies(org.eclipse.core.resources.IProject project,
java.lang.String value)
|
static boolean |
setDefaultJmlRequiresText(org.eclipse.core.resources.IProject project,
java.lang.String value)
|
static boolean |
setDefaultJmlRequiresTrue(org.eclipse.core.resources.IProject project,
boolean value)
|
void |
setFileGenerated(java.lang.String name,
boolean b)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int EXSURES_EXCEPTION_FALSE
public static final int EXSURES_EXCEPTION_TRUE
public static final int EXSURES_RUNTIMEEXCEPTION_FALSE
public static final int EXSURES_OTHER
public static final java.lang.String EVERYTHING
public static final java.lang.String NOTHING
| Constructor Detail |
public JackJml2bConfiguration(org.eclipse.core.resources.IProject prj)
prj - the project this configuration corresponds to.| Method Detail |
public java.io.File getSubdirectory()
IJml2bConfiguration
getSubdirectory in interface IJml2bConfigurationpublic JmlPathEntry[] getJmlPath()
IJml2bConfiguration
getJmlPath in interface IJml2bConfigurationpublic org.eclipse.swt.graphics.FontData getViewerFont()
IJml2bConfiguration
getViewerFont in interface IJml2bConfigurationpublic boolean isObviousPoGenerated()
IJml2bConfiguration
isObviousPoGenerated in interface IJml2bConfigurationpublic boolean isWellDefPoGenerated()
isWellDefPoGenerated in interface IJml2bConfigurationpublic boolean isFileGenerated(java.lang.String name)
isFileGenerated in interface IJml2bConfiguration
public void setFileGenerated(java.lang.String name,
boolean b)
setFileGenerated in interface IJml2bConfigurationpublic boolean isObviousProver(java.lang.String name)
isObviousProver in interface IJml2bConfigurationpublic boolean isViewShown(java.lang.String name)
IJml2bConfiguration
isViewShown in interface IJml2bConfigurationname - The name of the languagepublic Expression getDefaultRequires()
IJml2bConfiguration
getDefaultRequires in interface IJml2bConfigurationpublic ModifiesClause getDefaultModifies()
IJml2bConfiguration
getDefaultModifies in interface IJml2bConfigurationpublic Expression getDefaultEnsures()
IJml2bConfiguration
getDefaultEnsures in interface IJml2bConfigurationpublic java.util.Vector getDefaultExsures()
IJml2bConfiguration
getDefaultExsures in interface IJml2bConfigurationpublic static boolean isDefaultJmlRequiresTrue(org.eclipse.core.resources.IProject project)
requires clauses is
set to requires true or not.
In the case where it is not set to requires true, then
the content of the clause is given by the
getDefaultJmlRequiresText method.
project - the project whose property should be returned.
true, false if a special value is given.JackPlugin#getDefaultJmlRequiresText(IProject)
public static boolean setDefaultJmlRequiresTrue(org.eclipse.core.resources.IProject project,
boolean value)
public static boolean isDefaultJmlEnsuresTrue(org.eclipse.core.resources.IProject project)
public static boolean setDefaultJmlEnsuresTrue(org.eclipse.core.resources.IProject project,
boolean value)
public static boolean setDefaultJmlRequiresText(org.eclipse.core.resources.IProject project,
java.lang.String value)
public static boolean setDefaultJmlEnsuresText(org.eclipse.core.resources.IProject project,
java.lang.String value)
public static boolean setDefaultJmlExsuresExceptions(org.eclipse.core.resources.IProject project,
java.lang.String[] exceptions)
project - exceptions - an array containing the fully qualifed name of the
exceptions.
public static boolean setDefaultJmlModifies(org.eclipse.core.resources.IProject project,
java.lang.String value)
public static java.lang.String getDefaultJmlRequiresText(org.eclipse.core.resources.IProject project)
project - the project whose property should be returned
public static java.lang.String getDefaultJmlEnsuresText(org.eclipse.core.resources.IProject project)
project - the project whose property should be returned
public static int getDefaultJmlExsuresType(org.eclipse.core.resources.IProject project)
project -
public static boolean setDefaultJmlExsuresType(org.eclipse.core.resources.IProject project,
int value)
public static java.lang.String getDefaultJmlExsuresOther(org.eclipse.core.resources.IProject project)
public static boolean setDefaultJmlExsuresOther(org.eclipse.core.resources.IProject project,
java.lang.String value)
public static java.lang.String[] getDefaultJmlExsuresExceptions(org.eclipse.core.resources.IProject project)
public static java.lang.String getDefaultJmlModifies(org.eclipse.core.resources.IProject project)
project - the project for which the default is set.
public boolean getDefaultExternalFile()
getDefaultExternalFile in interface IJml2bConfigurationpublic void setDefaultExternalFile(boolean b)
b -
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||