public class IfStatementContext extends StatementContext<IfStmt>
typeSolver, wrappedNode| Constructor and Description |
|---|
IfStatementContext(IfStmt wrappedNode,
TypeSolver typeSolver) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
nodeContextIsChainedIfElseIf(Context parentContext)
if() {
// Does not match here (doesn't need to, as stuff inside of the if() is likely in context..)
} else if() {
// Matches here
} else {
// Matches here
}
|
boolean |
nodeContextIsConditionOfIfStmt(Context parentContext) |
boolean |
nodeContextIsImmediateChildElse(Context parentContext)
if() {
// Does not match here (doesn't need to, as stuff inside of the if() is likely in context..)
} else {
// Does not match here, as the else block is a field inside of an ifstmt as opposed to child
}
|
boolean |
nodeContextIsThenOfIfStmt(Context parentContext)
if() {
// Does not match here (doesn't need to, as stuff inside of the if() is likely in context..)
} else {
// Does not match here, as the else block is a field inside of an ifstmt as opposed to child
}
|
List<PatternExpr> |
patternExprsExposedToChild(Node child) |
negatedPatternExprsExposedFromChildren, patternExprsExposedFromChildren, solveInBlock, solveInBlockAsValue, solveMethod, solveSymbol, solveSymbolAsValue, solveWithAsValueequals, findTypeDeclarations, getParent, getScope, getWrappedNode, hashCode, isQualifiedName, solveMethodAsUsage, solveSymbolInParentContext, solveWithclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitfieldDeclarationInScope, fieldsExposedToChild, localVariableDeclarationInScope, localVariablesExposedToChild, parameterDeclarationInScope, parametersExposedToChild, patternExprInScope, solveConstructor, solveGenericType, solveGenericTypeInParentContext, solveMethodInParentContext, solveSymbolAsValueInParentContext, solveType, solveType, solveTypeInParentContext, solveTypeInParentContextpublic IfStatementContext(IfStmt wrappedNode, TypeSolver typeSolver)
public List<PatternExpr> patternExprsExposedToChild(Node child)
public boolean nodeContextIsChainedIfElseIf(Context parentContext)
if() {
// Does not match here (doesn't need to, as stuff inside of the if() is likely in context..)
} else if() {
// Matches here
} else {
// Matches here
}
public boolean nodeContextIsImmediateChildElse(Context parentContext)
if() {
// Does not match here (doesn't need to, as stuff inside of the if() is likely in context..)
} else {
// Does not match here, as the else block is a field inside of an ifstmt as opposed to child
}
public boolean nodeContextIsThenOfIfStmt(Context parentContext)
if() {
// Does not match here (doesn't need to, as stuff inside of the if() is likely in context..)
} else {
// Does not match here, as the else block is a field inside of an ifstmt as opposed to child
}
public boolean nodeContextIsConditionOfIfStmt(Context parentContext)
Copyright © 2007–2024. All rights reserved.