Package | Description |
---|---|
com.github.javaparser.resolution | |
com.github.javaparser.resolution.logic | |
com.github.javaparser.resolution.model |
Modifier and Type | Method and Description |
---|---|
default SymbolReference<ResolvedConstructorDeclaration> |
Context.solveConstructor(List<ResolvedType> argumentsTypes)
We find the method declaration which is the best match for the given name and list of typeParametersValues.
|
default SymbolReference<ResolvedMethodDeclaration> |
Context.solveMethod(String name,
List<ResolvedType> argumentsTypes,
boolean staticOnly)
We find the method declaration which is the best match for the given name and list of typeParametersValues.
|
default SymbolReference<ResolvedMethodDeclaration> |
Context.solveMethodInParentContext(String name,
List<ResolvedType> argumentsTypes,
boolean staticOnly) |
default SymbolReference<? extends ResolvedValueDeclaration> |
Context.solveSymbol(String name)
Used where a symbol is being used (e.g. solving
x when used as an argument doubleThis(x) , or calculation return x * 2; ). |
SymbolReference<? extends ResolvedValueDeclaration> |
Solver.solveSymbol(String name,
Context context) |
SymbolReference<? extends ResolvedValueDeclaration> |
Solver.solveSymbol(String name,
Node node) |
default SymbolReference<? extends ResolvedValueDeclaration> |
Context.solveSymbolInParentContext(String name) |
SymbolReference<? extends ResolvedValueDeclaration> |
Solver.solveSymbolInType(ResolvedTypeDeclaration typeDeclaration,
String name)
Solve any possible visible symbols including: fields, internal types, type variables, the type itself or its
containers.
|
default SymbolReference<ResolvedTypeDeclaration> |
Context.solveType(String name)
Deprecated.
Consider using method
Context.solveType(String, List) that also consider the type arguments.
If you want to keep to use the new function, but keep the same behavior consider passing type
arguments as null . |
SymbolReference<? extends ResolvedTypeDeclaration> |
Solver.solveType(String name,
Context context) |
default SymbolReference<ResolvedTypeDeclaration> |
Context.solveType(String name,
List<ResolvedType> typeArguments)
Method used to solve a name with an expected list of type arguments.
|
SymbolReference<? extends ResolvedTypeDeclaration> |
Solver.solveType(String name,
Node node) |
default SymbolReference<ResolvedTypeDeclaration> |
Context.solveTypeInParentContext(String name)
Deprecated.
Consider using method
Context.solveTypeInParentContext(String, List) that also consider the type arguments.
If you want to keep to use the new function, but keep the same behavior consider passing type
arguments as null . |
default SymbolReference<ResolvedTypeDeclaration> |
Context.solveTypeInParentContext(String name,
List<ResolvedType> typeArguments)
Solve a name with type arguments in the parent context.
|
SymbolReference<ResolvedTypeDeclaration> |
Solver.solveTypeInType(ResolvedTypeDeclaration typeDeclaration,
String name)
Deprecated.
Similarly to solveType this should eventually disappear as the symbol resolution logic should be more general
and do not be specific to JavaParser classes like in this case.
|
SymbolReference<ResolvedReferenceTypeDeclaration> |
TypeSolver.tryToSolveType(String name)
Try to solve the type with the given name.
|
Modifier and Type | Method and Description |
---|---|
static <I extends ResolvedDeclaration,O extends ResolvedDeclaration> |
SymbolReference.adapt(SymbolReference<I> ref,
Class<O> clazz)
Adapt a
SymbolReference into another SymbolReference . |
static <S extends ResolvedDeclaration,S2 extends S> |
SymbolReference.solved(S2 symbolDeclaration)
Create a solve reference to the given symbol.
|
static <S extends ResolvedDeclaration> |
SymbolReference.unsolved()
Create a reference for an unsolved symbol.
|
static <S extends ResolvedDeclaration,S2 extends S> |
SymbolReference.unsolved(Class<S2> clazz)
Deprecated.
Consider using
unsolved() instead. |
Modifier and Type | Method and Description |
---|---|
static <I extends ResolvedDeclaration,O extends ResolvedDeclaration> |
SymbolReference.adapt(SymbolReference<I> ref,
Class<O> clazz)
Adapt a
SymbolReference into another SymbolReference . |
void |
LambdaArgumentTypePlaceholder.setMethod(SymbolReference<? extends ResolvedMethodLikeDeclaration> method) |
Copyright © 2007–2024. All rights reserved.