Package org.basex.query.expr.path
Class KindTest
java.lang.Object
org.basex.query.expr.ExprInfo
org.basex.query.expr.path.Test
org.basex.query.expr.path.KindTest
Simple node kind test.
- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final KindTestGeneric attribute node test.static final KindTestGeneric comment node test.static final KindTestGeneric document node test.static final KindTestGeneric element node test.static final KindTestGeneric node test.static final KindTestGeneric namespace node test.static final KindTestGeneric PI node test.static final KindTestGeneric text node test. -
Method Summary
Modifier and TypeMethodDescriptionfinal KindTestcopy()Copies this test.final booleanstatic KindTestReturns a test instance.booleaninstanceOf(Test test) Checks if the current test is an instance of the specified test.Computes the intersection between two tests.booleanChecks if the specified node matches the test.toString(boolean full) Returns a string representation of this test.Methods inherited from class org.basex.query.expr.path.Test
get, get, get, matches, noMatches, plan, planMethods inherited from class org.basex.query.expr.ExprInfo
description, toErrorString, toString
-
Field Details
-
DOC
Generic document node test. -
ELM
Generic element node test. -
ATT
Generic attribute node test. -
PI
Generic PI node test. -
TXT
Generic text node test. No otherNodeType.TEXTtests exist. -
COM
Generic comment node test. No otherNodeType.COMMENTtests exist. -
NSP
Generic namespace node test. No otherNodeType.COMMENTtests exist. -
NOD
Generic node test. No otherNodeType.NODEtests exist.
-
-
Method Details
-
get
Returns a test instance.- Parameters:
type- node type- Returns:
- kind test
-
copy
Description copied from class:TestCopies this test. -
matches
Description copied from class:TestChecks if the specified node matches the test. -
instanceOf
Description copied from class:TestChecks if the current test is an instance of the specified test.- Overrides:
instanceOfin classTest- Parameters:
test- test to be checked- Returns:
- result of check
-
intersect
Description copied from class:TestComputes the intersection between two tests. -
equals
-
toString
Description copied from class:TestReturns a string representation of this test.
-