SAP ABAP Class CL_JS_PRETTY_PRINTER (Javascript Pretty Printer)
Hierarchy
☛
SAP_BASIS (Software Component) SAP Basis Component
⤷
BC-DWB-TOO-WAB (Application Component) Web Application Builder
⤷
SO2_TOOL (Package) mySAP Application Server Pages: Tool
⤷
⤷
Meta Relationship - Using
| # | Relationship type | Using | Short Description | Created on |
|---|---|---|---|---|
| 1 | Inheritance (c INHERITING FROM c_ref) | CL_PRETTY_PRINTER | Javascript Pretty Printer | 20000801 |
Properties
| Class | CL_JS_PRETTY_PRINTER | |
| Short Description | Javascript Pretty Printer | |
| Super Class | CL_PRETTY_PRINTER | Javascript Pretty Printer |
| 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_JS_PRETTY_PRINTER has no interface implemented.
Friends
Class CL_JS_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 | Insert Function Comment Header | 20000801 | |||
| 2 | Instance attribute | Private | Type reference (TYPE) | I | Number of Empty Rows Before Function | 20000801 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Instance method | Public | Constructor | Constructor | 20000801 | |
| 2 | Instance method | Private | Method | Finds the Corresponding Braces | 20000803 | |
| 3 | Instance method | Private | Method | Indentations for If Structure | 20000801 | |
| 4 | Instance method | Private | Method | Indentations for Control Structures | 20000801 | |
| 5 | Instance method | Private | Method | Indentations for Switch Structure | 20000801 | |
| 6 | Instance method | Private | Method | Inserts Empty Rows Before Function Header | 20000802 | |
| 7 | Instance method | Private | Method | Skips a Statement Block | 20000803 | |
| 8 | Instance method | Private | Method | Skips Comment Lines | 20000801 | |
| 9 | Instance method | Private | Method | Skip Statement | 20000803 | |
| 10 | Instance method | Private | Method | All Statements are Contained in a Separate Line | 20000801 |
Events
Class CL_JS_PRETTY_PRINTER has no event.
Types
Class CL_JS_PRETTY_PRINTER has no local type.
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_COMMENT_FUNC | Value transfer | Type reference (TYPE) | I | 0 | 1: Kommentarheader einfügen | 20000801 | ||
| 3 | P_EMPTY_ROWS_BEFORE_FUNC | Value transfer | Type reference (TYPE) | I | -1 | -1: keine Änderung. | 20000801 | ||
| 4 | P_INDENT | Value transfer | Type reference (TYPE) | I | 20000801 | ||||
| 5 | P_MAX_ROW_LENGTH | Value transfer | Type reference (TYPE) | I | 100 | 20000801 | |||
| 6 | P_SOURCE_STRING | Call by reference | Type reference (TYPE) | STRING | 20000801 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 20000801 |
Method GET_MATCHING_BRACES Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | P_POS | Value transfer | Type reference (TYPE) | POSITION | 20000803 | ||||
| 2 | P_RES | Value transfer | Type reference (TYPE) | POSITION | 20000803 |
Method GET_MATCHING_BRACES on class CL_JS_PRETTY_PRINTER has no exception.
Method INDENT_IF 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 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 20000801 |
Method INDENT_STMT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | P_OBLIGATORY_BRACES | Value transfer | Type reference (TYPE) | I | 20000801 | ||||
| 2 | P_POS | Call by reference | Type reference (TYPE) | POSITION | 20000801 | ||||
| 3 | P_STMT_NAME | Value transfer | Type reference (TYPE) | STRING | 20000801 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 20000801 |
Method INDENT_SWITCH 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 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 20000801 |
Method INSERT_EMPTY_ROWS_BEFORE_FUNC 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 | 20000802 |
Method INSERT_EMPTY_ROWS_BEFORE_FUNC on class CL_JS_PRETTY_PRINTER has no exception.
Method SKIP_BLOCK Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | P_FIRST_TOKEN | Value transfer | Type reference (TYPE) | STRING | 20000803 | ||||
| 2 | P_POS | Call by reference | Type reference (TYPE) | POSITION | 20000803 |
Method SKIP_BLOCK on class CL_JS_PRETTY_PRINTER has no exception.
Method SKIP_COMMENTS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | P_COMMENT | Value transfer | Type reference (TYPE) | STRING | 20000801 | ||||
| 2 | P_POS | Call by reference | Type reference (TYPE) | POSITION | 20000801 |
Method SKIP_COMMENTS on class CL_JS_PRETTY_PRINTER has no exception.
Method SKIP_STMT 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 | 20000803 | ||||
| 2 | P_STMT | Value transfer | Type reference (TYPE) | STRING | 20000803 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 20000803 |
Method STMT_IN_OWN_ROW 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 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 20000801 |
History
| Last changed by/on | SAP | 20000801 |
| SAP Release Created in | 50A |