Modifier and Type | Class and Description |
---|---|
static class |
Test.Kind
Kind of name test.
|
Modifier and Type | Field and Description |
---|---|
static org.basex.query.expr.path.KindTest |
ATT
Static attribute node test.
|
static org.basex.query.expr.path.KindTest |
COM
Static comment node test.
|
static org.basex.query.expr.path.KindTest |
DOC
Static document node test.
|
static org.basex.query.expr.path.KindTest |
ELM
Static element node test.
|
Test.Kind |
kind
Kind of name test.
|
QNm |
name
Name test.
|
static Test |
NOD
Static node test.
|
static org.basex.query.expr.path.KindTest |
NSP
Static comment node test.
|
static org.basex.query.expr.path.KindTest |
PI
Static PI node test.
|
static org.basex.query.expr.path.KindTest |
TXT
Static text node test.
|
NodeType |
type
Node kind.
|
Constructor and Description |
---|
Test() |
Modifier and Type | Method and Description |
---|---|
abstract Test |
copy()
Copies this test.
|
abstract boolean |
eq(ANode node)
Tests if the test yields true.
|
boolean |
eq(Item item)
Tests if the test yields true.
|
static Test |
get(NodeType t)
Returns a test instance.
|
abstract Test |
intersect(Test other)
Computes the intersection between two tests.
|
boolean |
optimize(QueryContext qc)
Optimizes the expression.
|
boolean |
sameAs(Test t)
Checks the current and specified test for equality.
|
public static final org.basex.query.expr.path.KindTest TXT
public static final org.basex.query.expr.path.KindTest PI
public static final org.basex.query.expr.path.KindTest ELM
public static final org.basex.query.expr.path.KindTest DOC
public static final org.basex.query.expr.path.KindTest ATT
public static final org.basex.query.expr.path.KindTest COM
public static final org.basex.query.expr.path.KindTest NSP
public static final Test NOD
public NodeType type
public Test.Kind kind
null
for other kind tests.public QNm name
null
for other kind tests.public static Test get(NodeType t)
t
- node typepublic boolean optimize(QueryContext qc)
qc
- query contextpublic abstract boolean eq(ANode node)
node
- node to be checkedpublic boolean eq(Item item)
item
- item to be checkedpublic final boolean sameAs(Test t)
t
- test to be comparedpublic abstract Test copy()
Copyright © 2005–2015 BaseX Team. All rights reserved.