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)
The pattern expressions that are declared in this immediate context and made visible to a given child.
|
negatedPatternExprsExposedFromChildren, patternExprsExposedFromChildren, solveInBlock, solveInBlockAsValue, solveMethod, solveSymbol, solveSymbolAsValue, solveWithAsValue
equals, findTypeDeclarations, getParent, getScope, getWrappedNode, hashCode, isQualifiedName, solveSymbolInParentContext, solveWith
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
fieldDeclarationInScope, fieldsExposedToChild, localVariableDeclarationInScope, localVariablesExposedToChild, parameterDeclarationInScope, parametersExposedToChild, patternExprInScope, solveConstructor, solveGenericType, solveGenericTypeInParentContext, solveMethodAsUsage, solveMethodInParentContext, solveSymbolAsValueInParentContext, solveType, solveTypeInParentContext
public IfStatementContext(IfStmt wrappedNode, TypeSolver typeSolver)
public List<PatternExpr> patternExprsExposedToChild(Node child)
Context
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–2021. All rights reserved.