/AWS1/CL_CWSCODELOCATION¶
Identifies a code location to instrument, including the programming language, code unit, class, method, file path, and optional line number.
CONSTRUCTOR¶
IMPORTING¶
Required arguments:¶
iv_language TYPE /AWS1/CWSPROGRAMMINGLANGUAGE /AWS1/CWSPROGRAMMINGLANGUAGE¶
The programming language for this instrumentation point, such as Java, Python, or JavaScript.
iv_filepath TYPE /AWS1/CWSSTRING /AWS1/CWSSTRING¶
The source file path relative to the project or source root, such as
src/payment/PaymentProcessor.javaorsrc/payment/PaymentProcessor.py.
Optional arguments:¶
iv_codeunit TYPE /AWS1/CWSSTRING /AWS1/CWSSTRING¶
The package, module, or namespace that contains the target code, for example
com.amazon.paymentorpayment_service.
iv_classname TYPE /AWS1/CWSSTRING /AWS1/CWSSTRING¶
The class or type name that contains the method. This is required for Java and optional for Python module-level functions.
iv_methodname TYPE /AWS1/CWSSTRING /AWS1/CWSSTRING¶
The method or function name to instrument, such as
validateCreditCardorinit.
iv_linenumber TYPE /AWS1/CWSINTEGER /AWS1/CWSINTEGER¶
The line number to instrument. Provide this to disambiguate overloaded methods and to target a specific line when needed.
Queryable Attributes¶
Language¶
The programming language for this instrumentation point, such as Java, Python, or JavaScript.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_LANGUAGE() |
Getter for LANGUAGE, with configurable default |
ASK_LANGUAGE() |
Getter for LANGUAGE w/ exceptions if field has no value |
HAS_LANGUAGE() |
Determine if LANGUAGE has a value |
CodeUnit¶
The package, module, or namespace that contains the target code, for example
com.amazon.paymentorpayment_service.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_CODEUNIT() |
Getter for CODEUNIT, with configurable default |
ASK_CODEUNIT() |
Getter for CODEUNIT w/ exceptions if field has no value |
HAS_CODEUNIT() |
Determine if CODEUNIT has a value |
ClassName¶
The class or type name that contains the method. This is required for Java and optional for Python module-level functions.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_CLASSNAME() |
Getter for CLASSNAME, with configurable default |
ASK_CLASSNAME() |
Getter for CLASSNAME w/ exceptions if field has no value |
HAS_CLASSNAME() |
Determine if CLASSNAME has a value |
MethodName¶
The method or function name to instrument, such as
validateCreditCardorinit.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_METHODNAME() |
Getter for METHODNAME, with configurable default |
ASK_METHODNAME() |
Getter for METHODNAME w/ exceptions if field has no value |
HAS_METHODNAME() |
Determine if METHODNAME has a value |
FilePath¶
The source file path relative to the project or source root, such as
src/payment/PaymentProcessor.javaorsrc/payment/PaymentProcessor.py.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_FILEPATH() |
Getter for FILEPATH, with configurable default |
ASK_FILEPATH() |
Getter for FILEPATH w/ exceptions if field has no value |
HAS_FILEPATH() |
Determine if FILEPATH has a value |
LineNumber¶
The line number to instrument. Provide this to disambiguate overloaded methods and to target a specific line when needed.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_LINENUMBER() |
Getter for LINENUMBER, with configurable default |
ASK_LINENUMBER() |
Getter for LINENUMBER w/ exceptions if field has no value |
HAS_LINENUMBER() |
Determine if LINENUMBER has a value |