Class UnionTest


public final class UnionTest extends Test
Union node test.
Author:
BaseX Team 2005-21, BSD License, Christian Gruen
  • Method Details

    • matches

      public boolean matches(ANode node)
      Description copied from class: Test
      Checks if the specified node matches the test.
      Specified by:
      matches in class Test
      Parameters:
      node - node to be checked
      Returns:
      result of check
    • copy

      public Test copy()
      Description copied from class: Test
      Copies this test.
      Specified by:
      copy in class Test
      Returns:
      deep copy
    • instanceOf

      public boolean instanceOf(Test test)
      Description copied from class: Test
      Checks if the current test is an instance of the specified test.
      Overrides:
      instanceOf in class Test
      Parameters:
      test - test to be checked
      Returns:
      result of check
    • intersect

      public Test intersect(Test test)
      Description copied from class: Test
      Computes the intersection between two tests.
      Specified by:
      intersect in class Test
      Parameters:
      test - other test
      Returns:
      intersection if it exists, null otherwise
    • toString

      public String toString(boolean full)
      Description copied from class: Test
      Returns a string representation of this test.
      Specified by:
      toString in class Test
      Parameters:
      full - include node type
      Returns:
      string