|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectalice.tuprolog.OperatorManager
This class manages prolog operators
Operator,
Serialized Form| Field Summary | |
static int |
OP_HIGH
highest operator priority |
static int |
OP_LOW
lowest operator priority |
| Constructor Summary | |
OperatorManager()
|
|
| Method Summary | |
LinkedList |
getOperators()
Gets the list of the operators currently defined |
boolean |
opNew(java.lang.String name,
java.lang.String type,
int prio)
Creates a new operator If the operator is already provided, it replaces it with the new one |
int |
opNext(int prio)
Gets the priority nearest (lower) to the priority of a defined operator |
int |
opPrio(java.lang.String name,
java.lang.String type)
Gets the priority of an operator (OP_LOW if the operator is not defined) |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int OP_LOW
public static final int OP_HIGH
| Constructor Detail |
public OperatorManager()
| Method Detail |
public boolean opNew(java.lang.String name,
java.lang.String type,
int prio)
public int opPrio(java.lang.String name,
java.lang.String type)
public LinkedList getOperators()
public int opNext(int prio)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||