|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object wyvern.lib.commands.autobag.AutobagConditions
Encapsulates a set of conditions for autobagging an item. An AutobagConditions object always contains exactly one Predicate object. The Predicate is a composite other Predicates. The autobag mini-language supports several "base-level" predicates, and the base-level predicates can be composited with AND, OR, and NOT. Base-level predicates include matching names/descriptions, matching certain predefined properties, and matching predefined types similar to those in the Autograb syntax.
Constructor Summary | |
AutobagConditions()
|
Method Summary | |
Predicate |
getPredicate()
|
java.lang.String |
printPredicate(Predicate p)
Recursive function to print a predicate and its children. |
void |
setPredicate(Predicate p)
Sets the top-level Predicate. |
java.lang.String |
toString()
Recursively prints out the condition tree. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public AutobagConditions()
Method Detail |
public void setPredicate(Predicate p)
public Predicate getPredicate()
public java.lang.String toString()
public java.lang.String printPredicate(Predicate p)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |