org.basex.query.path
Class NameTest
java.lang.Object
org.basex.query.path.Test
org.basex.query.path.NameTest
public final class NameTest
- extends Test
XQuery name test.
- Author:
- Workgroup DBIS, University of Konstanz 2005-10, ISC License, Christian Gruen
| Nested classes/interfaces inherited from class org.basex.query.path.Test |
Test.Kind |
|
Field Summary |
byte[] |
ln
Local name. |
| Methods inherited from class org.basex.query.path.Test |
sameAs |
ln
public final byte[] ln
- Local name.
NameTest
public NameTest(boolean att)
- Empty Constructor ('*').
- Parameters:
att - attribute flag
NameTest
public NameTest(QNm nm,
Test.Kind t,
boolean att)
- Constructor.
- Parameters:
nm - namet - test typeatt - attribute flag
eval
public boolean eval(Nod node)
throws QueryException
- Description copied from class:
Test
- Tests the specified node.
- Specified by:
eval in class Test
- Parameters:
node - temporary node
- Returns:
- result of check
- Throws:
QueryException - query exception
comp
public boolean comp(QueryContext ctx)
throws QueryException
- Description copied from class:
Test
- Optimizes and compiles the expression.
- Overrides:
comp in class Test
- Parameters:
ctx - query context
- Returns:
- false if test always returns false
- Throws:
QueryException - query exception
toString
public String toString()
- Overrides:
toString in class Object