|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.query.path.Test
public abstract class Test
Abstract node test.
Nested Class Summary | |
---|---|
static class |
Test.Mode
Name test types. |
Field Summary | |
---|---|
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 |
NSP
Static comment 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 Summary | |
---|---|
Test()
|
Method Summary | |
---|---|
boolean |
compile(QueryContext ctx)
Optimizes and compiles the expression. |
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 |
nsSensitive()
Checks if this test is namespace-sensitive. |
boolean |
sameAs(Test t)
Checks the current and specified test for equality. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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 org.basex.query.path.KindTest NSP
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.
Constructor Detail |
---|
public Test()
Method Detail |
---|
public static Test get(NodeType t)
t
- node type
public boolean compile(QueryContext ctx)
ctx
- query context
public abstract boolean eq(ANode node)
node
- node to be checked
public boolean eq(Item item)
item
- item to be checked
public final boolean sameAs(Test t)
t
- test to be compared
public abstract Test copy()
public boolean nsSensitive()
public abstract Test intersect(Test other)
other
- other test
null
otherwise
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |