This program serializes the Abstract Syntax Tree of an Apex Class/Trigger, using the jorje Apex parser distributed by Salesforce.
It is mainly used by the prettier-plugin-apex project.
The result is printed out to stdout
as either a JSON or XML object.
./gradlew distZip
A zip file will be created in distributions
directory.
You can unzip that file to get to the executables under apex-ast-serializer/bin
.
To get a list of supported options:
./apex-ast-serializer --help
MIT