Git Product home page Git Product logo

analizejava.js's Introduction

analizeJava.js

Javaのファイルを漁ってクラス構成を分析する

実行環境 node.js

古いバージョンでも動くようにする。モダンな書き方はアロー式を使う程度にする

出力形式

schemaVersion: "2.1"

{
  schemaVersion: string, // メジャーバージョンは下位互換がない時にあげる。下位互換のあるときはマイナーバージョン
  meta: {
    processDate: Date // 処理日
  },
  classes: [
    {
      filePath: string,
      className: string,
      isInterface: boolean,
      isClass: boolean,
      package: string,
      fullPackage: string,
      imports: string[],
      implements: string[],

      // 以下、isDDDがtrueの場合のみ
      isRepositoryImpl: boolean,
      isDataSourceRepository: boolean,
      isAppService: boolean,
      isOtherComponent: boolean,
      isRestController: boolean,
      isBatchMessageEndpoint: boolean,
      isDiComponent: boolean,
      domainRepositoryName: boolean,
      apiEndPoints: string[],
      apiEndPointLength: number,
    },...
  ]
}

最新の情報はこちら

usage

コマンドラインから使う

node index.js ./path/to/java/project > javaClasses.json

jsから使う

import { analizeJava } from "./path/to/analyzeJava/src/analizeJava.mjs";

/** @type JavaClasses */
const list = analizeJava("./path/to/java/project", true);

開発

出力フォーマットのドキュメント生成

./node_modules/.bin/jsdoc2md -c jsdoc.conf src/typedef.mjs > javaClassesJSONSchema.md

analizejava.js's People

Contributors

naosim avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.