public final class NameTest extends Test
Modifier and Type | Field and Description |
---|---|
byte[] |
local
Local name.
|
Constructor and Description |
---|
NameTest(boolean attr)
Empty constructor ('*').
|
NameTest(QNm name,
Test.Kind kind,
boolean attr,
byte[] elemNS)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Test |
copy()
Copies this test.
|
boolean |
eq(ANode node)
Tests if the test yields true.
|
boolean |
eq(NameTest test)
Checks if the specified test is equals to this test.
|
boolean |
eq(QNm nm)
Checks if the specified name matches the test.
|
Test |
intersect(Test other)
Computes the intersection between two tests.
|
boolean |
optimize(QueryContext qc)
Optimizes the expression.
|
String |
toString() |
public NameTest(boolean attr)
attr
- attribute flagpublic boolean optimize(QueryContext qc)
Test
public boolean eq(QNm nm)
nm
- namepublic boolean eq(NameTest test)
test
- test to be comparedpublic Test intersect(Test other)
Test
Copyright © 2005–2015 BaseX Team. All rights reserved.