Class ConditionalExprContext
- java.lang.Object
-
- com.github.javaparser.symbolsolver.javaparsermodel.contexts.AbstractJavaParserContext<N>
-
- com.github.javaparser.symbolsolver.javaparsermodel.contexts.ExpressionContext<ConditionalExpr>
-
- com.github.javaparser.symbolsolver.javaparsermodel.contexts.ConditionalExprContext
-
- All Implemented Interfaces:
Context
public class ConditionalExprContext extends ExpressionContext<ConditionalExpr>
-
-
Field Summary
-
Fields inherited from class com.github.javaparser.symbolsolver.javaparsermodel.contexts.AbstractJavaParserContext
typeSolver, wrappedNode
-
-
Constructor Summary
Constructors Constructor Description ConditionalExprContext(ConditionalExpr wrappedNode, TypeSolver typeSolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<TypePatternExpr>
typePatternExprsExposedToChild(Node child)
The following rules apply to a conditional expression a ?-
Methods inherited from class com.github.javaparser.symbolsolver.javaparsermodel.contexts.ExpressionContext
solveSymbol, solveSymbolAsValue
-
Methods inherited from class com.github.javaparser.symbolsolver.javaparsermodel.contexts.AbstractJavaParserContext
equals, findExposedPatternInParentContext, findTypeDeclarations, getParent, getScope, getWrappedNode, hashCode, negatedTypePatternExprsExposedFromChildren, solveMethodAsUsage, solveSymbolInParentContext, solveWith, solveWithAsValue, typePatternExprsDiscoveredInPattern, typePatternExprsExposedFromChildren
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods 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 Detail
-
ConditionalExprContext
public ConditionalExprContext(ConditionalExpr wrappedNode, TypeSolver typeSolver)
-
-
Method Detail
-
typePatternExprsExposedToChild
public List<TypePatternExpr> typePatternExprsExposedToChild(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
-
-