|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--prolog.implementation.ProgramBuilder
IProgramBuilder is a kind of class factory. It is required to be able to use different implementation of classed in the program. it is also usefull to seperate packages from each other. so a minimal set of import references into another package is required. !!! be ware of class cast exceptions !!! this is the default implementation of the IProgramBuilder. it creates instances from the prolog.implementation package
| Field Summary | |
protected ISymbolTable |
symbolTable
the symbol table stored in the builder (HACK to be able to get the symboltable from everywhere) |
| Constructor Summary | |
ProgramBuilder()
constructor |
|
| Method Summary | |
IFact |
createAndStatement(IFact f)
returns a implementation of a AndStatement |
IFact |
createAndStatement(int name)
returns a implementation of a AndStatement |
IFact |
createConstraintStatement(int name)
returns a implementation of a ConstraintStatement |
IFact |
createConstraintStatement(int name,
IRelation relation)
returns a implementation of a ConstraintStatement |
IFact |
createFact(int name)
returns a implementation of a IFact |
IFact |
createFact(int name,
IRelation relation)
returns a implementation of a IFact |
IFactDb |
createFactDb()
returns a implementation of a IFactDb |
IFactList |
createFactList(int name,
int colCount)
returns a implementation of a IFactList |
IFact |
createMatchingStatement(int name)
returns a implementation of a MatchingStatement |
IFact |
createMatchingStatement(int name,
IRelation relation)
returns a implementation of a MatchingStatement |
IProgram |
createProgram()
returns a implementation of a IProgram |
IFact |
createQuery(int name)
returns a implementation of a Query |
IQueryList |
createQueryList()
returns a implementation of a IQueryList |
IRelation |
createRelation()
returns a implementation of a IRelation |
IStatementMap |
createStatementMap()
returns a implementation of a IStatementMap |
IAtom |
createValue(int value)
returns a implementation of a IAtom as Value |
IAtom |
createVariable(int value)
returns a implementation of a IAtom as Variable |
ISymbolTable |
getSymbolTable()
returns a implementation of a ISymbolTable |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
protected ISymbolTable symbolTable
| Constructor Detail |
public ProgramBuilder()
| Method Detail |
public IQueryList createQueryList()
createQueryList in interface IProgramBuilderpublic IStatementMap createStatementMap()
createStatementMap in interface IProgramBuilderpublic IFactDb createFactDb()
createFactDb in interface IProgramBuilderpublic IProgram createProgram()
createProgram in interface IProgramBuilder
public IFactList createFactList(int name,
int colCount)
createFactList in interface IProgramBuilderpublic IRelation createRelation()
createRelation in interface IProgramBuilderpublic IFact createAndStatement(int name)
createAndStatement in interface IProgramBuilderpublic IFact createAndStatement(IFact f)
createAndStatement in interface IProgramBuilderpublic IFact createConstraintStatement(int name)
createConstraintStatement in interface IProgramBuilder
public IFact createConstraintStatement(int name,
IRelation relation)
createConstraintStatement in interface IProgramBuilderpublic IFact createMatchingStatement(int name)
createMatchingStatement in interface IProgramBuilder
public IFact createMatchingStatement(int name,
IRelation relation)
createMatchingStatement in interface IProgramBuilderpublic IFact createQuery(int name)
createQuery in interface IProgramBuilder
public IFact createFact(int name,
IRelation relation)
createFact in interface IProgramBuilderpublic IFact createFact(int name)
createFact in interface IProgramBuilderpublic IAtom createValue(int value)
createValue in interface IProgramBuilderpublic IAtom createVariable(int value)
createVariable in interface IProgramBuilderpublic ISymbolTable getSymbolTable()
getSymbolTable in interface IProgramBuilder
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||