JavaParserFacade

Class to be used by final users to solve symbols for JavaParser ASTs.

Author

Federico Tomassetti

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open fun classToResolvedType(clazz: Class<out Any>): ResolvedType
Convert a Class into the corresponding ResolvedType.
Link copied to clipboard
open fun clearInstances()
This method is used to clear internal caches for the sake of releasing memory.
Link copied to clipboard
open fun convert(type: Type, node: Node): ResolvedType
open fun convert(type: Type, context: Context): ResolvedType
Link copied to clipboard
Convert a Type into the corresponding ResolvedType.
Link copied to clipboard
Link copied to clipboard
open fun get(typeSolver: TypeSolver): JavaParserFacade
Note that the addition of the modifier synchronized is specific and directly in response to issue #2668.
Link copied to clipboard
open fun getType(node: Node): ResolvedType
Get the type associated with the node.
open fun getType(node: Node, solveLambdas: Boolean): ResolvedType
Link copied to clipboard
"this" inserted in the given point, which type would have?
Link copied to clipboard
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