Skip to main content

generate-classes

Generate bytecode classes from DSL scripts (MAL, OAL, LAL, Hierarchy). Runs the compiler and dumps .class files for inspection.

Source facts

Repository
apache/skywalking
Last source activity
April 2, 2026 at 03:59
Detected SKILL.md language
English
Stars
24,969
Forks
6,630

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.

Showing SKILL.md

SKILL.md
Source instructions · Read-only preview
name
generate-classes
description
Generate bytecode classes from DSL scripts (MAL, OAL, LAL, Hierarchy). Runs the compiler and dumps .class files for inspection.
argument-hint
<mal|oal|lal|hierarchy|all>
# Generate DSL Classes Run the v2 compiler (ANTLR4 + Javassist) to generate bytecode classes from DSL scripts and dump `.class` files to disk for inspection. ## Commands by argument ### `mal` — MAL expression classes ```bash ./mvnw test -pl oap-server/analyzer/dsl-scripts-test \ -Dtest=MALExpressionExecutionTest -DfailIfNoTests=false -Dcheckstyle.skip ``` Output location: `oap-server/analyzer/dsl-scripts-test/src/test/resources/scripts/mal/**/*.generated-classes/` ### `oal` — OAL metrics/dispatcher/builder classes ```bash ./mvnw test -pl oap-server/oal-rt \ -Dtest=RuntimeOALGenerationTest -DfailIfNoTests=false -Dcheckstyle.skip ``` Output location: `oap-server/oal-rt/target/test-classes/metrics/`, `metrics/builder/`, `dispatcher/` ### `lal` — LAL filter/extractor classes ```bash ./mvnw test -pl oap-server/analyzer/dsl-scripts-test \ -Dtest=LALExpressionExecutionTest -DfailIfNoTests=false -Dcheckstyle.skip ``` Output location: `oap-server/analyzer/dsl-scripts-test/src/test/resources/scripts/lal/**/*.generated-classes/` ### `hierarchy` — Hierarchy rule classes ```bash ./mvnw test -pl oap-server/analyzer/dsl-scripts-test \ -Dtest=HierarchyRuleExecutionTest -DfailIfNoTests=false -Dcheckstyle.skip ``` Output location: `oap-server/analyzer/dsl-scripts-test/src/test/resources/scripts/hierarchy-rule/*.generated-classes/` ### `all` or no argument — generate all DSLs Run all four commands above sequentially. ## After generation Print the output location for the requested DSL so the user knows where to find the generated `.class` files. Use `javap` to decompile: ```bash javap -c -p <path-to-class-file> ``` ## Cleaning generated classes ```bash ./mvnw clean -pl oap-server/analyzer/dsl-scripts-test ```
View on GitHub