public class MethodCallExprContext extends AbstractJavaParserContext<com.github.javaparser.ast.expr.MethodCallExpr>
typeSolver, wrappedNode
Constructor and Description |
---|
MethodCallExprContext(com.github.javaparser.ast.expr.MethodCallExpr wrappedNode,
com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver) |
Modifier and Type | Method and Description |
---|---|
java.util.Optional<com.github.javaparser.resolution.types.ResolvedType> |
solveGenericType(java.lang.String name,
com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver) |
com.github.javaparser.symbolsolver.model.resolution.SymbolReference<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> |
solveMethod(java.lang.String name,
java.util.List<com.github.javaparser.resolution.types.ResolvedType> argumentsTypes,
boolean staticOnly,
com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver)
We find the method declaration which is the best match for the given name and list of typeParametersValues.
|
java.util.Optional<com.github.javaparser.resolution.MethodUsage> |
solveMethodAsUsage(java.lang.String name,
java.util.List<com.github.javaparser.resolution.types.ResolvedType> argumentsTypes,
com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver)
Similar to solveMethod but we return a MethodUsage.
|
com.github.javaparser.symbolsolver.model.resolution.SymbolReference<? extends com.github.javaparser.resolution.declarations.ResolvedValueDeclaration> |
solveSymbol(java.lang.String name,
com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver) |
java.util.Optional<com.github.javaparser.symbolsolver.model.resolution.Value> |
solveSymbolAsValue(java.lang.String name,
com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver) |
java.lang.String |
toString() |
equals, getParent, hashCode, solveWith, solveWithAsValue
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
solveConstructor, solveType
public MethodCallExprContext(com.github.javaparser.ast.expr.MethodCallExpr wrappedNode, com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver)
public java.util.Optional<com.github.javaparser.resolution.types.ResolvedType> solveGenericType(java.lang.String name, com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver)
solveGenericType
in interface Context
solveGenericType
in class AbstractJavaParserContext<com.github.javaparser.ast.expr.MethodCallExpr>
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Optional<com.github.javaparser.resolution.MethodUsage> solveMethodAsUsage(java.lang.String name, java.util.List<com.github.javaparser.resolution.types.ResolvedType> argumentsTypes, com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver)
Context
public com.github.javaparser.symbolsolver.model.resolution.SymbolReference<? extends com.github.javaparser.resolution.declarations.ResolvedValueDeclaration> solveSymbol(java.lang.String name, com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver)
public java.util.Optional<com.github.javaparser.symbolsolver.model.resolution.Value> solveSymbolAsValue(java.lang.String name, com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver)
public com.github.javaparser.symbolsolver.model.resolution.SymbolReference<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> solveMethod(java.lang.String name, java.util.List<com.github.javaparser.resolution.types.ResolvedType> argumentsTypes, boolean staticOnly, com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver)
Context