Class TryWithResourceContext
- java.lang.Object
-
- com.github.javaparser.symbolsolver.javaparsermodel.contexts.AbstractJavaParserContext<N>
-
- com.github.javaparser.symbolsolver.javaparsermodel.contexts.StatementContext<com.github.javaparser.ast.stmt.TryStmt>
-
- com.github.javaparser.symbolsolver.javaparsermodel.contexts.TryWithResourceContext
-
- All Implemented Interfaces:
com.github.javaparser.resolution.Context
public class TryWithResourceContext extends StatementContext<com.github.javaparser.ast.stmt.TryStmt>
-
-
Field Summary
-
Fields inherited from class com.github.javaparser.symbolsolver.javaparsermodel.contexts.AbstractJavaParserContext
typeSolver, wrappedNode
-
-
Constructor Summary
Constructors Constructor Description TryWithResourceContext(com.github.javaparser.ast.stmt.TryStmt wrappedNode, com.github.javaparser.resolution.TypeSolver typeSolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<com.github.javaparser.ast.body.VariableDeclarator>localVariablesExposedToChild(com.github.javaparser.ast.Node child)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)-
Methods inherited from class com.github.javaparser.symbolsolver.javaparsermodel.contexts.StatementContext
getIntroducedTypePatterns, solveInBlock, solveInBlockAsValue, solveWithAsValue
-
Methods inherited from class com.github.javaparser.symbolsolver.javaparsermodel.contexts.AbstractJavaParserContext
equals, findExposedPatternInParentContext, findTypeDeclarations, getParent, getScope, getWrappedNode, hashCode, negatedTypePatternExprsExposedFromChildren, solveMethodAsUsage, solveSymbolInParentContext, solveWith, typePatternExprsDiscoveredInPattern, typePatternExprsExposedFromChildren
-
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, parameterDeclarationInScope, parametersExposedToChild, solveConstructor, solveGenericType, solveGenericTypeInParentContext, solveMethodInParentContext, solveSymbolAsValueInParentContext, solveType, solveType, solveTypeInParentContext, solveTypeInParentContext, typePatternExprInScope, typePatternExprsExposedToChild
-
-
-
-
Method Detail
-
solveSymbolAsValue
public Optional<com.github.javaparser.resolution.model.Value> solveSymbolAsValue(String name)
- Specified by:
solveSymbolAsValuein interfacecom.github.javaparser.resolution.Context- Overrides:
solveSymbolAsValuein classStatementContext<com.github.javaparser.ast.stmt.TryStmt>
-
solveSymbol
public com.github.javaparser.resolution.model.SymbolReference<? extends com.github.javaparser.resolution.declarations.ResolvedValueDeclaration> solveSymbol(String name)
- Specified by:
solveSymbolin interfacecom.github.javaparser.resolution.Context- Overrides:
solveSymbolin classStatementContext<com.github.javaparser.ast.stmt.TryStmt>
-
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)
- Specified by:
solveMethodin interfacecom.github.javaparser.resolution.Context- Overrides:
solveMethodin classStatementContext<com.github.javaparser.ast.stmt.TryStmt>
-
localVariablesExposedToChild
public List<com.github.javaparser.ast.body.VariableDeclarator> localVariablesExposedToChild(com.github.javaparser.ast.Node child)
-
-