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 NoNodeTest extends NodeTest { 13 14 private static NoNodeTest instance = new NoNodeTest(); 15 16 19 20 public static NoNodeTest getInstance() { 21 return instance; 22 } 23 24 public final short getNodeType() { 25 return NodeInfo.NONE; 26 } 27 28 31 32 public final boolean matches(NodeInfo node) { 33 return false; 34 } 35 36 41 42 public boolean matches(short nodeType, int fingerprint) { 43 return false; 44 } 45 46 49 50 public final double getDefaultPriority() { 51 return -0.5; 52 } 53 54 } 55 56 | Popular Tags |