SAP CL_ABAP_SYNTAX_TREE OO Class - Syntax Tree of ABAP Program
CL_ABAP_SYNTAX_TREE is a standard SAP object class available within R/3 SAP systems depending on your version and release level. You can view/maintain the class details by entering its name into the relevant SAP transactions such as SE24, SE80 or even SE84. Below is the documentation available for class CL_ABAP_SYNTAX_TREE including details of:
- Interface class implementations
- Inheritance details
- Methods defined within class ( including link to full details )
- Attributes ( including initial values )
- Class Events
Method list of CL_ABAP_SYNTAX_TREE SAP class
A method is a coding block that performs a certain procedure (i.e. ABAP functionality) on an object within the overall SAP class. In simple terms if the object is an SAP database table a method could be the procedure to add a record or to delete a record. If you are new to OO in many respects, the implementation of a method is similar to a function module and can be called in a very similar way using CALL METHOD.
Instead of "CALL FUNCTION", Methods are referenced using the following syntax: CALL METHOD =>methodname EXPORTING/IMPORTING...
Method Name | Description | Visability |
BUILD | Create Syntax Tree | Private |
CALL METHOD cl_abap_syntax_tree=>BUILD...more details | ||
CLASS_CONSTRUCTOR | Class Constructor | Public |
CALL METHOD cl_abap_syntax_tree=>CLASS_CONSTRUCTOR...more details | ||
CREATE | Create Syntax Tree | Public |
CALL METHOD cl_abap_syntax_tree=>CREATE...more details | ||
DESTRUCTOR | Destructor | Public |
CALL METHOD cl_abap_syntax_tree=>DESTRUCTOR...more details | ||
GET_CATEGORY | Get AST name indexes for category | Private |
CALL METHOD cl_abap_syntax_tree=>GET_CATEGORY...more details | ||
GET_NAME_FILTER | Get AST name index intervals | Public |
CALL METHOD cl_abap_syntax_tree=>GET_NAME_FILTER...more details | ||
| ||
GET_NODES | Find Nodes | Public |
CALL METHOD cl_abap_syntax_tree=>GET_NODES...more details | ||
INITIALIZE_CLASS | Initializes the kernel implementation | Private |
CALL METHOD cl_abap_syntax_tree=>INITIALIZE_CLASS...more details | ||
TO_XML | Serialize Syntax Tree as XML | Public |
CALL METHOD cl_abap_syntax_tree=>TO_XML...more details | ||
TO_XML_WITH_SRC | Serialize Syntax Tree with Source Code | Public |
CALL METHOD cl_abap_syntax_tree=>TO_XML_WITH_SRC...more details |
CL_ABAP_SYNTAX_TREE attributes
List of attributes within class CL_ABAP_CHAR_UTILITIES. These can be referenced using the following syntax CL_ABAP_CHAR_UTILITIES=>. Although depending on where you are inserting the ABAP code you do need to check if the attribute is public or private.
Name | Level | Description | Initial Value | Type | Visability |
AX_ANCESTOR | Constant | Reverse Axis: Real Parent Nodes | 5 | LIKE T_AXIS | Public |
AX_ANCESTOR_OR_SELF | Constant | Reverse Axis: Parent Node | 6 | LIKE T_AXIS | Public |
AX_CHILD | Constant | Forwards Axis: Direct Subnodes | 1 | LIKE T_AXIS | Public |
AX_DESCENDANT | Constant | Forwards Axis: Real Parent Nodes | 2 | LIKE T_AXIS | Public |
AX_DESCENDANT_OR_SELF | Constant | Forwards Axis: Subnodes | 3 | LIKE T_AXIS | Public |
AX_FOLLOWING | Constant | Forwards Axis: Subsequent Nodes | 8 | LIKE T_AXIS | Public |
AX_FOLLOWING_SIBLING | Constant | Forwards Axis: Subsequent Nodes on Same Level | 7 | LIKE T_AXIS | Public |
AX_PARENT | Constant | Reverse Axis: Direct Parent Node | 4 | LIKE T_AXIS | Public |
AX_PRECEDING | Constant | Reverse Axis: Predecessor Nodes | 10 | LIKE T_AXIS | Public |
AX_PRECEDING_SIBLING | Constant | Reverse Axis: Predecessor Nodes on Same Level | 9 | LIKE T_AXIS | Public |
CT_CONTROL_FLOW | Constant | Note Category: Control Flow | 'F' | LIKE T_CATEGORY | Public |
CT_INVOCATION | Constant | Node Category: Call | 'I' | LIKE T_CATEGORY | Public |
FM_EXCLUDE_SUB | Constant | Filter Mode (Only for Forwards Axes): Exclude Subtree | 3 | LIKE T_FILTERMODE | Public |
FM_INCLUDE_SUB | Constant | Filter Mode (Only for Forwards Axes): Include Subtree | 2 | LIKE T_FILTERMODE | Public |
FM_RECURSIVELY | Constant | Filter Mode: Apply Recursively | 1 | LIKE T_FILTERMODE | Public |
FO_AND | Constant | Filter Operator: AND | 'A' | LIKE T_LOGICAL_OP | Public |
FO_OR | Constant | Filter Operator: OR | 'O' | LIKE T_LOGICAL_OP | Public |
G_ASTNAMES | Static Attribute | Names in Tree | LIKE T_ASTNAMETAB | Public | |
M_C_PTR | Instance Attribute | Kernel Pointer | LIKE %_C_POINTER | Private | |
M_DIAGINFO | Instance Attribute | Diagnostic Information | LIKE T_DIAGINFO | Public | |
M_LEVEL_NODES | Instance Attribute | Nodes for INCLUDE and Macro Calls | LIKE ABAP_BOOL | Public | |
M_NODE_CNT | Instance Attribute | Number of Nodes in Tree | LIKE I | Public | |
M_STMT_INDEX_FROM | Instance Attribute | Index of First Statement | LIKE I | Public | |
M_STMT_INDEX_TO | Instance Attribute | Index of Last Statement | LIKE I | Public | |
RP_DIRTY | Constant | Grammar rule: Not covered or not covered in full | 48 | LIKE T_RULEPROP | Public |
RP_DIRTY_PART | Constant | Grammar rule: Not covered in full | 16 | LIKE T_RULEPROP | Public |
RP_DIRTY_UNCOVERED | Constant | Grammar rule: Not covered | 32 | LIKE T_RULEPROP | Public |
RP_ERRONEOUS | Constant | Error in AST node | 255 | LIKE T_RULEPROP | Public |
RP_IDENT | Constant | Grammar rule: Name | 1 | LIKE T_RULEPROP | Public |
RP_NONE | Constant | Grammar rule: No property | IS INITIAL | LIKE T_RULEPROP | Public |
RP_OBSOLETE | Constant | Grammar rule: Obsolete | 2 | LIKE T_RULEPROP | Public |
RP_PRIVATE | Constant | Grammar rule: Private | 4 | LIKE T_RULEPROP | Public |
RP_STATEMENT | Constant | Grammar rule: Statement | 8 | LIKE T_RULEPROP | Public |
RP_WRITE_ACCESS | Constant | Grammar rule: Write | 128 | LIKE T_RULEPROP | Public |
CL_ABAP_SYNTAX_TREE types
T_ASTNAME - AST Name <-> Index AssignmentT_ASTNAMETAB - AST Names <-> Indexes Assignment Table
T_ASTSRC - Source/AST Pair
T_ASTSRCTAB - Table of Source/AST Pairs
T_AXIS - Navigation Axis (AX_* Constants)
T_CATEGORIES - AST Categories (One or More CT_*)
T_CATEGORY - AST Node Category
T_CATEGORY_FILTER - AST Category Filter
T_CATEGORY_MEMBERS - AST name indexes in a category
T_DIAGINFO - Diagnostic Information
T_FILTERMODE - Filter Mode (FM_* Constants)
T_LOGICAL_OP - Logical Operator in Filter
T_NAMEINTVL - Interval of AST Name Indexes
T_NAMERANGE - Range Table of AST Names
T_NAME_FILTER - AST Name Index Filter
T_NODEINFO - AST Node Information
T_NODEINFOTAB - Table of AST Node Information
T_RULEPROP - Grammar Rule Property (RP_* Constants)
T_RULEPROP_FILTER - Rule Property Filter
Links to Related Class(s)
CL_ABAP_...Full list of available SAP object classes
Search for further information about these or an SAP related objects