Class StatementContext<N extends com.github.javaparser.ast.stmt.Statement>

    • Constructor Detail

      • StatementContext

        public StatementContext​(N wrappedNode,
                                com.github.javaparser.resolution.TypeSolver typeSolver)
    • Method Detail

      • solveInBlock

        public static com.github.javaparser.resolution.model.SymbolReference<? extends com.github.javaparser.resolution.declarations.ResolvedValueDeclaration> solveInBlock​(String name,
                                                                                                                                                                            com.github.javaparser.resolution.TypeSolver typeSolver,
                                                                                                                                                                            com.github.javaparser.ast.stmt.Statement stmt)
      • solveInBlockAsValue

        public static Optional<com.github.javaparser.resolution.model.Value> solveInBlockAsValue​(String name,
                                                                                                 com.github.javaparser.resolution.TypeSolver typeSolver,
                                                                                                 com.github.javaparser.ast.stmt.Statement stmt)
      • solveSymbolAsValue

        public Optional<com.github.javaparser.resolution.model.Value> solveSymbolAsValue​(String name)
      • solveWithAsValue

        protected Optional<com.github.javaparser.resolution.model.Value> solveWithAsValue​(com.github.javaparser.resolution.SymbolDeclarator symbolDeclarator,
                                                                                          String name)
        Overrides:
        solveWithAsValue in class AbstractJavaParserContext<N extends com.github.javaparser.ast.stmt.Statement>
      • solveSymbol

        public com.github.javaparser.resolution.model.SymbolReference<? extends com.github.javaparser.resolution.declarations.ResolvedValueDeclaration> solveSymbol​(String name)
      • 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)
      • getIntroducedTypePatterns

        public List<com.github.javaparser.ast.expr.TypePatternExpr> getIntroducedTypePatterns()