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

    • Constructor Summary

      Constructors 
      Constructor Description
      StatementContext​(N wrappedNode, com.github.javaparser.resolution.TypeSolver typeSolver)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<com.github.javaparser.ast.expr.TypePatternExpr> getIntroducedTypePatterns()  
      static com.github.javaparser.resolution.model.SymbolReference<? extends com.github.javaparser.resolution.declarations.ResolvedValueDeclaration> solveInBlock​(java.lang.String name, com.github.javaparser.resolution.TypeSolver typeSolver, com.github.javaparser.ast.stmt.Statement stmt)  
      static java.util.Optional<com.github.javaparser.resolution.model.Value> solveInBlockAsValue​(java.lang.String name, com.github.javaparser.resolution.TypeSolver typeSolver, com.github.javaparser.ast.stmt.Statement stmt)  
      com.github.javaparser.resolution.model.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.resolution.model.SymbolReference<? extends com.github.javaparser.resolution.declarations.ResolvedValueDeclaration> solveSymbol​(java.lang.String name)  
      java.util.Optional<com.github.javaparser.resolution.model.Value> solveSymbolAsValue​(java.lang.String name)  
      protected java.util.Optional<com.github.javaparser.resolution.model.Value> solveWithAsValue​(com.github.javaparser.resolution.SymbolDeclarator symbolDeclarator, java.lang.String name)  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.github.javaparser.resolution.Context

        fieldDeclarationInScope, fieldsExposedToChild, localVariableDeclarationInScope, localVariablesExposedToChild, parameterDeclarationInScope, parametersExposedToChild, solveConstructor, solveGenericType, solveGenericTypeInParentContext, solveMethodInParentContext, solveSymbolAsValueInParentContext, solveType, solveType, solveTypeInParentContext, solveTypeInParentContext, typePatternExprInScope, typePatternExprsExposedToChild
    • 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​(java.lang.String name,
                                                                                                                                                                            com.github.javaparser.resolution.TypeSolver typeSolver,
                                                                                                                                                                            com.github.javaparser.ast.stmt.Statement stmt)
      • solveInBlockAsValue

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

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

        protected java.util.Optional<com.github.javaparser.resolution.model.Value> solveWithAsValue​(com.github.javaparser.resolution.SymbolDeclarator symbolDeclarator,
                                                                                                    java.lang.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​(java.lang.String name)
      • solveMethod

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

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