| Modifier and Type | Class and Description |
|---|---|
static class |
Test.Mode
Name test types.
|
| Modifier and Type | Field and Description |
|---|---|
static org.basex.query.path.KindTest |
ATT
Static attribute node test.
|
static org.basex.query.path.KindTest |
COM
Static comment node test.
|
static org.basex.query.path.KindTest |
DOC
Static document node test.
|
static org.basex.query.path.KindTest |
ELM
Static element node test.
|
Test.Mode |
mode
Type of name test.
|
QNm |
name
Name test.
|
static Test |
NOD
Static node test.
|
static org.basex.query.path.KindTest |
PI
Static PI node test.
|
static org.basex.query.path.KindTest |
TXT
Static text node test.
|
NodeType |
type
Type of node test.
|
| Constructor and Description |
|---|
Test() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
comp(QueryContext ctx)
Optimizes and compiles the expression.
|
abstract boolean |
eq(ANode node)
Tests if the test yields true.
|
static Test |
get(NodeType t)
Returns a test instance.
|
boolean |
sameAs(Test t)
Checks the current and specified test for equality.
|
public static final org.basex.query.path.KindTest TXT
public static final org.basex.query.path.KindTest PI
public static final org.basex.query.path.KindTest ELM
public static final org.basex.query.path.KindTest DOC
public static final org.basex.query.path.KindTest ATT
public static final org.basex.query.path.KindTest COM
public static final Test NOD
public NodeType type
public Test.Mode mode
null for other kind tests.public QNm name
null for other kind tests.public static Test get(NodeType t)
t - node typepublic boolean comp(QueryContext ctx)
ctx - query contextpublic abstract boolean eq(ANode node)
node - node to be checkedpublic final boolean sameAs(Test t)
t - test to be compared