1 61 62 63 64 package org.jaxen.expr; 65 66 import org.jaxen.ContextSupport; 67 import org.jaxen.Navigator; 68 import org.jaxen.expr.iter.IterableAxis; 69 70 public class DefaultTextNodeStep extends DefaultStep implements TextNodeStep 71 { 72 public DefaultTextNodeStep(IterableAxis axis, PredicateSet predicateSet ) 73 { 74 super( axis, predicateSet ); 75 } 76 77 public boolean matches(Object node, 78 ContextSupport support) 79 { 80 Navigator nav = support.getNavigator(); 81 82 return nav.isText( node ); 83 } 84 85 public String getText() 86 { 87 return getAxisName() + "::text()" + super.getText(); 88 } 89 90 public void accept(Visitor visitor) 91 { 92 visitor.visit(this); 93 } 94 } 95 | Popular Tags |