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

java.lang.Object
com.github.javaparser.symbolsolver.javaparsermodel.contexts.AbstractJavaParserContext<N>
com.github.javaparser.symbolsolver.javaparsermodel.contexts.StatementContext<N>
All Implemented Interfaces:
com.github.javaparser.resolution.Context
Direct Known Subclasses:
BlockStmtContext, DoStatementContext, ForEachStatementContext, ForStatementContext, IfStatementContext, TryWithResourceContext, WhileStatementContext

public class StatementContext<N extends com.github.javaparser.ast.stmt.Statement> extends AbstractJavaParserContext<N>
Author:
Federico Tomassetti
  • Constructor Details

    • StatementContext

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

    • 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)
      Description copied from class: AbstractJavaParserContext
      Protected methods
      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()