interpreter
Class Utilities

java.lang.Object
  extended by interpreter.Utilities

public class Utilities
extends java.lang.Object

Version:
1.0, 2006-06-06
Author:
Baris Ulucinar, Dominik Zindel (Universitad da Friburg, Svizra)

Constructor Summary
Utilities()
           
 
Method Summary
private static boolean elmtMatch(TTLNodeExpr expr, XMLElement elmt)
           
static java.util.ArrayList<XMLNode> filter(TTLNodeExpr expr, java.util.ArrayList<XMLNode> nodes)
          Filters the nodes, returns only those that match
static boolean nodeMatch(TTLNodeExpr expr, XMLNode node)
          Verifies if the node matches
static boolean textMatch(TTLNodeExpr expr)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utilities

public Utilities()
Method Detail

filter

public static java.util.ArrayList<XMLNode> filter(TTLNodeExpr expr,
                                                  java.util.ArrayList<XMLNode> nodes)
Filters the nodes, returns only those that match

Parameters:
expr - NodeExpr
nodes -
Returns:
Nodes that match

nodeMatch

public static boolean nodeMatch(TTLNodeExpr expr,
                                XMLNode node)
Verifies if the node matches

Parameters:
expr - NodeExpression
node - Node (= Item)
Returns:
Boolean

textMatch

public static boolean textMatch(TTLNodeExpr expr)

elmtMatch

private static boolean elmtMatch(TTLNodeExpr expr,
                                 XMLElement elmt)