Namespace: Consultingwerk.Studio
Class 
CaseStatementParser Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object

File:CaseStatementParser
Purpose:A Parser for CASE Statements
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Mon Jan 28 10:10:57 CET 2013
Notes:Currently the Parser does not support WHEN ... OR WHEN ... style
of options.



Top Method Summary
Options Name Purpose
+ org.prorefactor.core.JPNode GetEndCaseNode () Returns the reference to the JPNode representing the END or END CASE Statement
+ Consultingwerk.Studio.ListCaseWhen GetListCaseWhen () Returns the List of the CaseWhen optins for the CASE Statement
+ org.prorefactor.core.JPNode GetOtherwiseNode () Returns the reference to the JPNode representing the OTHERWISE keyword *
# ParseWhenBlock (JPNode, ListCaseWhen) Parses a WHEN option of a CASE Statement

Top Constructor Summary
Options Name Purpose
+ CaseStatementParser (JPNode) Constructor for the CaseStatementParser class


Method Detail
Top

PUBLIC org.prorefactor.core.JPNode GetEndCaseNode ()

Purpose: Returns the reference to the JPNode representing the END or END CASE
Statement
Notes:

Returns org.prorefactor.core.JPNode
The reference to the JPNode representing the END or END CASE Statement
Top

PUBLIC Consultingwerk.Studio.ListCaseWhen GetListCaseWhen ()

Purpose: Returns the List of the CaseWhen optins for the CASE Statement
Notes:

Returns Consultingwerk.Studio.ListCaseWhen
The List of the CaseWhen options of the CASE Statement
Top

PUBLIC org.prorefactor.core.JPNode GetOtherwiseNode ()

Purpose: Returns the reference to the JPNode representing the OTHERWISE keyword
Notes:

Returns org.prorefactor.core.JPNode
The reference to the JPNode representing the OTHERWISE keyword
Top

PROTECTED ParseWhenBlock (JPNode, ListCaseWhen)

Purpose: Parses a WHEN option of a CASE Statement
Notes: Removes quotes from the Expression following the WHEN keyword

Parameters:
poWhenNode org.prorefactor.core.JPNode
The JPNode representing the WHEN key word
poList Consultingwerk.Studio.ListCaseWhen
The List of CaseWhen options


Constructor Detail
Top

PUBLIC CaseStatementParser (JPNode)

Purpose: Constructor for the CaseStatementParser class
Notes:

Parameters:
poNode org.prorefactor.core.JPNode
The reference to the JPNode to parse


©2006-2023 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       08.12.2024 13:22:14