|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.upenn.gloDB.parser.ParserUtils
public class ParserUtils
Methods to process the Operations ArrayList produced by the parser.
Field Summary | |
---|---|
static boolean |
debug
|
static boolean |
debugSolveAll
|
static boolean |
debugSolveOps
|
Constructor Summary | |
---|---|
ParserUtils()
|
Method Summary | |
---|---|
static Track |
compute(java.lang.String parse)
This will parse the input string to create the operations array, then compute the operations and assign the results to the Track indicated. |
private static Operation |
getOperation(Operation operation)
For Operations that contain groups, this will solve the group and store the resulting TreeSet of Tracks in the Operation. |
private static Track |
negate(Track track)
This will perform a 'binary' inversion of the Features in the Track. |
static Track |
solveOps(java.util.ArrayList ops)
This will run solveOpsRecurse() which will recursively solve the Operations in the ArrayList 'ops'. |
static Track |
solveOps(java.util.ArrayList ops,
java.lang.String id)
This will run solveOpsRecurse() which will recursively solve the Operations in the ArrayList 'ops'. |
private static Track |
solveOpsRecurse(java.util.ArrayList ops)
This will solve the Operations in the ArrayList 'ops', calling itself to recursively resolve groups of Operations. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static boolean debug
public static boolean debugSolveAll
public static boolean debugSolveOps
Constructor Detail |
---|
public ParserUtils()
Method Detail |
---|
public static Track compute(java.lang.String parse)
public static Track solveOps(java.util.ArrayList ops)
public static Track solveOps(java.util.ArrayList ops, java.lang.String id)
private static Track solveOpsRecurse(java.util.ArrayList ops)
private static Operation getOperation(Operation operation)
private static Track negate(Track track)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |