|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Visitor
This interface represents an visitor for the logical expression tree structure.
The visitor design pattern is a way of separating an algorithm from an object structure. A practical result of this separation is the ability to add new operations to existing object structures without modifying those structures.
The idea is to use a structure of element classes, each of which has an accept method that takes a visitor object as an argument. The visitor is an interface that has a different visit() method for each element class. The accept() method of an element class calls back the visit() method for its class. Separate concrete visitor classes can then be written that perform some particular operations.
Method Summary | |
---|---|
void |
visitAtom(Atom expr)
|
void |
visitAttributeContraintMolecule(AttributeConstraintMolecule expr)
|
void |
visitAttributeInferenceMolecule(AttributeInferenceMolecule expr)
|
void |
visitAttributeValueMolecule(AttributeValueMolecule expr)
|
void |
visitCompoundMolecule(CompoundMolecule expr)
|
void |
visitConjunction(Conjunction expr)
|
void |
visitConstraint(Constraint expr)
|
void |
visitDisjunction(Disjunction expr)
|
void |
visitEquivalence(Equivalence expr)
|
void |
visitExistentialQuantification(ExistentialQuantification expr)
|
void |
visitImplication(Implication expr)
|
void |
visitInverseImplication(InverseImplication expr)
|
void |
visitLogicProgrammingRule(LogicProgrammingRule expr)
|
void |
visitMemberShipMolecule(MembershipMolecule expr)
|
void |
visitNegation(Negation expr)
|
void |
visitNegationAsFailure(NegationAsFailure expr)
|
void |
visitSubConceptMolecule(SubConceptMolecule expr)
|
void |
visitUniversalQuantification(UniversalQuantification expr)
|
Method Detail |
---|
void visitAtom(Atom expr)
expr
- Atomvoid visitCompoundMolecule(CompoundMolecule expr)
expr
- Moleculevoid visitSubConceptMolecule(SubConceptMolecule expr)
expr
- SubConceptMoleculevoid visitMemberShipMolecule(MembershipMolecule expr)
expr
- void visitAttributeValueMolecule(AttributeValueMolecule expr)
expr
- void visitAttributeContraintMolecule(AttributeConstraintMolecule expr)
expr
- void visitAttributeInferenceMolecule(AttributeInferenceMolecule expr)
expr
- void visitNegation(Negation expr)
expr
- NEGvoid visitNegationAsFailure(NegationAsFailure expr)
expr
- NAFvoid visitConstraint(Constraint expr)
expr
- CONSTRAINTvoid visitConjunction(Conjunction expr)
expr
- ANDvoid visitDisjunction(Disjunction expr)
expr
- ORvoid visitInverseImplication(InverseImplication expr)
expr
- IMPLIEDBYvoid visitImplication(Implication expr)
expr
- IMPLIESvoid visitEquivalence(Equivalence expr)
expr
- EQUIVALENTvoid visitLogicProgrammingRule(LogicProgrammingRule expr)
expr
- IMPLIESLPvoid visitUniversalQuantification(UniversalQuantification expr)
expr
- FORALLvoid visitExistentialQuantification(ExistentialQuantification expr)
expr
- EXISTS
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |