eclipse格式的java源代码基于方法调用 [英] eclipse format java source code based on method calls

查看:113
本文介绍了eclipse格式的java源代码基于方法调用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经写了一个有很多不同方法的课程。
我正在寻找一个插件,它将根据主方法中的调用编排代码



例如我的一般结构可能是

  {main方法(调用方法b,调用方法d,调用方法a)
方法a,
方法b,
方法c,
方法d}

我想要插件格式化我的源代码为

  {main方法(调用方法b,调用方法d,调用方法a)
方法b,
方法d,
方法a,
方法c}


解决方案

如果我理解正确,我认为有一个GSOC项目,用于代码推荐者做到这一点请参阅此错误此博文。你可能可以从那里得到一些线索。


I have written a class with many different methods. I am looking for a plugin which witll arrange the code based on the calls in the main method

For example my general structure might be

{main method (call method b, call method d, call method a)
method a,
method b,
method c,
method d}

I want the plugin to format my source code as

{main method (call method b, call method d, call method a)
method b,
method d,
method a,
method c}

解决方案

If I understand you correctly, I think there's a GSOC project for Code Recommenders to do exactly that; see this bug and this blog post. You might be able to get some clues from there.

这篇关于eclipse格式的java源代码基于方法调用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