1 61 62 package org.jaxen.pattern; 63 64 import org.jaxen.Context; 65 66 71 public class AnyNodeTest extends NodeTest { 72 73 private static AnyNodeTest instance = new AnyNodeTest(); 74 75 public static AnyNodeTest getInstance() 76 { 77 return instance; 78 } 79 80 private AnyNodeTest() {} 81 82 84 public boolean matches( Object node, Context context ) 85 { 86 return true; 87 } 88 89 public double getPriority() 90 { 91 return -0.5; 92 } 93 94 public short getMatchType() 95 { 96 return ANY_NODE; 97 } 98 99 public String getText() 100 { 101 return "*"; 102 } 103 } 104 | Popular Tags |