Hierarchy
⤷
⤷
Meta Relationship - Used By
| # | Relationship type | Used by | Short Description | Created on |
|---|---|---|---|---|
| 1 | Inheritance (c INHERITING FROM c_ref) | CL_JS_PRETTY_PRINTER | Javascript Pretty Printer | 20000801 |
Properties
| Class | CL_PRETTY_PRINTER | |
| Short Description | Javascript Pretty Printer | |
| Super Class | ||
| Instantiability of a Class | 2 | Public |
| Final |
General Data
| Message Class | ||
| Program status | ||
| Category | 0 | |
| Package | SO2_TOOL | mySAP Application Server Pages: Tool |
| Created | 20000801 | SAP |
| Last change | 20000801 | SAP |
| Shared Memory-enabled | ||
| Fixed point arithmetic | ||
| Unicode checks active |
Forward declarations
| # | Type group / Object type | Type | Type Description |
|---|---|---|---|
| 1 | Forward declaration class (CLASS c DEFINITION DEFERRED) | Forward declaration class (CLASS c DEFINITION DEFERRED) |
Interfaces
Class CL_PRETTY_PRINTER has no interface implemented.
Friends
Class CL_PRETTY_PRINTER has no friend class.
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Instance attribute | Private | Type reference (TYPE) | I | 1 | Case Sensitive? | 20000801 | ||
| 2 | Instance attribute | Protected | Type reference (TYPE) | I | Number of Single Open Inverted Commas | 20000802 | |||
| 3 | Instance attribute | Protected | Type reference (TYPE) | I | Number of Double Open Inverted Commas | 20000802 | |||
| 4 | Instance attribute | Protected | Type reference (TYPE) | I | Standard Indentation | 20000801 | |||
| 5 | Instance attribute | Private | See coding | M_INDENT_TAB | 20000802 | ||||
| 6 | Instance attribute | Private | Type reference (TYPE) | STRING | Possible Character of Literal | 20000801 | |||
| 7 | Instance attribute | Private | Type reference (TYPE) | I | Maximum line length | 20000801 | |||
| 8 | Instance attribute | Private | Type reference (TYPE) | O2STRING_TABLE | Registered Tokens to be Processed | 20000802 | |||
| 9 | Instance attribute | Private | Type reference (TYPE) | STRING | JavaScript Source as String | 20000801 | |||
| 10 | Instance attribute | Private | Type reference (TYPE) | O2STRING_TABLE | O2: String Table | 20000801 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Instance method | Public | Constructor | Constructor | 20000801 | |
| 2 | Instance method | Protected | Method | Delete Line from m_source_tab and m_indent_tab | 20000802 | |
| 3 | Instance method | Protected | Method | Deletes the Transfered Line (Index) If Empty | 20000807 | |
| 4 | Instance method | Protected | Method | Gets Maximum Row Length | 20000803 | |
| 5 | Instance method | Protected | Method | Gets Number of Rows | 20000802 | |
| 6 | Instance method | Protected | Method | Gets m_source_tab | 20000802 | |
| 7 | Instance method | Protected | Method | Read String Token in Position p_pos | 20000801 | |
| 8 | Instance method | Protected | Method | Method for Processing Required Token | 20000802 | |
| 9 | Instance method | Protected | Method | Processes All Indentations with m_indent_tab | 20000801 | |
| 10 | Instance method | Protected | Method | Insert in m_source_tab and m_indent_tab | 20000802 | |
| 11 | Instance method | Protected | Method | Dsiplays Whether Language Is Case Sensitive | 20000802 | |
| 12 | Instance method | Protected | Method | 1: Transfered String Is Empty | 20000801 | |
| 13 | Instance method | Protected | Method | Is the String in the Transferred Position an Identifier? | 20000801 | |
| 14 | Instance method | Protected | Method | Checks Whether the Defined Position Lies In a Comment | 20000801 | |
| 15 | Instance method | Protected | Method | Checks Whether the Defined Position Lies In a String | 20000801 | |
| 16 | Instance method | Protected | Method | Carries out Is Checks | 20000801 | |
| 17 | Instance method | Protected | Method | Modify Index of Defined Line In m_indent_tab | 20000802 | |
| 18 | Instance method | Protected | Method | Modify Defined Line In m_source_tab | 20000802 | |
| 19 | Instance method | Protected | Method | Scan Source Table and Call Handle | 20000802 | |
| 20 | Instance method | Public | Method | Pretty Printer | 20000801 | |
| 21 | Instance method | Protected | Method | Splits Lines That Are Too Long | 20000801 | |
| 22 | Instance method | Protected | Method | Reads Indent | 20000802 | |
| 23 | Instance method | Protected | Method | Reads Line | 20000802 | |
| 24 | Instance method | Protected | Method | Deletes Table m_registered_tokens | 20000802 | |
| 25 | Instance method | Protected | Method | Register a New Token | 20000802 | |
| 26 | Instance method | Protected | Method | Searches In the Code table | 20000802 | |
| 27 | Instance method | Protected | Method | Transfers the Source Code To a Table | 20000801 | |
| 28 | Instance method | Protected | Method | Transfered String Appears in Own Row | 20000801 |
Events
Class CL_PRETTY_PRINTER has no event.
Types
| # | Type | Visibility | Typing | Associated Type | Description | Created on | Type Source |
|---|---|---|---|---|---|---|---|
| 1 | POSITION | Protected | See coding | 20000801 | |
Method Signatures
Method CONSTRUCTOR Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | P_CASE_SENSITIVE | Value transfer | Type reference (TYPE) | I | 1 | 20000802 | |||
| 2 | P_INDENT | Value transfer | Type reference (TYPE) | I | 2 | 20000801 | |||
| 3 | P_LIT | Value transfer | Type reference (TYPE) | STRING | 20000801 | ||||
| 4 | P_MAX_ROW_LENGTH | Value transfer | Type reference (TYPE) | I | 100 | 20000801 | |||
| 5 | P_SOURCE_STRING | Call by reference | Type reference (TYPE) | STRING | 20000801 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 20000801 |
Method DELETE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | P_TABIX | Value transfer | Type reference (TYPE) | I | 20000802 |
Method DELETE on class CL_PRETTY_PRINTER has no exception.
Method DELETE_IF_EMPTY Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | P_TABIX | Value transfer | Type reference (TYPE) | I | 20000807 |
Method DELETE_IF_EMPTY on class CL_PRETTY_PRINTER has no exception.
Method GET_MAX_ROW_LENGTH Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | P_RES | Value transfer | Type reference (TYPE) | I | 20000803 |
Method GET_MAX_ROW_LENGTH on class CL_PRETTY_PRINTER has no exception.
Method GET_ROW_COUNT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | P_RES | Value transfer | Type reference (TYPE) | I | 20000802 |
Method GET_ROW_COUNT on class CL_PRETTY_PRINTER has no exception.
Method GET_SOURCE_TABLE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | P_TAB | Value transfer | Type reference (TYPE) | O2STRING_TABLE | O2: Tabelle von Strings | 20000802 |
Method GET_SOURCE_TABLE on class CL_PRETTY_PRINTER has no exception.
Method GET_TOKEN Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | P_POS | Call by reference | Type reference (TYPE) | POSITION | 20000801 | ||||
| 2 | P_RES | Value transfer | Type reference (TYPE) | STRING | 20000801 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 20000801 |
Method HANDLE_TOKEN Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | P_INDENT | Call by reference | Type reference (TYPE) | I | 0 | 20000802 | |||
| 2 | P_INDENT_IMMEDIATE | Call by reference | Type reference (TYPE) | I | 20000802 | ||||
| 3 | P_IN_STRING | Call by reference | Type reference (TYPE) | I | 0 | 20000802 | |||
| 4 | P_POS | Call by reference | Type reference (TYPE) | POSITION | 20000802 | ||||
| 5 | P_TOKEN | Value transfer | Type reference (TYPE) | STRING | 20000802 |
Method HANDLE_TOKEN on class CL_PRETTY_PRINTER has no exception.
Method INDENT_ALL Signature
Method INDENT_ALL on class CL_PRETTY_PRINTER has no parameter.
Method INDENT_ALL on class CL_PRETTY_PRINTER has no exception.
Method INSERT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | P_IND | Value transfer | Type reference (TYPE) | I | 0 | 20000802 | |||
| 2 | P_LINE | Value transfer | Type reference (TYPE) | STRING | 20000802 | ||||
| 3 | P_TABIX | Value transfer | Type reference (TYPE) | I | 20000802 |
Method INSERT on class CL_PRETTY_PRINTER has no exception.
Method IS_CASE_SENSITIVE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | P_RES | Value transfer | Type reference (TYPE) | I | 20000803 |
Method IS_CASE_SENSITIVE on class CL_PRETTY_PRINTER has no exception.
Method IS_EMPTY Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | P_RES | Value transfer | Type reference (TYPE) | I | 20000801 | ||||
| 2 | P_STRING | Value transfer | Type reference (TYPE) | STRING | 20000801 |
Method IS_EMPTY on class CL_PRETTY_PRINTER has no exception.
Method IS_IDENTIFIER Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | P_POS | Value transfer | Type reference (TYPE) | POSITION | 20000801 | ||||
| 2 | P_RES | Value transfer | Type reference (TYPE) | I | 20000801 | ||||
| 3 | P_STRING | Value transfer | Type reference (TYPE) | STRING | 20000801 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 20000801 |
Method IS_INSIDE_COMMENT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | P_POS | Value transfer | Type reference (TYPE) | POSITION | 20000801 | ||||
| 2 | P_RES | Value transfer | Type reference (TYPE) | I | 20000801 | ||||
| 3 | P_TABIX_START | Value transfer | Type reference (TYPE) | I | 1 | 20000801 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 20000801 |
Method IS_INSIDE_STRING Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | P_POS | Value transfer | Type reference (TYPE) | POSITION | 20000801 | ||||
| 2 | P_RES | Value transfer | Type reference (TYPE) | I | 20000801 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 20000801 |
Method IS_NOT_INSIDE_SSC Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | P_POS | Value transfer | Type reference (TYPE) | POSITION | 20000801 | ||||
| 2 | P_RES | Value transfer | Type reference (TYPE) | I | 20000801 | ||||
| 3 | P_STRING | Value transfer | Type reference (TYPE) | STRING | 20000801 | ||||
| 4 | P_TABIX_START | Value transfer | Type reference (TYPE) | I | 20000801 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 20000801 |
Method MODIFY_INDENT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | P_IND | Value transfer | Type reference (TYPE) | I | 20000802 | ||||
| 2 | P_TABIX | Value transfer | Type reference (TYPE) | I | 20000802 |
Method MODIFY_INDENT on class CL_PRETTY_PRINTER has no exception.
Method MODIFY_LINE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | P_LINE | Value transfer | Type reference (TYPE) | STRING | 20000802 | ||||
| 2 | P_TABIX | Value transfer | Type reference (TYPE) | I | 20000802 |
Method MODIFY_LINE on class CL_PRETTY_PRINTER has no exception.
Method PARSE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | P_INDENT | Value transfer | Type reference (TYPE) | I | 0 | 1: Einzug wird angepaßt | 20000802 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 20000803 |
Method PRETTY_PRINT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | P_TAB | Call by reference | Type reference (TYPE) | O2STRING_TABLE | 20000801 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 20000801 |
Method PROCESS_ROW_LENGTH Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | P_DELIMITA_LIST | Value transfer | Type reference (TYPE) | STRING | 20000801 | ||||
| 2 | P_ROW_COMMENT | Value transfer | Type reference (TYPE) | STRING | 20000801 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 20000801 |
Method READ_INDENT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | P_RES | Value transfer | Type reference (TYPE) | I | 20000802 | ||||
| 2 | P_TABIX | Value transfer | Type reference (TYPE) | I | 20000802 |
Method READ_INDENT on class CL_PRETTY_PRINTER has no exception.
Method READ_LINE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | P_RES | Value transfer | Type reference (TYPE) | STRING | 20000802 | ||||
| 2 | P_TABIX | Value transfer | Type reference (TYPE) | I | 20000802 |
Method READ_LINE on class CL_PRETTY_PRINTER has no exception.
Method REFRESH_REGISTERED_TOKENS Signature
Method REFRESH_REGISTERED_TOKENS on class CL_PRETTY_PRINTER has no parameter.
Method REFRESH_REGISTERED_TOKENS on class CL_PRETTY_PRINTER has no exception.
Method REGISTER_TOKEN Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | P_TOKEN | Value transfer | Type reference (TYPE) | STRING | 20000802 |
Method REGISTER_TOKEN on class CL_PRETTY_PRINTER has no exception.
Method SEARCH Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | P_END | Value transfer | Type reference (TYPE) | I | 0 | 20000802 | |||
| 2 | P_FOUND | Value transfer | Type reference (TYPE) | I | 0: gefunden | 20000802 | |||
| 3 | P_POS | Value transfer | Type reference (TYPE) | POSITION | 20000802 | ||||
| 4 | P_START | Value transfer | Type reference (TYPE) | I | 1 | 20000802 | |||
| 5 | P_STRING | Value transfer | Type reference (TYPE) | STRING | 20000802 |
Method SEARCH on class CL_PRETTY_PRINTER has no exception.
Method STRING_TO_TABLE Signature
Method STRING_TO_TABLE on class CL_PRETTY_PRINTER has no parameter.
Method STRING_TO_TABLE on class CL_PRETTY_PRINTER has no exception.
Method STR_IN_OWN_ROW Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | P_INDENT | Value transfer | Type reference (TYPE) | I | 20000801 | ||||
| 2 | P_POS | Call by reference | Type reference (TYPE) | POSITION | 20000801 | ||||
| 3 | P_STRING | Value transfer | Type reference (TYPE) | STRING | 20000801 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 20000801 |
History
| Last changed by/on | SAP | 20000801 |
| SAP Release Created in | 50A |