Class MethodCallExprContext
- java.lang.Object
-
- com.github.javaparser.symbolsolver.javaparsermodel.contexts.AbstractJavaParserContext<com.github.javaparser.ast.expr.MethodCallExpr>
-
- com.github.javaparser.symbolsolver.javaparsermodel.contexts.MethodCallExprContext
-
- All Implemented Interfaces:
Context
public class MethodCallExprContext extends AbstractJavaParserContext<com.github.javaparser.ast.expr.MethodCallExpr>
-
-
Field Summary
-
Fields inherited from class com.github.javaparser.symbolsolver.javaparsermodel.contexts.AbstractJavaParserContext
typeSolver, wrappedNode
-
-
Constructor Summary
Constructors Constructor Description MethodCallExprContext(com.github.javaparser.ast.expr.MethodCallExpr wrappedNode, com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<com.github.javaparser.resolution.types.ResolvedType>
solveGenericType(String name)
com.github.javaparser.symbolsolver.model.resolution.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.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.com.github.javaparser.symbolsolver.model.resolution.SymbolReference<? extends com.github.javaparser.resolution.declarations.ResolvedValueDeclaration>
solveSymbol(String name)
Optional<com.github.javaparser.symbolsolver.model.resolution.Value>
solveSymbolAsValue(String name)
String
toString()
-
Methods inherited from class com.github.javaparser.symbolsolver.javaparsermodel.contexts.AbstractJavaParserContext
equals, findTypeDeclarations, getParent, getWrappedNode, hashCode, solveWith, solveWithAsValue
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.github.javaparser.symbolsolver.core.resolution.Context
fieldDeclarationInScope, fieldsExposedToChild, localVariableDeclarationInScope, localVariablesExposedToChild, parameterDeclarationInScope, parametersExposedToChild, solveConstructor, solveType
-
-
-
-
Method Detail
-
solveGenericType
public Optional<com.github.javaparser.resolution.types.ResolvedType> solveGenericType(String name)
- Specified by:
solveGenericType
in interfaceContext
- Overrides:
solveGenericType
in classAbstractJavaParserContext<com.github.javaparser.ast.expr.MethodCallExpr>
-
solveMethodAsUsage
public Optional<com.github.javaparser.resolution.MethodUsage> solveMethodAsUsage(String name, List<com.github.javaparser.resolution.types.ResolvedType> argumentsTypes)
Description copied from interface:Context
Similar to solveMethod but we return a MethodUsage. A MethodUsage corresponds to a MethodDeclaration plus the resolved type variables.
-
solveSymbol
public com.github.javaparser.symbolsolver.model.resolution.SymbolReference<? extends com.github.javaparser.resolution.declarations.ResolvedValueDeclaration> solveSymbol(String name)
-
solveSymbolAsValue
public Optional<com.github.javaparser.symbolsolver.model.resolution.Value> solveSymbolAsValue(String name)
-
solveMethod
public com.github.javaparser.symbolsolver.model.resolution.SymbolReference<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> solveMethod(String name, List<com.github.javaparser.resolution.types.ResolvedType> argumentsTypes, boolean staticOnly)
Description copied from interface:Context
We find the method declaration which is the best match for the given name and list of typeParametersValues.
-
-