GithubHelp home page GithubHelp logo

java-parser-example's Introduction

说明

  1. 根据《JavaParser: Visited》Nicholas Smith, Danny van Bruggen and Federico Tomassetti,2021-02-05, Learnpub
  2. 使用书中案例
  3. 具体方法调用与测试在Main类中

详情

        //1. 简单访问
        testMethodNamePrinter();
        //2. 修改属性
        testFieldIntegerLiteralModifier();
        //3. 测试注释
        testGetAllContainedComments();
        //4. 获取引用类型
        testGetTypeOfReference();
        //5. 获取 引用类型2 方法内 反射方法
        testUsingTypeSolver();
        //6. 获取 引用类型3 属性 源码上下文
        testResolveTypeInContext();
        //7. 获取 引用类型4 入参
        testResolveMethodCalls();
        //8. 获取 引用类型5 负载复杂环境,既有jar、又有源码和生成后的源码
        testCombinedTypeResolve();
        //9. 最有单元测试有内存作为上下文的处理方式

书目

《JavaParser: Visited》在本项目doc文件夹

java-parser-example's People

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.