Class AbstractJavaParserContext<N extends Node>
java.lang.Object
com.github.javaparser.symbolsolver.javaparsermodel.contexts.AbstractJavaParserContext<N>
- All Implemented Interfaces:
Context
- Direct Known Subclasses:
AbstractMethodLikeDeclarationContext,AnnotationDeclarationContext,AnonymousClassDeclarationContext,ArrayAccessExprContext,BinaryExprContext,BlockStmtContext,CatchClauseContext,ClassOrInterfaceDeclarationContext,ClassOrInterfaceDeclarationExtendsContext,CompilationUnitContext,EnclosedExprContext,EnumDeclarationContext,FieldAccessContext,ForEachStatementContext,ForStatementContext,InstanceOfExprContext,LambdaExprContext,MethodCallExprContext,MethodReferenceExprContext,ObjectCreationContext,StatementContext,SwitchEntryContext,TryWithResourceContext,UnaryExprContext,VariableDeclarationExprContext,VariableDeclaratorContext
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected Collection<ResolvedReferenceTypeDeclaration>findTypeDeclarations(Optional<Expression> optScope) protected NodeReturns the node wrapped in the contextinthashCode()protected static booleanisQualifiedName(String name) solveMethodAsUsage(String name, List<ResolvedType> argumentsTypes) Similar to solveMethod but we return a MethodUsage.SymbolReference<? extends ResolvedValueDeclaration>solveWith(SymbolDeclarator symbolDeclarator, String name) solveWithAsValue(SymbolDeclarator symbolDeclarator, String name) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.github.javaparser.resolution.Context
fieldDeclarationInScope, fieldsExposedToChild, localVariableDeclarationInScope, localVariablesExposedToChild, negatedPatternExprsExposedFromChildren, parameterDeclarationInScope, parametersExposedToChild, patternExprInScope, patternExprsExposedFromChildren, patternExprsExposedToChild, solveConstructor, solveGenericType, solveGenericTypeInParentContext, solveMethod, solveMethodInParentContext, solveSymbol, solveSymbolAsValue, solveSymbolAsValueInParentContext, solveType, solveType, solveTypeInParentContext, solveTypeInParentContext
-
Field Details
-
wrappedNode
-
typeSolver
-
-
Constructor Details
-
AbstractJavaParserContext
-
-
Method Details
-
isQualifiedName
-
solveWith
public static SymbolReference<ResolvedValueDeclaration> solveWith(SymbolDeclarator symbolDeclarator, String name) -
equals
-
hashCode
public int hashCode() -
getParent
-
getScope
-
solveSymbolInParentContext
- Specified by:
solveSymbolInParentContextin interfaceContext
-
solveWithAsValue
-
findTypeDeclarations
protected Collection<ResolvedReferenceTypeDeclaration> findTypeDeclarations(Optional<Expression> optScope) -
solveMethodAsUsage
Similar to solveMethod but we return a MethodUsage. A MethodUsage corresponds to a MethodDeclaration plus the resolved type variables.- Specified by:
solveMethodAsUsagein interfaceContext
-
getWrappedNode
Description copied from interface:ContextReturns the node wrapped in the context- Specified by:
getWrappedNodein interfaceContext
-