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 DefaultCommentNodeStep extends DefaultStep implements CommentNodeStep 71 { 72 public DefaultCommentNodeStep(IterableAxis axis, PredicateSet predicateSet) 73 { 74 super( axis, predicateSet ); 75 } 76 77 public String toString() 78 { 79 return "[(DefaultCommentNodeStep): " + getAxis() + "]"; 80 } 81 82 public String getText() 83 { 84 return getAxisName() + "::comment()"; 85 } 86 87 public boolean matches(Object node, 88 ContextSupport contextSupport) 89 { 90 Navigator nav = contextSupport.getNavigator(); 91 92 return nav.isComment( node ); 93 } 94 public void accept(Visitor visitor) 95 { 96 visitor.visit(this); 97 } 98 } 99 | Popular Tags |