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 TypeMethodDescriptionboolean
protected Collection<ResolvedReferenceTypeDeclaration>
findTypeDeclarations
(Optional<Expression> optScope) protected Node
Returns the node wrapped in the contextint
hashCode()
protected static boolean
isQualifiedName
(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, wait
Methods 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:
solveSymbolInParentContext
in 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:
solveMethodAsUsage
in interfaceContext
-
getWrappedNode
Description copied from interface:Context
Returns the node wrapped in the context- Specified by:
getWrappedNode
in interfaceContext
-