net.sf.swan.xpath.pattern
Class PredicatedPattern

java.lang.Object
  |
  +--net.sf.swan.xpath.pattern.PredicatedPattern
All Implemented Interfaces:
NodeTypes, Pattern
Direct Known Subclasses:
FilterPattern, Step

public abstract class PredicatedPattern
extends java.lang.Object
implements Pattern


Fields inherited from interface net.sf.swan.xpath.pattern.NodeTypes
ANY_NODE, ATTRIBUTE_NODE, COMMENT_NODE, DOCUMENT_NODE, ELEMENT_NODE, NAMESPACE_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE, UNKNOWN_NODE
 
Constructor Summary
PredicatedPattern()
           
 
Method Summary
protected  boolean applyPredicate(org.jaxen.expr.Predicate predicate, org.jaxen.Context context)
           
protected  boolean evaluatePredicates(java.lang.Object contextNode, org.jaxen.ContextSupport support)
           
 org.jaxen.expr.PredicateSet getPredicates()
           
 boolean hasPredicates()
           
 void setPredicates(org.jaxen.expr.PredicateSet predicateSet)
           
 void simplifyPredicates()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.swan.xpath.pattern.Pattern
getDefaultPriority, getMatchNodeName, getMatchNodeType, match, simplify
 

Constructor Detail

PredicatedPattern

public PredicatedPattern()
Method Detail

hasPredicates

public boolean hasPredicates()

setPredicates

public void setPredicates(org.jaxen.expr.PredicateSet predicateSet)

getPredicates

public org.jaxen.expr.PredicateSet getPredicates()

simplifyPredicates

public void simplifyPredicates()

evaluatePredicates

protected boolean evaluatePredicates(java.lang.Object contextNode,
                                     org.jaxen.ContextSupport support)
                              throws org.jaxen.JaxenException

applyPredicate

protected boolean applyPredicate(org.jaxen.expr.Predicate predicate,
                                 org.jaxen.Context context)
                          throws org.jaxen.JaxenException