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, waitfieldDeclarationInScope, fieldsExposedToChild, localVariableDeclarationInScope, localVariablesExposedToChild, negatedPatternExprsExposedFromChildren, parameterDeclarationInScope, parametersExposedToChild, patternExprInScope, patternExprsExposedFromChildren, patternExprsExposedToChild, solveConstructor, solveGenericType, solveGenericTypeInParentContext, solveMethod, solveMethodInParentContext, solveSymbol, solveSymbolAsValue, solveSymbolAsValueInParentContext, solveType, solveType, solveTypeInParentContext, solveTypeInParentContextprotected 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 Contextprotected 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 Contextpublic N getWrappedNode()
getWrappedNode in interface ContextCopyright © 2007–2023. All rights reserved.