1 package com.icl.saxon.pattern; 2 import com.icl.saxon.om.NodeInfo; 3 import com.icl.saxon.expr.XPathException; 4 5 11 12 public final class AnyNodeTest extends NodeTest { 13 14 static AnyNodeTest instance = new AnyNodeTest(); 15 16 public AnyNodeTest() { 17 originalText = "node()"; 18 } 19 20 23 24 public static AnyNodeTest getInstance() { 25 return instance; 26 } 27 28 31 32 public final boolean matches(NodeInfo node) { 33 return true; 34 } 35 36 41 42 public final boolean matches(short nodeType, int fingerprint) { 43 return true; 44 } 45 46 49 50 public final double getDefaultPriority() { 51 return -0.5; 52 } 53 54 55 } 56 57 | Popular Tags |