lp.struct
Interface LpStructureUnit

All Known Subinterfaces:
LpTerm
All Known Implementing Classes:
LpAbstractStructureUnit, LpAtom, LpCompoundTerm, LpConstant, LpFunction, LpLiteral, LpPredicate, LpRule, LpVariable

public interface LpStructureUnit

An interface providing the accept(LpStructureUnitVisitor) method that make implementing classes visitable by any LpStructureUnitVisitor. The implementing classes are object representations of the structure of a logic program.

Version:
1.0.0
Author:
Martin Slota
See Also:
LpAbstractStructureUnit, LpConstant, LpVariable, LpCompoundTerm, LpFunction, LpPredicate, LpLiteral, LpRule, LpPrinter

Method Summary
 void accept(LpStructureUnitVisitor visitor)
          Makes the implementing classes visitable by a LpStructureUnitVisitor.
 

Method Detail

accept

void accept(LpStructureUnitVisitor visitor)
Makes the implementing classes visitable by a LpStructureUnitVisitor. The implementing method should (at least) call visitor.visit(this).

Parameters:
visitor - the accepted LpStructureUnitVisitor