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
-
Field Summary
Fields inherited from class AbstractJavaParserContext
typeSolver, wrappedNode -
Constructor Summary
ConstructorsConstructorDescriptionStatementContext(N wrappedNode, com.github.javaparser.resolution.TypeSolver typeSolver) -
Method Summary
Modifier and TypeMethodDescriptionList<com.github.javaparser.ast.expr.TypePatternExpr> 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) static Optional<com.github.javaparser.resolution.model.Value> solveInBlockAsValue(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(String name, List<com.github.javaparser.resolution.types.ResolvedType> argumentsTypes, boolean staticOnly) com.github.javaparser.resolution.model.SymbolReference<? extends com.github.javaparser.resolution.declarations.ResolvedValueDeclaration> solveSymbol(String name) Optional<com.github.javaparser.resolution.model.Value> solveSymbolAsValue(String name) protected Optional<com.github.javaparser.resolution.model.Value> solveWithAsValue(com.github.javaparser.resolution.SymbolDeclarator symbolDeclarator, String name) Protected methodsMethods inherited from class AbstractJavaParserContext
equals, findExposedPatternInParentContext, findTypeDeclarations, getParent, getScope, getWrappedNode, hashCode, negatedTypePatternExprsExposedFromChildren, solveMethodAsUsage, solveSymbolInParentContext, solveWith, typePatternExprsDiscoveredInPattern, typePatternExprsExposedFromChildrenMethods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods 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 Details
-
StatementContext
-
-
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
-
solveSymbolAsValue
-
solveWithAsValue
protected Optional<com.github.javaparser.resolution.model.Value> solveWithAsValue(com.github.javaparser.resolution.SymbolDeclarator symbolDeclarator, String name) Description copied from class:AbstractJavaParserContextProtected methods- Overrides:
solveWithAsValuein classAbstractJavaParserContext<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
-
getIntroducedTypePatterns
-