public class WhileStatementContext extends StatementContext<WhileStmt>
typeSolver, wrappedNode| Constructor and Description |
|---|
WhileStatementContext(WhileStmt wrappedNode,
TypeSolver typeSolver) |
| Modifier and Type | Method and Description |
|---|---|
List<TypePatternExpr> |
getIntroducedTypePatterns()
The following rules apply to a statement while (e) S:
- A pattern variable is introduced by while (e) S iff
(i) it is introduced by e when false and
(ii) S does not contain a reachable break statement for which the while statement is the break target
https://docs.oracle.com/javase/specs/jls/se21/html/jls-6.html#jls-6.3.2.3
|
List<TypePatternExpr> |
typePatternExprsExposedToChild(Node child)
The following rules apply to a statement while (e) S:
- A pattern variable introduced by e when true is definitely matched at S.
|
solveInBlock, solveInBlockAsValue, solveMethod, solveSymbol, solveSymbolAsValue, solveWithAsValueequals, findExposedPatternInParentContext, findTypeDeclarations, getParent, getScope, getWrappedNode, hashCode, negatedTypePatternExprsExposedFromChildren, solveMethodAsUsage, solveSymbolInParentContext, solveWith, typePatternExprsDiscoveredInPattern, typePatternExprsExposedFromChildrenclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitfieldDeclarationInScope, fieldsExposedToChild, localVariableDeclarationInScope, localVariablesExposedToChild, parameterDeclarationInScope, parametersExposedToChild, solveConstructor, solveGenericType, solveGenericTypeInParentContext, solveMethodInParentContext, solveSymbolAsValueInParentContext, solveType, solveType, solveTypeInParentContext, solveTypeInParentContext, typePatternExprInScopepublic WhileStatementContext(WhileStmt wrappedNode, TypeSolver typeSolver)
public List<TypePatternExpr> typePatternExprsExposedToChild(Node child)
public List<TypePatternExpr> getIntroducedTypePatterns()
getIntroducedTypePatterns in class StatementContext<WhileStmt>Copyright © 2007–2024. All rights reserved.