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() |
protected Node |
getScope(Node node) |
N |
getWrappedNode() |
int |
hashCode() |
protected static boolean |
isQualifiedName(String name) |
Optional<MethodUsage> |
solveMethodAsUsage(String name,
List<ResolvedType> argumentsTypes)
Similar to solveMethod but we return a MethodUsage.
|
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, solveMethodInParentContext, solveSymbol, solveSymbolAsValue, solveSymbolAsValueInParentContext, solveType, solveType, solveTypeInParentContext, solveTypeInParentContext
protected TypeSolver typeSolver
public AbstractJavaParserContext(N wrappedNode, TypeSolver typeSolver)
protected static boolean isQualifiedName(String name)
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 Optional<MethodUsage> solveMethodAsUsage(String name, List<ResolvedType> argumentsTypes)
solveMethodAsUsage
in interface Context
public N getWrappedNode()
getWrappedNode
in interface Context
Copyright © 2007–2024. All rights reserved.