Looking for Java Code Analyses Framework [closed] - java

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I am looking for a code analyses framework in Java for Java.
I want to make a plugin for another very good open source project.
All I search for is a framework that reads a java file and returns a model of all objects, functions... used in the java class. (Like Eclipse Outline)
I already googled but, i couldn't find something useful.

What you need is basically just a parser (you do not need code analytics per se, just an intermediary format suitable for your need). Something simple like http://code.google.com/p/javaparser/wiki/UsingThisParser could already fit your need. If you want something a little more complete, take a look at antlr. It is a generic parser but the default implementation is in Java, and the Java grammar written for it is very good (and written by Antlr implementers).

Related

Java code automated documentation /presentation [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
Is there a tool to create from custom Java code documentation similar to what you can find on this page?
By this I mean listing in a clear way: methods of a class, different types of fields, inheritance, interfaces it implements etc. I want to do this for a library I created. I'm aware that all this information could be found inside the code, but sometimes you don't have time to open every single source file. Preferable html output.
have a loot at the javadoc tool. it generates exactly this html from javadoc comments and source code.

Are there any good libraries for interpreting java language? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
In lot of cases there is no need for classes to be explicitly compiled(i.e. running unit tests - I want them to be just runnable, not necessarily to be compiled & packaged).
I'm curious if there is any library for interpreting java.
Scala(static typed, runs on jvm) has interpreter built-in so in my understanding it should technically possible for java as well.
You can go a look at BeanShell. It's a Java interpreter. It may be a bit dated, I don't know if it supports generics for example, but you should take a look at it. It probably fits what you want to do.
Take a look on beanshell (http://www.beanshell.org).

EDIFACT grammar, parsers and libraries (Java) [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I am wondering if we can define EDIFACT grammar in ANTLR/xText and then generate parser.
If so, are these grammars defined already that we can leverage (open source preferably)?
Are there any open source libraries that can read and write EDIFACT other than Smooks?
From a handy book on the subject... (http://books.google.co.uk/books?id=rDbRS6vEG0MC&pg=PA222&lpg=PA222&dq=EDIFACT+bnf&source=bl&ots=pfFYf4nsVv&sig=JXY5HPo7Ka02ji35fjW8R8wFBX8&hl=en&sa=X&ei=05ozT6K5NMO80QWa-ZSLAg&ved=0CGEQ6AEwCA#v=onepage&q=EDIFACT%20bnf&f=false) we have the following section...
, which appears to suggest that it's not a good idea - although depending on what you require you can certainly write one, I would personally find Antlr an easier tool to use (I'm currently writing a lab for Xtext and it's a less forgiving learning curve), but your milage may vary...
I tried this approach (using ANTLR) when I developed bots open source edi translator (http://bots.sourceforge.net).
This looked like a good approach, but I did not succeed.
My conclusion was that 'parsing' by ANTLR is something very different than 'parsing' an edi-file; the words/concepts sound the same but these are really different worlds.
If you are looking for 'grammars'(that is: descriptions of edifact and x12 messages) these can be found in the downloads of the sourceforge page.

Python-like doctesting in Java? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
One of my favorite features in Python (I know it's not really a feature of python) is doc-testing. For me it really augments standard documentation and helps to keep it up to data. Looking for something similar in Java, I've found JDocTest - http://cscott.net/Projects/JDoctest/ - last updated two years ago, and doctestj http://code.google.com/p/doctestj/ which haven't been updated since 2007.
Obviously, Java is not interpreter based like Python, but maybe there's some up to date library that enables doctest like capability in java?
I know it's long time ago but I just found your post here while searching for something different.
In my company we built a java doctest library because we also like the idea of the python doctests. We're using it in one of our bigger projects to test and generate documentation with it.
You can find it here at Github

Tool for generating control flow in Java [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
I need a tool for generating control flow in java, but not a visual draw, something that I can work with like with path conditions or so.
Anyone ?
To future record, what I´ve found that best suits to my needs is Soot.
http://www.sable.mcgill.ca/soot/
The ASM library can do that, at the JVM-bytecode level. See Method Analysis and Control flow analyses in http://download.forge.objectweb.org/asm/asm4-guide.pdf (page 121).
Atlas is an Eclipse plugin that enables program analysis. It has a querable graph database that includes the control flow graph (as well as data flow and other relationships).
Maybe this is what you were looking for http://www.jboss.org/jbpm

Categories