com.jclark.xsl.expr
Class ProcessingInstructionTest

java.lang.Object
  extended bycom.jclark.xsl.expr.PathPatternBase
      extended bycom.jclark.xsl.expr.ProcessingInstructionTest
All Implemented Interfaces:
PathPattern, Pattern, TopLevelPattern

class ProcessingInstructionTest
extends PathPatternBase


Constructor Summary
(package private) ProcessingInstructionTest(Name name)
           
 
Method Summary
 PathPattern[] getAlternatives()
          by default, only return a list of length one (itself)
 int getDefaultPriority()
          priority when used in XSLT template match pattern
(package private)  Name getMatchName()
          by default, returns null Element, Attribute and PI nodetype tests will override this
(package private)  byte getMatchNodeType()
           
 boolean matches(Node node, ExprContext context)
          return true if the given node matches this pattern when evaluated in the given ExpressionContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProcessingInstructionTest

ProcessingInstructionTest(Name name)
Method Detail

matches

public boolean matches(Node node,
                       ExprContext context)
Description copied from interface: Pattern
return true if the given node matches this pattern when evaluated in the given ExpressionContext


getMatchName

Name getMatchName()
Description copied from class: PathPatternBase
by default, returns null Element, Attribute and PI nodetype tests will override this

Overrides:
getMatchName in class PathPatternBase

getMatchNodeType

byte getMatchNodeType()
Specified by:
getMatchNodeType in class PathPatternBase

getDefaultPriority

public int getDefaultPriority()
Description copied from interface: PathPattern
priority when used in XSLT template match pattern


getAlternatives

public PathPattern[] getAlternatives()
by default, only return a list of length one (itself)

Specified by:
getAlternatives in interface TopLevelPattern