public interface Context
| Modifier and Type | Method and Description |
|---|---|
default Optional<com.github.javaparser.resolution.declarations.ResolvedFieldDeclaration> |
fieldDeclarationInScope(String name) |
default List<com.github.javaparser.resolution.declarations.ResolvedFieldDeclaration> |
fieldsExposedToChild(com.github.javaparser.ast.Node child)
The fields that are declared and in this immediate context made visible to a given child.
|
Context |
getParent() |
default Optional<com.github.javaparser.ast.body.VariableDeclarator> |
localVariableDeclarationInScope(String name)
Aim to resolve the given name by looking for a variable matching it.
|
default List<com.github.javaparser.ast.body.VariableDeclarator> |
localVariablesExposedToChild(com.github.javaparser.ast.Node child)
The local variables that are declared in this immediate context and made visible to a given child.
|
default Optional<com.github.javaparser.ast.body.Parameter> |
parameterDeclarationInScope(String name) |
default List<com.github.javaparser.ast.body.Parameter> |
parametersExposedToChild(com.github.javaparser.ast.Node child)
The parameters that are declared in this immediate context and made visible to a given child.
|
default SymbolReference<com.github.javaparser.resolution.declarations.ResolvedConstructorDeclaration> |
solveConstructor(List<com.github.javaparser.resolution.types.ResolvedType> argumentsTypes)
We find the method declaration which is the best match for the given name and list of typeParametersValues.
|
default Optional<com.github.javaparser.resolution.types.ResolvedType> |
solveGenericType(String name) |
default SymbolReference<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> |
solveMethod(String name,
List<com.github.javaparser.resolution.types.ResolvedType> argumentsTypes,
boolean staticOnly)
We find the method declaration which is the best match for the given name and list of typeParametersValues.
|
default Optional<com.github.javaparser.resolution.MethodUsage> |
solveMethodAsUsage(String name,
List<com.github.javaparser.resolution.types.ResolvedType> argumentsTypes)
Similar to solveMethod but we return a MethodUsage.
|
default SymbolReference<? extends com.github.javaparser.resolution.declarations.ResolvedValueDeclaration> |
solveSymbol(String name) |
default Optional<Value> |
solveSymbolAsValue(String name) |
default SymbolReference<com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration> |
solveType(String name) |
Context getParent()
default Optional<com.github.javaparser.resolution.types.ResolvedType> solveGenericType(String name)
default SymbolReference<com.github.javaparser.resolution.declarations.ResolvedTypeDeclaration> solveType(String name)
default SymbolReference<? extends com.github.javaparser.resolution.declarations.ResolvedValueDeclaration> solveSymbol(String name)
default List<com.github.javaparser.ast.body.VariableDeclarator> localVariablesExposedToChild(com.github.javaparser.ast.Node child)
default List<com.github.javaparser.ast.body.Parameter> parametersExposedToChild(com.github.javaparser.ast.Node child)
default List<com.github.javaparser.resolution.declarations.ResolvedFieldDeclaration> fieldsExposedToChild(com.github.javaparser.ast.Node child)
default Optional<com.github.javaparser.ast.body.VariableDeclarator> localVariableDeclarationInScope(String name)
default Optional<com.github.javaparser.ast.body.Parameter> parameterDeclarationInScope(String name)
default Optional<com.github.javaparser.resolution.declarations.ResolvedFieldDeclaration> fieldDeclarationInScope(String name)
default SymbolReference<com.github.javaparser.resolution.declarations.ResolvedConstructorDeclaration> solveConstructor(List<com.github.javaparser.resolution.types.ResolvedType> argumentsTypes)
default SymbolReference<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> solveMethod(String name, List<com.github.javaparser.resolution.types.ResolvedType> argumentsTypes, boolean staticOnly)
default Optional<com.github.javaparser.resolution.MethodUsage> solveMethodAsUsage(String name, List<com.github.javaparser.resolution.types.ResolvedType> argumentsTypes)
Copyright © 2007–2019. All rights reserved.