Class MethodCallExprContext

  • All Implemented Interfaces:
    com.github.javaparser.resolution.Context

    public class MethodCallExprContext
    extends ExpressionContext<com.github.javaparser.ast.expr.MethodCallExpr>
    • Constructor Detail

      • MethodCallExprContext

        public MethodCallExprContext​(com.github.javaparser.ast.expr.MethodCallExpr wrappedNode,
                                     com.github.javaparser.resolution.TypeSolver typeSolver)
    • Method Detail

      • solveGenericType

        public Optional<com.github.javaparser.resolution.types.ResolvedType> solveGenericType​(String name)
      • solveMethodAsUsage

        public Optional<com.github.javaparser.resolution.MethodUsage> solveMethodAsUsage​(String name,
                                                                                         List<com.github.javaparser.resolution.types.ResolvedType> argumentsTypes)
        Description copied from class: AbstractJavaParserContext
        Similar to solveMethod but we return a MethodUsage. A MethodUsage corresponds to a MethodDeclaration plus the resolved type variables.
        Specified by:
        solveMethodAsUsage in interface com.github.javaparser.resolution.Context
        Overrides:
        solveMethodAsUsage in class AbstractJavaParserContext<com.github.javaparser.ast.expr.MethodCallExpr>
      • solveMethod

        public com.github.javaparser.resolution.model.SymbolReference<com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration> solveMethod​(String name,
                                                                                                                                                           List<com.github.javaparser.resolution.types.ResolvedType> argumentsTypes,
                                                                                                                                                           boolean staticOnly)