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) |
Type |
convertToUsageVariableType(com.github.javaparser.ast.body.VariableDeclarator var) |
static JavaParserFacade |
get(TypeSolver typeSolver) |
Type |
getType(com.github.javaparser.ast.Node node) |
Type |
getType(com.github.javaparser.ast.Node node,
boolean solveLambdas) |
ReferenceTypeDeclaration |
getTypeDeclaration(com.github.javaparser.ast.body.ClassOrInterfaceDeclaration classOrInterfaceDeclaration) |
ReferenceTypeDeclaration |
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) |
SymbolReference<? extends ValueDeclaration> |
solve(com.github.javaparser.ast.expr.SimpleName 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<? extends ValueDeclaration> solve(com.github.javaparser.ast.expr.SimpleName 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 convertToUsageVariableType(com.github.javaparser.ast.body.VariableDeclarator var)
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 ReferenceTypeDeclaration getTypeDeclaration(com.github.javaparser.ast.body.ClassOrInterfaceDeclaration classOrInterfaceDeclaration)
public Type getTypeOfThisIn(com.github.javaparser.ast.Node node)
public ReferenceTypeDeclaration getTypeDeclaration(com.github.javaparser.ast.body.TypeDeclaration typeDeclaration)
Copyright © 2016. All rights reserved.