|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.query.path.Test
org.basex.query.path.NameTest
public final class NameTest
Name test.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.basex.query.path.Test |
---|
Test.Mode |
Field Summary | |
---|---|
byte[] |
ln
Local name. |
Fields inherited from class org.basex.query.path.Test |
---|
ATT, COM, DOC, ELM, mode, name, NOD, NSP, PI, TXT, type |
Constructor Summary | |
---|---|
NameTest(boolean att)
Empty constructor ('*'). |
|
NameTest(QNm nm,
Test.Mode t,
boolean att)
Constructor. |
Method Summary | |
---|---|
boolean |
compile(QueryContext ctx)
Optimizes and compiles the expression. |
Test |
copy()
Copies this test. |
boolean |
eq(ANode node)
Tests if the test yields true. |
boolean |
eq(QNm nm)
Checks if the specified name matches the test. |
Test |
intersect(Test other)
Computes the intersection between two tests. |
java.lang.String |
toString()
|
Methods inherited from class org.basex.query.path.Test |
---|
eq, get, nsSensitive, sameAs |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final byte[] ln
Constructor Detail |
---|
public NameTest(boolean att)
att
- attribute flagpublic NameTest(QNm nm, Test.Mode t, boolean att)
nm
- namet
- type of name testatt
- attribute flagMethod Detail |
---|
public boolean compile(QueryContext ctx)
Test
compile
in class Test
ctx
- query context
public Test copy()
Test
copy
in class Test
public boolean eq(ANode node)
Test
eq
in class Test
node
- node to be checked
public boolean eq(QNm nm)
nm
- name
public java.lang.String toString()
toString
in class java.lang.Object
public Test intersect(Test other)
Test
intersect
in class Test
other
- other test
null
otherwise
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |