|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.qedeq.kernel.bo.logic.wf.FormulaCheckerImpl
public class FormulaCheckerImpl
This class deals with Elements which represent a
formula. It has methods to check those elements for being well-formed.
LATER mime 20070307: here are sometimes error messages that get concatenated with
an ElementList.getOperator() string. Perhaps these
strings must be translated into the original input format and a mapping must be done.
| Field Summary |
|---|
| Fields inherited from interface org.qedeq.kernel.bo.logic.common.Operators |
|---|
CLASS_OP, CONJUNCTION_OPERATOR, DISJUNCTION_OPERATOR, EQUIVALENCE_OPERATOR, EXISTENTIAL_QUANTIFIER_OPERATOR, FUNCTION_CONSTANT, FUNCTION_VARIABLE, IMPLICATION_OPERATOR, META_VARIABLE, NEGATION_OPERATOR, PREDICATE_CONSTANT, PREDICATE_VARIABLE, SUBJECT_VARIABLE, UNIQUE_EXISTENTIAL_QUANTIFIER_OPERATOR, UNIVERSAL_QUANTIFIER_OPERATOR |
| Constructor Summary | |
|---|---|
FormulaCheckerImpl()
Constructor. |
|
| Method Summary | |
|---|---|
LogicalCheckExceptionList |
checkFormula(Element element,
ModuleContext context)
Checks if an Element is a formula. |
LogicalCheckExceptionList |
checkFormula(Element element,
ModuleContext context,
ExistenceChecker existenceChecker)
Checks if an Element is a formula. |
LogicalCheckExceptionList |
checkTerm(Element element,
ModuleContext context)
Check if Element is a term. |
LogicalCheckExceptionList |
checkTerm(Element element,
ModuleContext context,
ExistenceChecker existenceChecker)
Check if Element is a term. |
protected ModuleContext |
getCurrentContext()
Get current context within original. |
protected void |
setLocationWithinModule(java.lang.String locationWithinModule)
Set location information where are we within the original module. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FormulaCheckerImpl()
| Method Detail |
|---|
public final LogicalCheckExceptionList checkFormula(Element element,
ModuleContext context,
ExistenceChecker existenceChecker)
FormulaCheckerElement is a formula. If there are any errors the returned list
(which is always not null) has a size greater zero.
checkFormula in interface FormulaCheckerelement - Check this element.context - For location information. Important for locating errors.existenceChecker - Existence checker for operators.
null.
public final LogicalCheckExceptionList checkFormula(Element element,
ModuleContext context)
FormulaCheckerElement is a formula. All predicates and functions are assumed to exist.
If there are any errors the returned list (which is always not null) has a size
greater zero.
If the existence context is known you should use
FormulaChecker.checkFormula(Element, ModuleContext, ExistenceChecker).
checkFormula in interface FormulaCheckerelement - Check this element.context - For location information. Important for locating errors.
null.
public final LogicalCheckExceptionList checkTerm(Element element,
ModuleContext context,
ExistenceChecker existenceChecker)
Element is a term. If there are any errors the returned list
(which is always not null) has a size greater zero.
checkTerm in interface FormulaCheckerelement - Check this element.context - For location information. Important for locating errors.existenceChecker - Existence checker for operators.
null.
public final LogicalCheckExceptionList checkTerm(Element element,
ModuleContext context)
Element is a term. If there are any errors the returned list
(which is always not null) has a size greater zero.
If the existence context is known you should use
checkTerm(Element, ModuleContext, ExistenceChecker).
checkTerm in interface FormulaCheckerelement - Check this element.context - For location information. Important for locating errors.
null.protected void setLocationWithinModule(java.lang.String locationWithinModule)
locationWithinModule - Location within module.protected final ModuleContext getCurrentContext()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||