Class AbstractJavaParserContext<N extends com.github.javaparser.ast.Node>
- java.lang.Object
-
- com.github.javaparser.symbolsolver.javaparsermodel.contexts.AbstractJavaParserContext<N>
-
- All Implemented Interfaces:
Context
- Direct Known Subclasses:
AbstractMethodLikeDeclarationContext
,AnonymousClassDeclarationContext
,BlockStmtContext
,CatchClauseContext
,ClassOrInterfaceDeclarationContext
,CompilationUnitContext
,EnumDeclarationContext
,FieldAccessContext
,ForEachStatementContext
,ForStatementContext
,LambdaExprContext
,MethodCallExprContext
,ObjectCreationContext
,StatementContext
,SwitchEntryContext
,TryWithResourceContext
,VariableDeclarationExprContext
,VariableDeclaratorContext
public abstract class AbstractJavaParserContext<N extends com.github.javaparser.ast.Node> extends Object implements Context
- Author:
- Federico Tomassetti
-
-
Field Summary
Fields Modifier and Type Field Description protected com.github.javaparser.symbolsolver.model.resolution.TypeSolver
typeSolver
protected N
wrappedNode
-
Constructor Summary
Constructors Constructor Description AbstractJavaParserContext(N wrappedNode, com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
protected Collection<com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration>
findTypeDeclarations(Optional<com.github.javaparser.ast.expr.Expression> optScope)
Context
getParent()
N
getWrappedNode()
int
hashCode()
Optional<com.github.javaparser.resolution.types.ResolvedType>
solveGenericType(String name)
static com.github.javaparser.symbolsolver.model.resolution.SymbolReference<com.github.javaparser.resolution.declarations.ResolvedValueDeclaration>
solveWith(SymbolDeclarator symbolDeclarator, String name)
protected Optional<com.github.javaparser.symbolsolver.model.resolution.Value>
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.symbolsolver.core.resolution.Context
fieldDeclarationInScope, fieldsExposedToChild, localVariableDeclarationInScope, localVariablesExposedToChild, parameterDeclarationInScope, parametersExposedToChild, solveConstructor, solveMethod, solveMethodAsUsage, solveSymbol, solveSymbolAsValue, solveType
-
-
-
-
Field Detail
-
wrappedNode
protected N extends com.github.javaparser.ast.Node wrappedNode
-
typeSolver
protected com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver
-
-
Constructor Detail
-
AbstractJavaParserContext
public AbstractJavaParserContext(N wrappedNode, com.github.javaparser.symbolsolver.model.resolution.TypeSolver typeSolver)
-
-
Method Detail
-
solveWith
public static com.github.javaparser.symbolsolver.model.resolution.SymbolReference<com.github.javaparser.resolution.declarations.ResolvedValueDeclaration> solveWith(SymbolDeclarator symbolDeclarator, String name)
-
solveGenericType
public Optional<com.github.javaparser.resolution.types.ResolvedType> solveGenericType(String name)
- Specified by:
solveGenericType
in interfaceContext
-
solveWithAsValue
protected Optional<com.github.javaparser.symbolsolver.model.resolution.Value> solveWithAsValue(SymbolDeclarator symbolDeclarator, String name)
-
findTypeDeclarations
protected Collection<com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration> findTypeDeclarations(Optional<com.github.javaparser.ast.expr.Expression> optScope)
-
getWrappedNode
public N getWrappedNode()
-
-