0.1.6 • Published 8 months ago

java-model v0.1.6

Weekly downloads
-
License
MIT
Repository
-
Last release
8 months ago

java-model

npm version

Provides high-level access to the Java type model, based on java-ast.

Usage

class A {
    private int i;
}

record B(String s) {
}

enum C { C1, C2 }
import { readFileSync } from "node:fs";
import { parse } from "java-model";

const project = parse({
    files: ["input.java"],
    read: (file) => readFileSync(file, "utf8")
});

project.visitTypes((type) => {
   console.log(type.name);
   console.log(type.qualifiedName);
   console.log(type.properties());
});

License

MIT

0.1.6

8 months ago

0.1.5

10 months ago

0.1.4

2 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago