public class JavaParserFacade extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
clearInstances()
This method is used to clear internal caches for the sake of releasing memory.
|
Type |
convert(com.github.javaparser.ast.type.Type type,
Context context) |
Type |
convert(com.github.javaparser.ast.type.Type type,
com.github.javaparser.ast.Node node) |
Type |
convertToUsage(com.github.javaparser.ast.type.Type type,
Context context) |
Type |
convertToUsage(com.github.javaparser.ast.type.Type type,
com.github.javaparser.ast.Node context) |
static JavaParserFacade |
get(TypeSolver typeSolver) |
Type |
getType(com.github.javaparser.ast.Node node) |
Type |
getType(com.github.javaparser.ast.Node node,
boolean solveLambdas) |
TypeDeclaration |
getTypeDeclaration(com.github.javaparser.ast.body.ClassOrInterfaceDeclaration classOrInterfaceDeclaration) |
TypeDeclaration |
getTypeDeclaration(com.github.javaparser.ast.body.TypeDeclaration typeDeclaration) |
Type |
getTypeOfThisIn(com.github.javaparser.ast.Node node)
"this" inserted in the given point, which type would have?
|
SymbolReference |
solve(com.github.javaparser.ast.expr.Expression expr) |
SymbolReference<MethodDeclaration> |
solve(com.github.javaparser.ast.expr.MethodCallExpr methodCallExpr) |
SymbolReference<MethodDeclaration> |
solve(com.github.javaparser.ast.expr.MethodCallExpr methodCallExpr,
boolean solveLambdas)
Given a method call find out to which method declaration it corresponds.
|
SymbolReference<? extends ValueDeclaration> |
solve(com.github.javaparser.ast.expr.NameExpr nameExpr) |
MethodUsage |
solveMethodAsUsage(com.github.javaparser.ast.expr.MethodCallExpr call) |
public static JavaParserFacade get(TypeSolver typeSolver)
public static void clearInstances()
public SymbolReference<? extends ValueDeclaration> solve(com.github.javaparser.ast.expr.NameExpr nameExpr)
public SymbolReference solve(com.github.javaparser.ast.expr.Expression expr)
public SymbolReference<MethodDeclaration> solve(com.github.javaparser.ast.expr.MethodCallExpr methodCallExpr)
public SymbolReference<MethodDeclaration> solve(com.github.javaparser.ast.expr.MethodCallExpr methodCallExpr, boolean solveLambdas)
public Type getType(com.github.javaparser.ast.Node node)
public Type getType(com.github.javaparser.ast.Node node, boolean solveLambdas)
public Type convertToUsage(com.github.javaparser.ast.type.Type type, com.github.javaparser.ast.Node context)
public Type convertToUsage(com.github.javaparser.ast.type.Type type, Context context)
public Type convert(com.github.javaparser.ast.type.Type type, com.github.javaparser.ast.Node node)
public MethodUsage solveMethodAsUsage(com.github.javaparser.ast.expr.MethodCallExpr call)
public TypeDeclaration getTypeDeclaration(com.github.javaparser.ast.body.ClassOrInterfaceDeclaration classOrInterfaceDeclaration)
public Type getTypeOfThisIn(com.github.javaparser.ast.Node node)
public TypeDeclaration getTypeDeclaration(com.github.javaparser.ast.body.TypeDeclaration typeDeclaration)
Copyright © 2016. All rights reserved.