org.basex.query.path
Class DocTest

java.lang.Object
  extended by org.basex.query.path.Test
      extended by org.basex.query.path.DocTest

public final class DocTest
extends Test

Document kind test.

Author:
BaseX Team 2005-12, BSD License, Christian Gruen

Nested Class Summary
 
Nested classes/interfaces inherited from class org.basex.query.path.Test
Test.Mode
 
Field Summary
 
Fields inherited from class org.basex.query.path.Test
ATT, COM, DOC, ELM, mode, name, NOD, NSP, PI, TXT, type
 
Constructor Summary
DocTest(Test t)
          Constructor.
 
Method Summary
 Test copy()
          Copies this test.
 boolean eq(ANode node)
          Tests if the test yields true.
 Test intersect(Test other)
          Computes the intersection between two tests.
 boolean nsSensitive()
          Checks if this test is namespace-sensitive.
 java.lang.String toString()
           
 
Methods inherited from class org.basex.query.path.Test
compile, eq, get, sameAs
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DocTest

public DocTest(Test t)
Constructor.

Parameters:
t - child test (may be null)
Method Detail

copy

public Test copy()
Description copied from class: Test
Copies this test.

Specified by:
copy in class Test
Returns:
deep copy

eq

public boolean eq(ANode node)
Description copied from class: Test
Tests if the test yields true.

Specified by:
eq in class Test
Parameters:
node - node to be checked
Returns:
result of check

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

nsSensitive

public boolean nsSensitive()
Description copied from class: Test
Checks if this test is namespace-sensitive.

Overrides:
nsSensitive in class Test
Returns:
result of check

intersect

public Test intersect(Test other)
Description copied from class: Test
Computes the intersection between two tests.

Specified by:
intersect in class Test
Parameters:
other - other test
Returns:
intersection if it exists, null otherwise