public class SymbolSolver extends Object
Constructor and Description |
---|
SymbolSolver(TypeSolver typeSolver) |
Modifier and Type | Method and Description |
---|---|
MethodUsage |
solveMethod(String methodName,
List<Type> argumentsTypes,
Context context) |
MethodUsage |
solveMethod(String methodName,
List<Type> argumentsTypes,
com.github.javaparser.ast.Node node) |
SymbolReference<? extends ValueDeclaration> |
solveSymbol(String name,
Context context) |
SymbolReference<? extends ValueDeclaration> |
solveSymbol(String name,
com.github.javaparser.ast.Node node) |
Optional<Value> |
solveSymbolAsValue(String name,
Context context) |
Optional<Value> |
solveSymbolAsValue(String name,
com.github.javaparser.ast.Node node) |
SymbolReference<? extends ValueDeclaration> |
solveSymbolInType(TypeDeclaration typeDeclaration,
String name)
Solve any possible visible symbols including: fields, internal types, type variables, the type itself or its
containers.
|
SymbolReference<? extends TypeDeclaration> |
solveType(String name,
Context context) |
SymbolReference<? extends TypeDeclaration> |
solveType(String name,
com.github.javaparser.ast.Node node) |
TypeDeclaration |
solveType(com.github.javaparser.ast.type.Type type) |
SymbolReference<TypeDeclaration> |
solveTypeInType(TypeDeclaration typeDeclaration,
String name)
Deprecated.
|
Type |
solveTypeUsage(String name,
Context context) |
public SymbolSolver(TypeSolver typeSolver)
public SymbolReference<? extends ValueDeclaration> solveSymbol(String name, Context context)
public SymbolReference<? extends ValueDeclaration> solveSymbol(String name, com.github.javaparser.ast.Node node)
public Optional<Value> solveSymbolAsValue(String name, com.github.javaparser.ast.Node node)
public SymbolReference<? extends TypeDeclaration> solveType(String name, Context context)
public SymbolReference<? extends TypeDeclaration> solveType(String name, com.github.javaparser.ast.Node node)
public MethodUsage solveMethod(String methodName, List<Type> argumentsTypes, Context context)
public MethodUsage solveMethod(String methodName, List<Type> argumentsTypes, com.github.javaparser.ast.Node node)
public TypeDeclaration solveType(com.github.javaparser.ast.type.Type type)
public SymbolReference<? extends ValueDeclaration> solveSymbolInType(TypeDeclaration typeDeclaration, String name)
It should contain its own private fields but not inherited private fields.
@Deprecated public SymbolReference<TypeDeclaration> solveTypeInType(TypeDeclaration typeDeclaration, String name)
Copyright © 2016. All rights reserved.