com.icl.saxon.expr
Class AnyNameTest
java.lang.Object
|
+--com.icl.saxon.expr.AnyNameTest
- All Implemented Interfaces:
- NameTest
- public class AnyNameTest
- extends java.lang.Object
- implements NameTest
AnyNameTest is NameTest that succeeds whatever the name of the node,
i.e. the XPath "*" name test.
Method Summary |
java.lang.String |
compile()
Compile a Java boolean expression to create the name test |
double |
getDefaultPriority()
Get default priority of this name test |
boolean |
isNameOf(NodeInfo node)
Test whether this name test matches a given node |
java.lang.String |
toString()
Get a string representation |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AnyNameTest
public AnyNameTest()
isNameOf
public boolean isNameOf(NodeInfo node)
- Test whether this name test matches a given node
- Specified by:
isNameOf
in interface NameTest
- Returns:
- true always
getDefaultPriority
public double getDefaultPriority()
- Get default priority of this name test
- Specified by:
getDefaultPriority
in interface NameTest
- Returns:
- -0.5 always
toString
public java.lang.String toString()
- Get a string representation
- Overrides:
toString
in class java.lang.Object
- Returns:
- "*"
compile
public java.lang.String compile()
throws org.xml.sax.SAXException
- Compile a Java boolean expression to create the name test