Class ParseRegion.RegionAndSource

  • Enclosing class:
    ParseRegion

    public static class ParseRegion.RegionAndSource
    extends java.lang.Object
    Combination of a region within an MDX statement with the source text of the whole MDX statement.

    Useful for reporting errors. For example, the error in the statement

     SELECT {[Measures].[Units In Stock]} ON COLUMNS
     FROM [Sales]
     
    has source "SELECT {[Measures].[Units In Stock]} ON COLUMNS\nFROM [Sales]" and region [1:9, 1:34].
    • Constructor Summary

      Constructors 
      Constructor Description
      RegionAndSource​(java.lang.String source, ParseRegion region)
      Creates a RegionAndSource.
    • Method Summary

      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • source

        public final java.lang.String source
    • Constructor Detail

      • RegionAndSource

        public RegionAndSource​(java.lang.String source,
                               ParseRegion region)
        Creates a RegionAndSource.
        Parameters:
        source - Source MDX code
        region - Coordinates of region within MDX code