JavaParserFacade
Class to be used by final users to solve symbols for JavaParser ASTs.
Author
Federico Tomassetti
Functions
Link copied to clipboard
Convert a Class into the corresponding ResolvedType.
Link copied to clipboard
This method is used to clear internal caches for the sake of releasing memory.
Link copied to clipboard
Link copied to clipboard
Convert a Type into the corresponding ResolvedType.
Link copied to clipboard
Link copied to clipboard
Note that the addition of the modifier
synchronized is specific and directly in response to issue #2668.Link copied to clipboard
Get the type associated with the node.
Link copied to clipboard
open fun getTypeDeclaration(classOrInterfaceDeclaration: ClassOrInterfaceDeclaration): ResolvedReferenceTypeDeclaration
open fun getTypeDeclaration(typeDeclaration: TypeDeclaration<out Any>): ResolvedReferenceTypeDeclaration
Link copied to clipboard
"this" inserted in the given point, which type would have?
Link copied to clipboard
open fun solve(methodReferenceExpr: MethodReferenceExpr): SymbolReference<ResolvedMethodDeclaration>
open fun solve(objectCreationExpr: ObjectCreationExpr): SymbolReference<ResolvedConstructorDeclaration>
open fun solve(explicitConstructorInvocationStmt: ExplicitConstructorInvocationStmt): SymbolReference<ResolvedConstructorDeclaration>
open fun solve(explicitConstructorInvocationStmt: ExplicitConstructorInvocationStmt, solveLambdas: Boolean): SymbolReference<ResolvedConstructorDeclaration>
open fun solve(methodReferenceExpr: MethodReferenceExpr, solveLambdas: Boolean): SymbolReference<ResolvedMethodDeclaration>
Given a method reference find out to which method declaration it corresponds.
open fun solve(objectCreationExpr: ObjectCreationExpr, solveLambdas: Boolean): SymbolReference<ResolvedConstructorDeclaration>
Given a constructor call find out to which constructor declaration it corresponds.
open fun solve(methodCallExpr: MethodCallExpr, solveLambdas: Boolean, invocationContext: ResolvedReferenceTypeDeclaration): SymbolReference<ResolvedMethodDeclaration>
Given a method call find out to which method declaration it corresponds.
Link copied to clipboard
Link copied to clipboard
open fun toMethodUsage(methodReferenceExpr: MethodReferenceExpr, paramTypes: List<ResolvedType>): MethodUsage