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, getScope, getWrappedNode, hashCode, isQualifiedName, solveSymbolInParentContext, solveWith, solveWithAsValue
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
fieldDeclarationInScope, fieldsExposedToChild, localVariableDeclarationInScope, localVariablesExposedToChild, parameterDeclarationInScope, parametersExposedToChild, solveConstructor, solveGenericType, solveGenericTypeInParentContext, solveMethod, solveMethodAsUsage, solveMethodInParentContext, solveSymbol, solveSymbolAsValue, solveSymbolAsValueInParentContext, solveType, solveTypeInParentContext
public BinaryExprContext(BinaryExpr wrappedNode, TypeSolver typeSolver)
public List<PatternExpr> patternExprsExposedFromChildren()
public List<PatternExpr> negatedPatternExprsExposedFromChildren()
public List<PatternExpr> patternExprsExposedToChild(Node child)
Context
public 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–2021. All rights reserved.