I am newbie in pl sql parsing. I am using porcelli, and gone through this question.
But I am not able to configure this in my eclipse or my local system.
Are there any tutorial or detailed steps for using procelli.
Also I'll be parsing package file. Is porcelli is correct to use?
Once after setting up all, I need to extract all the function and respective params in the package file. How to proceed for that?
Related
I have a database change template to used by the team, it was accepted but the only thing needed is:
1- Can we have syntax formatting for SQL within the same form?
2- How can we get only the DDL part out of this to generate a simple text field/file?
Note: This template will be used once per a month and it will have all the database changes, I'm looking for a way to make the syntax to be formatted like the SQL format, and is there a way where I could extract or Export only the queries to one text file even programmatically by using java or any similar programming language.
Please advice and thank you.
Based on the comments I understand that you want to capture a cell value by using Values.get(). You can easily do that by following a quickstart tutorial (available on Java and Node.js as requested). That will help you to set up a working environment with Sheets API. After completing it, you only have to update the code to include Values.get(). Please ask me any additional doubt if required.
I am trying to visualize some drl file not using drools workbench(or business central). I've found the function to create drl file by passing value. However, I can't find the way to do opposite thing.
I expect to parse the existed drl file into some value or other format that can be easily used in my Vue project. At the moment I am looking for it in Drools souce code but can't find it.
I don't want to use drools workbench because it's not convenient enough to use. But if there are some functions or libraries in its souce code, please let me know. It's also very helpful.
I am using drools 7.0.0.final now.
Thanks for reading my question, if you have any idea, please help me.
I'm not sure about what you're trying to achieve, but let me give you some hints.
The org.drools.compiler.compiler.DrlParser in the drools-compiler module will parse the DRL and generate the PackageDescr, pretty much an AST of the rule file. Take a look at org.drools.compiler.compiler.DrlParserTest for an example.
The org.drools.compiler.builder.impl.KnowledgeBuilderImpl will create the *Impl* classes which are used by the runtime of Drools.
Alternatively you can take a look at the drools-model-compiler module, in which theres a compiler org.drools.modelcompiler.builder.ModelBuilderImpl that compiles *Descrs into a Java DSL we created recently, the executable model. see org.drools.modelcompiler.CompilerTest and org.drools.modelcompiler.PatternDSLTest
Let me know if it helps.
Good luck
Within an Enterprise Architect file I have the definition of an XML (The definition specify which attributes are mandatory or not) , My goal is to read this definition, and afterwards validate the actual XMl file.
Is there a way to read an .Eap file using JAVA with Eclipse ?
PS: The definition might changes , this why I need to do it programmatically.
Any help would be appreciated.
No. Or: not directly. EAP files are actually Mickeysoft Access databases with just another suffix. To read them you need to use the EA API. Or use an ODBC driver for Access.
I manage a way around it.With the program Entreprise Architect,I exported the model into XML format using the highlighted option below :
Once the XML is generated,I am able to read the definitions easily with a couple of Xpath queries.
Before that I was using the viewer version of the program so I didn't have the option to export the model into an XML file. Once I downloaded the trial version , I got this option.
For those who still want to read the actual .EAP, file you can refer to the answer of Thomas Kilian.
I tried to use CEDET to get auto completion in Emacs and that works fine for C/C++. But I cannot find anything about how to use CEDET with Java without the help of JDEE, which is thought out of date and not compatible to CEDET 1.1. I got a tags file using utility found here but I don't know how to integrate that into CEDET system. According to CEDET's website, that's possible. But they don't explain how to do it. Is there someone willing to answer this question?
Here is some sample of the tags file generated by that utility:
java.applet.Applet$AccessibleApplet
protected java.applet.Applet$AccessibleApplet(java.applet.Applet)
public java.applet.Applet$AccessibleApplet.getAccessibleRole() returns javax.accessibility.AccessibleRole
public java.applet.Applet$AccessibleApplet.getAccessibleStateSet() returns javax.accessibility.AccessibleStateSet
It is possible to have CEDET pull in tags from a .jar file. It works by using javap to extract the tags in text form, and then it parses that data.
It isn't very easy to set up since in CEDET, the concept of where to find your library files is part of EDE, the project management system, not the parser and smart completion system. The only Java based project supported in CEDET 1.1 is Android.
The basics is to first enable the javap database by loading it with (require 'semanticdb-javap) in CEDET 1.1, or (require 'semantic/db-javap) in the bzr version of CEDET.
Once you've done that, you can configure it via the cedet-java-classpath-extension. I'm a little fuzzy on the details of what happens next, but folks have reported success on the mailing list.
If you use CEDET from the bzr repository, there is the ede-java-root project, which is similar to the ede-cpp-root project. That project type lets you configure what your library path is. The doc for that is in the ede/java-root.el file with the project type, and shows you the basics of how to use it.
I would like to write toy IDE for Java, so I ask a question about one particular thing that as I hope can help me get started.
I have editor implemented on top of swing and i have some text in there. There is for example:
import java.util.List;
Now I need a way to send "java.util.List" string to a method that returns me all the information I may need including JavaDoc document.
So is there any tool that can set up classpath with libraries, that would parse every string I send and try to find if there is any Class/Interface with documentation to return?
So is there any tool that can set up classpath with libraries, that would parse every string I send and try to find if there is any Class/Interface with documentation to return?
AFAIK, no. There is no such free-standing tool or library. You will need to implement it yourself. (Don't expect that writing a Java IDE is simple ... even a "toy" one.)
Libraries will have class files, which will not have javadocs.. So it is not clear what you want to do.
There are many byte code engineering tools to analyse and extract information from class files. For example asm or bcel. Javassist allows to process both source and byte code, so may be close to what you need.
You could use html parser to get the javadoc and other info from the web using the full path to the class (including package names to construct the correct URL per class). This will of course depend on the version of java you are using.
You can also use the javadoc tool from within java to generate the desired documentation from java source files (which can be downloaded from the web). The source code of the tool could also help you out. See http://java.sun.com/j2se/javadoc/faq/#developingwithjavadoc
Lastly, if you need information based on runtime types in your program, you might want to check reflection capabilities.
First you need to know How to print imported java libraries?. Then download java API documentation here. Once you find out imported libraries, open an inputStream in order to read appropriate HTML file.
Beware! This technic will only work when importing from jdk.