Package org.basex.query.expr.path
Class NameTest
java.lang.Object
org.basex.query.expr.ExprInfo
org.basex.query.expr.path.Test
org.basex.query.expr.path.NameTest
Name test.
- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()Copies this test.booleanbooleaninstanceOf(Test test) Checks if the current test is an instance of the specified test.Computes the intersection between two tests.booleanChecks if the specified name matches the test.booleanChecks if the specified node matches the test.booleanChecks if evaluation can be dropped.part()Returns the name part relevant at runtime.toString(boolean full) Returns a string representation of this test.Methods inherited from class org.basex.query.expr.ExprInfo
description, toErrorString, toString
-
Field Details
-
qname
QName test. -
part
Part of name to be tested. -
local
public final byte[] localLocal name.
-
-
Constructor Details
-
NameTest
Convenience constructor for element tests.- Parameters:
name- node name
-
NameTest
Constructor.- Parameters:
qname- namepart- part of name to be testedtype- node typedefaultNs- default element namespace (used for optimizations, can benull)
-
-
Method Details
-
noMatches
Description copied from class:TestChecks if evaluation can be dropped. -
copy
Description copied from class:TestCopies this test. -
matches
Description copied from class:TestChecks if the specified node matches the test. -
matches
Checks if the specified name matches the test.- Parameters:
qName- name- Returns:
- result of check
-
part
Returns the name part relevant at runtime.- Returns:
- name part
-
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.
-