SAP ABAP Class CL_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 - 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 CL_ABAP_CHAR_UTILITIES 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 M_CASE_SENSITIVE Instance attribute Private Type reference (TYPE) I 1 Case Sensitive? 20000801
2 M_HOCH1COMMA_COUNT Instance attribute Protected Type reference (TYPE) I Number of Single Open Inverted Commas 20000802
3 M_HOCH2COMMA_COUNT Instance attribute Protected Type reference (TYPE) I Number of Double Open Inverted Commas 20000802
4 M_INDENT Instance attribute Protected Type reference (TYPE) I Standard Indentation 20000801
5 M_INDENT_TAB Instance attribute Private See coding M_INDENT_TAB 20000802
6 M_LIT Instance attribute Private Type reference (TYPE) STRING Possible Character of Literal 20000801
7 M_MAX_ROW_LENGTH Instance attribute Private Type reference (TYPE) I Maximum line length 20000801
8 M_REGISTERED_TOKENS Instance attribute Private Type reference (TYPE) O2STRING_TABLE Registered Tokens to be Processed 20000802
9 M_SOURCE_STRING Instance attribute Private Type reference (TYPE) STRING JavaScript Source as String 20000801
10 M_SOURCE_TAB Instance attribute Private Type reference (TYPE) O2STRING_TABLE O2: String Table 20000801
Methods
# Method Level Visibility Method type Description Created on
1 CONSTRUCTOR Instance method Public Constructor Constructor 20000801
2 DELETE Instance method Protected Method Delete Line from m_source_tab and m_indent_tab 20000802
3 DELETE_IF_EMPTY Instance method Protected Method Deletes the Transfered Line (Index) If Empty 20000807
4 GET_MAX_ROW_LENGTH Instance method Protected Method Gets Maximum Row Length 20000803
5 GET_ROW_COUNT Instance method Protected Method Gets Number of Rows 20000802
6 GET_SOURCE_TABLE Instance method Protected Method Gets m_source_tab 20000802
7 GET_TOKEN Instance method Protected Method Read String Token in Position p_pos 20000801
8 HANDLE_TOKEN Instance method Protected Method Method for Processing Required Token 20000802
9 INDENT_ALL Instance method Protected Method Processes All Indentations with m_indent_tab 20000801
10 INSERT Instance method Protected Method Insert in m_source_tab and m_indent_tab 20000802
11 IS_CASE_SENSITIVE Instance method Protected Method Dsiplays Whether Language Is Case Sensitive 20000802
12 IS_EMPTY Instance method Protected Method 1: Transfered String Is Empty 20000801
13 IS_IDENTIFIER Instance method Protected Method Is the String in the Transferred Position an Identifier? 20000801
14 IS_INSIDE_COMMENT Instance method Protected Method Checks Whether the Defined Position Lies In a Comment 20000801
15 IS_INSIDE_STRING Instance method Protected Method Checks Whether the Defined Position Lies In a String 20000801
16 IS_NOT_INSIDE_SSC Instance method Protected Method Carries out Is Checks 20000801
17 MODIFY_INDENT Instance method Protected Method Modify Index of Defined Line In m_indent_tab 20000802
18 MODIFY_LINE Instance method Protected Method Modify Defined Line In m_source_tab 20000802
19 PARSE Instance method Protected Method Scan Source Table and Call Handle 20000802
20 PRETTY_PRINT Instance method Public Method Pretty Printer 20000801
21 PROCESS_ROW_LENGTH Instance method Protected Method Splits Lines That Are Too Long 20000801
22 READ_INDENT Instance method Protected Method Reads Indent 20000802
23 READ_LINE Instance method Protected Method Reads Line 20000802
24 REFRESH_REGISTERED_TOKENS Instance method Protected Method Deletes Table m_registered_tokens 20000802
25 REGISTER_TOKEN Instance method Protected Method Register a New Token 20000802
26 SEARCH Instance method Protected Method Searches In the Code table 20000802
27 STRING_TO_TABLE Instance method Protected Method Transfers the Source Code To a Table 20000801
28 STR_IN_OWN_ROW 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 Importing P_CASE_SENSITIVE Value transfer Type reference (TYPE) I 1 20000802
2 Importing P_INDENT Value transfer Type reference (TYPE) I 2 20000801
3 Importing P_LIT Value transfer Type reference (TYPE) STRING 20000801
4 Importing P_MAX_ROW_LENGTH Value transfer Type reference (TYPE) I 100 20000801
5 Importing P_SOURCE_STRING Call by reference Type reference (TYPE) STRING 20000801
# Exception Resumable Description Created on
1 ILLEGAL_RANGE 20000801

