Class IfStatementContext
java.lang.Object
com.github.javaparser.symbolsolver.javaparsermodel.contexts.AbstractJavaParserContext<N>
com.github.javaparser.symbolsolver.javaparsermodel.contexts.StatementContext<IfStmt>
com.github.javaparser.symbolsolver.javaparsermodel.contexts.IfStatementContext
- All Implemented Interfaces:
Context
-
Field Summary
Fields inherited from class com.github.javaparser.symbolsolver.javaparsermodel.contexts.AbstractJavaParserContext
typeSolver, wrappedNode
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
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 }
patternExprsExposedToChild(Node child)
The pattern expressions that are declared in this immediate context and made visible to a given child.Methods inherited from class com.github.javaparser.symbolsolver.javaparsermodel.contexts.StatementContext
negatedPatternExprsExposedFromChildren, patternExprsExposedFromChildren, solveInBlock, solveInBlockAsValue, solveMethod, solveSymbol, solveSymbolAsValue, solveWithAsValue
Methods inherited from class com.github.javaparser.symbolsolver.javaparsermodel.contexts.AbstractJavaParserContext
equals, findTypeDeclarations, getParent, getScope, getWrappedNode, hashCode, isQualifiedName, solveSymbolInParentContext, solveWith
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.github.javaparser.symbolsolver.core.resolution.Context
fieldDeclarationInScope, fieldsExposedToChild, localVariableDeclarationInScope, localVariablesExposedToChild, parameterDeclarationInScope, parametersExposedToChild, patternExprInScope, solveConstructor, solveGenericType, solveGenericTypeInParentContext, solveMethodAsUsage, solveMethodInParentContext, solveSymbolAsValueInParentContext, solveType, solveTypeInParentContext
-
Constructor Details
-
IfStatementContext
-
-
Method Details
-
patternExprsExposedToChild
Description copied from interface:Context
The pattern expressions that are declared in this immediate context and made visible to a given child. This list could include values which are shadowed. -
nodeContextIsChainedIfElseIf
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 }
- Returns:
- true, If this is an if inside of an if...
-
nodeContextIsImmediateChildElse
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 }
- Returns:
- true, If this is an else inside of an if...
-
nodeContextIsThenOfIfStmt
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 }
- Returns:
- true, If this is an else inside of an if...
-
nodeContextIsConditionOfIfStmt
-