| java.lang.Object de.uka.ilkd.key.parser.ocl.FormulaBoolConverter
FormulaBoolConverter | class FormulaBoolConverter (Code) | | Converts between formulas and boolean terms.
|
Method Summary | |
public Term | addAxioms(Term term) Adds axiomatisations for all variables which have been introduced so far
to a term. | public Term | convertBoolToFormula(Term term) Converts a term to a formula, if it is boolean; otherwise, just returns
the term unchanged. | public Term | convertFormulaToBool(Term term) Converts a term to a boolean term, if it is a formula; otherwise, just
returns the term unchanged. | public ListOfTerm | convertFormulasToBool(ListOfTerm list) Converts those terms in a list which are formulas to boolean
terms, and leaves the others unchanged. | public ListOfTerm | convertFormulasToBool(ListOfOCLEntity list) Converts those terms in a list of OCLEntities which are formulas
to boolean terms, and leaves the others unchanged. | public int | getVariableCounter() Returns the current value of the counter which is used for naming the
introduced variables. | public void | setVariableCounter(int value) Sets the counter which is used for naming the introduced variables. |
FormulaBoolConverter | public FormulaBoolConverter(Services serv, NamespaceSet nss)(Code) | | Parameters: serv - used for adding the created variables to the appropriate namespace |
addAxioms | public Term addAxioms(Term term)(Code) | | Adds axiomatisations for all variables which have been introduced so far
to a term.
|
convertBoolToFormula | public Term convertBoolToFormula(Term term)(Code) | | Converts a term to a formula, if it is boolean; otherwise, just returns
the term unchanged.
|
convertFormulaToBool | public Term convertFormulaToBool(Term term)(Code) | | Converts a term to a boolean term, if it is a formula; otherwise, just
returns the term unchanged. For the conversion, a logic variable is
introduced, which must later be axiomatised by calling addAxioms().
|
convertFormulasToBool | public ListOfTerm convertFormulasToBool(ListOfTerm list)(Code) | | Converts those terms in a list which are formulas to boolean
terms, and leaves the others unchanged.
|
convertFormulasToBool | public ListOfTerm convertFormulasToBool(ListOfOCLEntity list)(Code) | | Converts those terms in a list of OCLEntities which are formulas
to boolean terms, and leaves the others unchanged.
|
getVariableCounter | public int getVariableCounter()(Code) | | Returns the current value of the counter which is used for naming the
introduced variables.
|
setVariableCounter | public void setVariableCounter(int value)(Code) | | Sets the counter which is used for naming the introduced variables.
|
|
|