Method DELETE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing 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 Importing 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 Returning 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 Returning 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 Returning 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 Changing P_POS Call by reference Type reference (TYPE) POSITION 20000801
2 Exporting P_RES Value transfer Type reference (TYPE) STRING 20000801
# Exception Resumable Description Created on
1 ILLEGAL_RANGE 20000801

Method HANDLE_TOKEN Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing P_INDENT Call by reference Type reference (TYPE) I 0 20000802
2 Exporting P_INDENT_IMMEDIATE Call by reference Type reference (TYPE) I 20000802
3 Changing P_IN_STRING Call by reference Type reference (TYPE) I 0 20000802
4 Changing P_POS Call by reference Type reference (TYPE) POSITION 20000802
5 Importing 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 Importing P_IND Value transfer Type reference (TYPE) I 0 20000802
2 Importing P_LINE Value transfer Type reference (TYPE) STRING 20000802
3 Importing 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 Returning 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 Returning P_RES Value transfer Type reference (TYPE) I 20000801
2 Importing 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 Importing P_POS Value transfer Type reference (TYPE) POSITION 20000801
2 Returning P_RES Value transfer Type reference (TYPE) I 20000801
3 Importing P_STRING Value transfer Type reference (TYPE) STRING 20000801
# Exception Resumable Description Created on
1 ILLEGAL_RANGE 20000801

Method IS_INSIDE_COMMENT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing P_POS Value transfer Type reference (TYPE) POSITION 20000801
2 Returning P_RES Value transfer Type reference (TYPE) I 20000801
3 Importing P_TABIX_START Value transfer Type reference (TYPE) I 1 20000801
# Exception Resumable Description Created on
1 ILLEGAL_RANGE 20000801

Method IS_INSIDE_STRING Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing P_POS Value transfer Type reference (TYPE) POSITION 20000801
2 Returning P_RES Value transfer Type reference (TYPE) I 20000801
# Exception Resumable Description Created on
1 ILLEGAL_RANGE 20000801

Method IS_NOT_INSIDE_SSC Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing P_POS Value transfer Type reference (TYPE) POSITION 20000801
2 Returning P_RES Value transfer Type reference (TYPE) I 20000801
3 Importing P_STRING Value transfer Type reference (TYPE) STRING 20000801
4 Importing P_TABIX_START Value transfer Type reference (TYPE) I 20000801
# Exception Resumable Description Created on
1 ILLEGAL_RANGE 20000801

Method MODIFY_INDENT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing P_IND Value transfer Type reference (TYPE) I 20000802
2 Importing 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 Importing P_LINE Value transfer Type reference (TYPE) STRING 20000802
2 Importing 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 Importing P_INDENT Value transfer Type reference (TYPE) I 0 1: Einzug wird angepaßt 20000802
# Exception Resumable Description Created on
1 ILLEGAL_RANGE 20000803

Method PRETTY_PRINT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting P_TAB Call by reference Type reference (TYPE) O2STRING_TABLE 20000801
# Exception Resumable Description Created on
1 ILLEGAL_RANGE 20000801

Method PROCESS_ROW_LENGTH Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing P_DELIMITA_LIST Value transfer Type reference (TYPE) STRING 20000801
2 Importing P_ROW_COMMENT Value transfer Type reference (TYPE) STRING 20000801
# Exception Resumable Description Created on
1 ILLEGAL_RANGE 20000801

Method READ_INDENT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning P_RES Value transfer Type reference (TYPE) I 20000802
2 Importing 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 Returning P_RES Value transfer Type reference (TYPE) STRING 20000802
2 Importing 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 Importing 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 Importing P_END Value transfer Type reference (TYPE) I 0 20000802
2 Exporting P_FOUND Value transfer Type reference (TYPE) I 0: gefunden 20000802
3 Exporting P_POS Value transfer Type reference (TYPE) POSITION 20000802
4 Importing P_START Value transfer Type reference (TYPE) I 1 20000802
5 Importing 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 Importing P_INDENT Value transfer Type reference (TYPE) I 20000801
2 Changing P_POS Call by reference Type reference (TYPE) POSITION 20000801
3 Importing P_STRING Value transfer Type reference (TYPE) STRING 20000801
# Exception Resumable Description Created on
1 ILLEGAL_RANGE 20000801
History
Last changed by/on SAP  20000801 
SAP Release Created in 50A