public class BinaryExprContext extends AbstractJavaParserContext<BinaryExpr>
typeSolver, wrappedNode| Constructor and Description |
|---|
BinaryExprContext(BinaryExpr wrappedNode,
TypeSolver typeSolver) |
| Modifier and Type | Method and 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.
|
equals, findTypeDeclarations, getParent, getWrappedNode, hashCode, solveSymbolInParentContext, solveWith, solveWithAsValueclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitfieldDeclarationInScope, fieldsExposedToChild, localVariableDeclarationInScope, localVariablesExposedToChild, parameterDeclarationInScope, parametersExposedToChild, solveConstructor, solveGenericType, solveGenericTypeInParentContext, solveMethod, solveMethodAsUsage, solveMethodInParentContext, solveSymbol, solveSymbolAsValue, solveSymbolAsValueInParentContext, solveType, solveTypeInParentContextpublic BinaryExprContext(BinaryExpr wrappedNode, TypeSolver typeSolver)
public List<PatternExpr> patternExprsExposedFromChildren()
public List<PatternExpr> negatedPatternExprsExposedFromChildren()
public List<PatternExpr> patternExprsExposedToChild(Node child)
Contextpublic Optional<PatternExpr> patternExprInScope(String name)
Context
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
}
}
Copyright © 2007–2020. All rights reserved.