Class ConditionalExprContext
java.lang.Object
com.github.javaparser.symbolsolver.javaparsermodel.contexts.AbstractJavaParserContext<com.github.javaparser.ast.expr.ConditionalExpr>
com.github.javaparser.symbolsolver.javaparsermodel.contexts.ExpressionContext<com.github.javaparser.ast.expr.ConditionalExpr>
com.github.javaparser.symbolsolver.javaparsermodel.contexts.ConditionalExprContext
- All Implemented Interfaces:
com.github.javaparser.resolution.Context
public class ConditionalExprContext
extends ExpressionContext<com.github.javaparser.ast.expr.ConditionalExpr>
-
Field Summary
Fields inherited from class AbstractJavaParserContext
typeSolver, wrappedNode -
Constructor Summary
ConstructorsConstructorDescriptionConditionalExprContext(com.github.javaparser.ast.expr.ConditionalExpr wrappedNode, com.github.javaparser.resolution.TypeSolver typeSolver) -
Method Summary
Modifier and TypeMethodDescriptionList<com.github.javaparser.ast.expr.TypePatternExpr> typePatternExprsExposedToChild(com.github.javaparser.ast.Node child) The following rules apply to a conditional expression a ? b : c: - A pattern variable introduced by a when true is definitely matched at b.Methods inherited from class ExpressionContext
solveSymbol, solveSymbolAsValueMethods inherited from class AbstractJavaParserContext
equals, findExposedPatternInParentContext, findTypeDeclarations, getParent, getScope, getWrappedNode, hashCode, negatedTypePatternExprsExposedFromChildren, solveMethodAsUsage, solveSymbolInParentContext, solveWith, solveWithAsValue, typePatternExprsDiscoveredInPattern, typePatternExprsExposedFromChildrenMethods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.github.javaparser.resolution.Context
fieldDeclarationInScope, fieldsExposedToChild, localVariableDeclarationInScope, localVariablesExposedToChild, parameterDeclarationInScope, parametersExposedToChild, solveConstructor, solveGenericType, solveGenericTypeInParentContext, solveMethod, solveMethodInParentContext, solveSymbolAsValueInParentContext, solveType, solveType, solveTypeInParentContext, solveTypeInParentContext, typePatternExprInScope
-
Constructor Details
-
ConditionalExprContext
public ConditionalExprContext(com.github.javaparser.ast.expr.ConditionalExpr wrappedNode, com.github.javaparser.resolution.TypeSolver typeSolver)
-
-
Method Details
-
typePatternExprsExposedToChild
public List<com.github.javaparser.ast.expr.TypePatternExpr> typePatternExprsExposedToChild(com.github.javaparser.ast.Node child) The following rules apply to a conditional expression a ? b : c: - A pattern variable introduced by a when true is definitely matched at b. - A pattern variable introduced by a when false is definitely matched at c. https://docs.oracle.com/javase/specs/jls/se21/html/jls-6.html#jls-6.3.1.4
-