public class VariableDeclarationExprContext extends AbstractJavaParserContext<VariableDeclarationExpr>
typeSolver, wrappedNode
Constructor and Description |
---|
VariableDeclarationExprContext(VariableDeclarationExpr wrappedNode,
TypeSolver typeSolver) |
Modifier and Type | Method and Description |
---|---|
List<VariableDeclarator> |
localVariablesExposedToChild(Node child)
The local variables that are declared in this immediate context and made visible to a given child.
|
List<PatternExpr> |
negatedPatternExprsExposedFromChildren() |
List<PatternExpr> |
patternExprsExposedFromChildren() |
SymbolReference<? extends ResolvedValueDeclaration> |
solveSymbol(String name)
Used where a symbol is being used (e.g. solving
x when used as an argument doubleThis(x) , or calculation return x * 2; ). |
equals, findTypeDeclarations, getParent, getScope, getWrappedNode, hashCode, isQualifiedName, solveSymbolInParentContext, solveWith, solveWithAsValue
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
fieldDeclarationInScope, fieldsExposedToChild, localVariableDeclarationInScope, parameterDeclarationInScope, parametersExposedToChild, patternExprInScope, patternExprsExposedToChild, solveConstructor, solveGenericType, solveGenericTypeInParentContext, solveMethod, solveMethodAsUsage, solveMethodInParentContext, solveSymbolAsValue, solveSymbolAsValueInParentContext, solveType, solveType, solveTypeInParentContext, solveTypeInParentContext
public VariableDeclarationExprContext(VariableDeclarationExpr wrappedNode, TypeSolver typeSolver)
public SymbolReference<? extends ResolvedValueDeclaration> solveSymbol(String name)
Context
x
when used as an argument doubleThis(x)
, or calculation return x * 2;
).name
- the variable / reference / identifier used.public List<VariableDeclarator> localVariablesExposedToChild(Node child)
Context
public List<PatternExpr> patternExprsExposedFromChildren()
public List<PatternExpr> negatedPatternExprsExposedFromChildren()
Copyright © 2007–2022. All rights reserved.