javaparser
javaparser copied to clipboard
Java 1-18 Parser and Abstract Syntax Tree for Java with advanced analysis functionalities.
I am using javaparser 3.23.1 and apply it to Apache HBase. If parsing `RegionObserver.java`: ``` @InterfaceAudience.LimitedPrivate(HBaseInterfaceAudience.COPROC) @InterfaceStability.Evolving // TODO as method signatures need to break, update to // ObserverContext
I need to create a local variable in a method. So, I used this (example): ``` cu.accept(new ModifierVisitor() { @Override public Visitable visit(VariableDeclarator n, Void arg) { if ((n.getType().asString().equals("File"))) {...
I have a file A2.java : ``` package org.demo./*aaaaa*/project1.test; class A2 { ... } ``` CompilationUnitContext.java Line 202: ``` String qName = this.wrappedNode.getPackageDeclaration().get().getName().toString() + "." + name; SymbolReference ref =...
Currently, toDescriptor() exists for a few special classes: ast.type.Type and ast.body.MethodDeclaration Can we add it to TypeDeclaration and ResolvedDeclaration?
I consider a JavaParserFacace instanciated as the following: private static final ThreadLocal TL_JAVAPARSER = ThreadLocal.withInitial(() -> { CombinedTypeSolver ts = new CombinedTypeSolver(); // We allow processing any type available to...
Hi, We are developing a tool to check whether the dependencies' scopes in maven are set rightly and reasonably. Our tools have found some issues in your project about scope...
***Describe the bug*** During our fuzzing test on Javaparser, JVM hangs with specific inputs (more than 20 minitutes) stack info can be found [here](https://github.com/baltsers/polyfuzz/blob/main/javaparser/javaparser.log) ***To Reproduce*** We have provided sample...
**Problem :** So Oracle seems to be quite expensive to some of the companies so they convert their databases from oracle to Postgres. Now after the database is converted, the...
If UnsolvedSymbolException is thrown, the exception type should be preserved.
Currently working with JavaParser requires some unnecessary boilerplate (See conversation at https://github.com/javaparser/javaparser/pull/3081). The intention of the issue is to allow a conversation with possible solutions for this problem.