两个java源文件的结构Diff [英] Structural Diff of two java source files
问题描述
有没有办法找到两个java源文件的Structural diff?
我想找到两个java文件的结构差异,但我不知道如何启动它。
java中是否有用于此目的的库?
Is there any way to find Structural diff of two java source files? I want to find structural difference of two java files, but i don't know how to start it. Is there any library in java for this purpose?
更新:
结构差异意味着像
它不关心空白或位置。它应该在语法上比较来源。这有助于我们跟踪实际更改,即使方法移动到其他位置或以不同顺序显示。
Update: Structural diff means like it does not care about white space or locations. It should compares source a syntactically. This helps us to trace actual changes, even if methods are moved to another location or appear in different order.
我找到了一个适用于C#和pascal的工具但我需要它用于java源文件比较。请查看给定的链接
http://www.modelmakertools.com/ structured-diff-viewer / index.html
i found a tool that is for C# and pascal but i need it for java source file comparision. please check the given link http://www.modelmakertools.com/structured-diff-viewer/index.html
如果您知道任何图书馆,请分享。
谢谢
if you know any libraries for that purpose please share it. thank you
推荐答案
Eclipse JDT具有java源的结构比较。如果您有特殊要求,可以查看 Eclipse EMF 尤其是 EMF Compare 。有关使用Eclipse Modeling的起点,您可能还需要查看 Eclipse MoDisco 。它附带一个Java 5 EMF模型,因此也提供了EMF Compare的结构差异。
Eclipse JDT has a structural compare of java sources. If you have special requirements than it might be a good idea to have a look at Eclipse EMF and especially EMF Compare. For a starting point for using Eclipse Modeling you might also want to have a look at Eclipse MoDisco. It ships with a Java 5 EMF Model and therefore also provides structural diff with EMF Compare.
这篇关于两个java源文件的结构Diff的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!