Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jcla1/jclass
Go Java Class File Parser
https://github.com/jcla1/jclass
Last synced: about 1 month ago
JSON representation
Go Java Class File Parser
- Host: GitHub
- URL: https://github.com/jcla1/jclass
- Owner: jcla1
- License: mit
- Created: 2014-05-24T13:35:40.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-06-03T16:12:34.000Z (over 10 years ago)
- Last Synced: 2024-06-19T11:16:58.165Z (7 months ago)
- Language: Go
- Homepage:
- Size: 387 KB
- Stars: 6
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Go Java Class File Parser
=========================The jclass (package name `class`) parser support class files (those ending in `.class`) as specified in [Chapter 4 of the Oracle JVM specification](http://docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html). With the exception of the [Runtime[In]Visible[Paramterer]Annotations](http://docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html#jvms-4.7.16), [AnnotationDefault](http://docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html#jvms-4.7.20) & [StackMapTable](http://docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html#jvms-4.7.4) attributes. Otherwise all defined attributes & constants are supported and parsed correctly.
## Documentation
You can find the documentation [on GoDoc](http://godoc.org/github.com/jcla1/jclass). Additionally there are some [examples](examples/) provided in the repository.
## Use cases
First idea that comes to mind, is of course a JVM, but jclass can also be used for validating class files, obfuscating them or compressing them. This would be accomplished by, for example removing unnecessary LineNumberTable(s) and other attributes that don't affect the sematics of the class file, when executed.
## License
[MIT License](LICENSE)