Spartan is a collection of tools designed to assist with Java source code analysis and manipulation. It is the basis for the Spartan Refactoring Eclipse plugin.
The library is available in Maven Central, so you can easily embed it in your projects.
For Maven projects, add this to your pom.xml:
<dependencies>
<dependency>
<groupId>il.org.spartan</groupId>
<artifactId>spartan</artifactId>
<version>1.0</version>
</dependency>
...
</dependencies>
For Gradle projects, add this to your build.gradle:
compile 'il.org.spartan:spartan:1.0'
To compile the library from source, clone this repository to your local computer and run:
mvn package
Then, include the generated .jar file in your project.
This library is an open source project and is available under the MIT License