IRISLIB database
Parser Class Reference

Contains the DeepSee MDX query parser and related APIs. More...

Inheritance diagram for Parser:
Collaboration diagram for Parser:

Public Attributes

 Bookmark
 Current bookmark position within query text. More...
 
 CubeName
 Cubename within the current query. More...
 
 InSearch
 Indicates the current tokens are within the SEARCH context. More...
 
 LastToken
 Most recently parsed token (used for error reporting). More...
 
 Position
 Current position within query text. More...
 
 Query
 The query object this parser is constructing. More...
 
 Text
 Query text. More...
 
 Trace
 Debug flag. More...
 

Private Member Functions

_.Library.Status ParseWITH (_.Library.String pMode)
 Parse an MDX WITH statement. More...
 
_.Library.Status ValidateText (_.DeepSee.Query.query pQuery, pText)
 Perform initial checks on the MDX text itself to see if there are obvious errors that can be reported. More...
 

Static Private Member Functions

_.Library.String BuildEscapedSpec (_.Library.List pIdentifierList, _.Library.Status pStatus, _.Library.Boolean pIncludeKey)
 Return a spec with escaped identifiers, translating each "]" into a. More...
 

Additional Inherited Members

- Public Member Functions inherited from RegisteredObject
_.Library.Status OnAddToSaveSet (_.Library.Integer depth, _.Library.Integer insert, _.Library.Integer callcount)
 This callback method is invoked when the current object is added to the SaveSet,. More...
 
_.Library.Status OnClose ()
 This callback method is invoked by the <METHOD>Close</METHOD> method to. More...
 
_.Library.Status OnConstructClone (_.Library.RegisteredObject object, _.Library.Boolean deep, _.Library.String cloned)
 This callback method is invoked by the <METHOD>ConstructClone</METHOD> method to. More...
 
_.Library.Status OnNew ()
 This callback method is invoked by the <METHOD>New</METHOD> method to. More...
 
_.Library.Status OnValidateObject ()
 This callback method is invoked by the <METHOD>ValidateObject</METHOD> method to. More...
 
- Static Public Attributes inherited from RegisteredObject
 CAPTION = None
 Optional name used by the Form Wizard for a class when generating forms. More...
 
 JAVATYPE = None
 The Java type to be used when exported.
 
 PROPERTYVALIDATION = None
 This parameter controls the default validation behavior for the object. More...
 

Detailed Description

Contains the DeepSee MDX query parser and related APIs.


This class contains no publicly accessible code.

Member Function Documentation

◆ BuildEscapedSpec()

_.Library.String BuildEscapedSpec ( _.Library.List  pIdentifierList,
_.Library.Status  pStatus,
_.Library.Boolean  pIncludeKey 
)
staticprivate

Return a spec with escaped identifiers, translating each "]" into a.

"]]" to escape the closing quote. The argument pIdentifierList may be a list of any length. The method will terminate construction upon encountering the first null entry in the list.
The pIncludeKey flag can be used to add a "&[]"-enclosed key as the final pice of the spec generated from the pIdentifierList. By default the method will asume no key is included in the list.

◆ ParseWITH()

_.Library.Status ParseWITH ( _.Library.String  pMode)
private

Parse an MDX WITH statement.

If pMode is "with", then this is a WITH clause of a query; If pMode is "set" or "member", then this is a CREATE statement;

◆ ValidateText()

_.Library.Status ValidateText ( _.DeepSee.Query.query  pQuery,
  pText 
)
private

Perform initial checks on the MDX text itself to see if there are obvious errors that can be reported.

without further processing.

Member Data Documentation

◆ Bookmark

Bookmark

Current bookmark position within query text.

 

◆ CubeName

CubeName

Cubename within the current query.

 

◆ InSearch

InSearch

Indicates the current tokens are within the SEARCH context.

 

◆ LastToken

LastToken

Most recently parsed token (used for error reporting).

Container for the last complete token.

 

This is used for looking back when

there are multiple tokens in a succession.  

◆ Position

Position

Current position within query text.

Current position in the string.

 

◆ Query

Query

The query object this parser is constructing.

 

◆ Text

Text

Query text.

 

◆ Trace

Trace

Debug flag.