public class TryWithResourceContext extends StatementContext<TryStmt>
typeSolver, wrappedNode
Constructor and Description |
---|
TryWithResourceContext(TryStmt wrappedNode,
TypeSolver typeSolver) |
Modifier and Type | Method and Description |
---|---|
List<VariableDeclarator> |
localVariablesExposedToChild(Node child) |
SymbolReference<ResolvedMethodDeclaration> |
solveMethod(String name,
List<ResolvedType> argumentsTypes,
boolean staticOnly) |
SymbolReference<? extends ResolvedValueDeclaration> |
solveSymbol(String name) |
Optional<Value> |
solveSymbolAsValue(String name) |
getIntroducedTypePatterns, solveInBlock, solveInBlockAsValue, solveWithAsValue
equals, findExposedPatternInParentContext, findTypeDeclarations, getParent, getScope, getWrappedNode, hashCode, negatedTypePatternExprsExposedFromChildren, solveMethodAsUsage, solveSymbolInParentContext, solveWith, typePatternExprsDiscoveredInPattern, typePatternExprsExposedFromChildren
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
fieldDeclarationInScope, fieldsExposedToChild, localVariableDeclarationInScope, parameterDeclarationInScope, parametersExposedToChild, solveConstructor, solveGenericType, solveGenericTypeInParentContext, solveMethodInParentContext, solveSymbolAsValueInParentContext, solveType, solveType, solveTypeInParentContext, solveTypeInParentContext, typePatternExprInScope, typePatternExprsExposedToChild
public TryWithResourceContext(TryStmt wrappedNode, TypeSolver typeSolver)
public Optional<Value> solveSymbolAsValue(String name)
solveSymbolAsValue
in interface Context
solveSymbolAsValue
in class StatementContext<TryStmt>
public SymbolReference<? extends ResolvedValueDeclaration> solveSymbol(String name)
solveSymbol
in interface Context
solveSymbol
in class StatementContext<TryStmt>
public SymbolReference<ResolvedMethodDeclaration> solveMethod(String name, List<ResolvedType> argumentsTypes, boolean staticOnly)
solveMethod
in interface Context
solveMethod
in class StatementContext<TryStmt>
public List<VariableDeclarator> localVariablesExposedToChild(Node child)
Copyright © 2007–2024. All rights reserved.