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.

소스 정보

저장소
apache/skywalking
최근 소스 활동
2026년 4월 2일 03:59
감지된 SKILL.md 언어
영어
스타
24,994
포크
6,631

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
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 ```
GitHub에서 보기