public abstract class AbstractJavaParserContext<N extends Node> extends Object implements Context
Modifier and Type | Field and Description |
---|---|
protected TypeSolver |
typeSolver |
protected N |
wrappedNode |
Constructor and Description |
---|
AbstractJavaParserContext(N wrappedNode,
TypeSolver typeSolver) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
protected Collection<ResolvedReferenceTypeDeclaration> |
findTypeDeclarations(Optional<Expression> optScope) |
Optional<Context> |
getParent() |
N |
getWrappedNode() |
int |
hashCode() |
SymbolReference<? extends ResolvedValueDeclaration> |
solveSymbolInParentContext(String name) |
static SymbolReference<ResolvedValueDeclaration> |
solveWith(SymbolDeclarator symbolDeclarator,
String name) |
protected Optional<Value> |
solveWithAsValue(SymbolDeclarator symbolDeclarator,
String name) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
fieldDeclarationInScope, fieldsExposedToChild, localVariableDeclarationInScope, localVariablesExposedToChild, negatedPatternExprsExposedFromChildren, parameterDeclarationInScope, parametersExposedToChild, patternExprInScope, patternExprsExposedFromChildren, patternExprsExposedToChild, solveConstructor, solveGenericType, solveGenericTypeInParentContext, solveMethod, solveMethodAsUsage, solveMethodInParentContext, solveSymbol, solveSymbolAsValue, solveSymbolAsValueInParentContext, solveType, solveTypeInParentContext
protected TypeSolver typeSolver
public AbstractJavaParserContext(N wrappedNode, TypeSolver typeSolver)
public static SymbolReference<ResolvedValueDeclaration> solveWith(SymbolDeclarator symbolDeclarator, String name)
public SymbolReference<? extends ResolvedValueDeclaration> solveSymbolInParentContext(String name)
solveSymbolInParentContext
in interface Context
protected Optional<Value> solveWithAsValue(SymbolDeclarator symbolDeclarator, String name)
protected Collection<ResolvedReferenceTypeDeclaration> findTypeDeclarations(Optional<Expression> optScope)
public N getWrappedNode()
Copyright © 2007–2020. All rights reserved.