public class ForStatementContext extends StatementContext<ForStmt>
typeSolver, wrappedNode| Constructor and Description |
|---|
ForStatementContext(ForStmt wrappedNode,
TypeSolver typeSolver) |
| Modifier and Type | Method and Description |
|---|---|
List<TypePatternExpr> |
getIntroducedTypePatterns()
The following rules apply to a basic for statement:
- A pattern variable is introduced by a basic for statement iff
(i) it is introduced by the condition expression when false and
(ii) the contained statement, S, does not contain a reachable break for which the basic for statement is the
break target.
|
List<VariableDeclarator> |
localVariablesExposedToChild(Node child) |
SymbolReference<ResolvedMethodDeclaration> |
solveMethod(String name,
List<ResolvedType> argumentsTypes,
boolean staticOnly) |
SymbolReference<? extends ResolvedValueDeclaration> |
solveSymbol(String name) |
List<TypePatternExpr> |
typePatternExprsExposedToChild(Node child)
The following rules apply to a basic for statement:
- A pattern variable introduced by the condition expression when true is definitely matched at both the
incrementation part and the contained statement.
|
solveInBlock, solveInBlockAsValue, solveSymbolAsValue, solveWithAsValueequals, findExposedPatternInParentContext, findTypeDeclarations, getParent, getScope, getWrappedNode, hashCode, negatedTypePatternExprsExposedFromChildren, solveMethodAsUsage, solveSymbolInParentContext, solveWith, typePatternExprsDiscoveredInPattern, typePatternExprsExposedFromChildrenclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitfieldDeclarationInScope, fieldsExposedToChild, localVariableDeclarationInScope, parameterDeclarationInScope, parametersExposedToChild, solveConstructor, solveGenericType, solveGenericTypeInParentContext, solveMethodInParentContext, solveSymbolAsValueInParentContext, solveType, solveType, solveTypeInParentContext, solveTypeInParentContext, typePatternExprInScopepublic ForStatementContext(ForStmt wrappedNode, TypeSolver typeSolver)
public List<TypePatternExpr> typePatternExprsExposedToChild(Node child)
public List<TypePatternExpr> getIntroducedTypePatterns()
getIntroducedTypePatterns in class StatementContext<ForStmt>public SymbolReference<? extends ResolvedValueDeclaration> solveSymbol(String name)
solveSymbol in interface ContextsolveSymbol in class StatementContext<ForStmt>public SymbolReference<ResolvedMethodDeclaration> solveMethod(String name, List<ResolvedType> argumentsTypes, boolean staticOnly)
solveMethod in interface ContextsolveMethod in class StatementContext<ForStmt>public List<VariableDeclarator> localVariablesExposedToChild(Node child)
Copyright © 2007–2025. All rights reserved.