Class BinaryExprContext
- java.lang.Object
-
- com.github.javaparser.symbolsolver.javaparsermodel.contexts.AbstractJavaParserContext<BinaryExpr>
-
- com.github.javaparser.symbolsolver.javaparsermodel.contexts.BinaryExprContext
-
- All Implemented Interfaces:
Context
public class BinaryExprContext extends AbstractJavaParserContext<BinaryExpr>
-
-
Field Summary
-
Fields inherited from class com.github.javaparser.symbolsolver.javaparsermodel.contexts.AbstractJavaParserContext
typeSolver, wrappedNode
-
-
Constructor Summary
Constructors Constructor Description BinaryExprContext(BinaryExpr wrappedNode, TypeSolver typeSolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<PatternExpr>
negatedPatternExprsExposedFromChildren()
Optional<PatternExpr>
patternExprInScope(String name)
With respect to solving, the AST "parent" of a block statement is not necessarily the same as the scope parent.List<PatternExpr>
patternExprsExposedFromChildren()
List<PatternExpr>
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.AbstractJavaParserContext
equals, findTypeDeclarations, getParent, getScope, getWrappedNode, hashCode, isQualifiedName, solveMethodAsUsage, solveSymbolInParentContext, solveWith, solveWithAsValue
-
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, solveSymbol, solveSymbolAsValue, solveSymbolAsValueInParentContext, solveType, solveType, solveTypeInParentContext, solveTypeInParentContext
-
-
-
-
Constructor Detail
-
BinaryExprContext
public BinaryExprContext(BinaryExpr wrappedNode, TypeSolver typeSolver)
-
-
Method Detail
-
patternExprsExposedFromChildren
public List<PatternExpr> patternExprsExposedFromChildren()
-
negatedPatternExprsExposedFromChildren
public List<PatternExpr> negatedPatternExprsExposedFromChildren()
-
patternExprsExposedToChild
public List<PatternExpr> patternExprsExposedToChild(Node child)
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.
-
patternExprInScope
public Optional<PatternExpr> patternExprInScope(String name)
Description copied from interface:Context
With respect to solving, the AST "parent" of a block statement is not necessarily the same as the scope parent.
Example:
public String x() { if(x) { // Parent node: the block attached to the method declaration // Scope-parent: the block attached to the method declaration } else if { // Parent node: the if // Scope-parent: the block attached to the method declaration } else { // Parent node: the elseif // Scope-parent: the block attached to the method declaration } }
-
-