Class CompilationUnitContext
- java.lang.Object
-
- com.github.javaparser.symbolsolver.javaparsermodel.contexts.AbstractJavaParserContext<CompilationUnit>
-
- com.github.javaparser.symbolsolver.javaparsermodel.contexts.CompilationUnitContext
-
- All Implemented Interfaces:
Context
public class CompilationUnitContext extends AbstractJavaParserContext<CompilationUnit>
- Author:
- Federico Tomassetti
-
-
Field Summary
-
Fields inherited from class com.github.javaparser.symbolsolver.javaparsermodel.contexts.AbstractJavaParserContext
typeSolver, wrappedNode
-
-
Constructor Summary
Constructors Constructor Description CompilationUnitContext(CompilationUnit wrappedNode, TypeSolver typeSolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ResolvedFieldDeclaration>
fieldsExposedToChild(Node child)
protected boolean
isCompositeName(String name)
SymbolReference<ResolvedMethodDeclaration>
solveMethod(String name, List<ResolvedType> argumentsTypes, boolean staticOnly)
SymbolReference<? extends ResolvedValueDeclaration>
solveSymbol(String name)
SymbolReference<ResolvedTypeDeclaration>
solveType(String name, List<ResolvedType> typeArguments)
-
Methods inherited from class com.github.javaparser.symbolsolver.javaparsermodel.contexts.AbstractJavaParserContext
equals, findExposedPatternInParentContext, findTypeDeclarations, getParent, getScope, getWrappedNode, hashCode, negatedTypePatternExprsExposedFromChildren, solveMethodAsUsage, solveSymbolInParentContext, solveWith, solveWithAsValue, typePatternExprsDiscoveredInPattern, typePatternExprsExposedFromChildren
-
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, localVariableDeclarationInScope, localVariablesExposedToChild, parameterDeclarationInScope, parametersExposedToChild, solveConstructor, solveGenericType, solveGenericTypeInParentContext, solveMethodInParentContext, solveSymbolAsValue, solveSymbolAsValueInParentContext, solveType, solveTypeInParentContext, solveTypeInParentContext, typePatternExprInScope, typePatternExprsExposedToChild
-
-
-
-
Constructor Detail
-
CompilationUnitContext
public CompilationUnitContext(CompilationUnit wrappedNode, TypeSolver typeSolver)
-
-
Method Detail
-
solveSymbol
public SymbolReference<? extends ResolvedValueDeclaration> solveSymbol(String name)
-
solveType
public SymbolReference<ResolvedTypeDeclaration> solveType(String name, List<ResolvedType> typeArguments)
-
isCompositeName
protected boolean isCompositeName(String name)
-
solveMethod
public SymbolReference<ResolvedMethodDeclaration> solveMethod(String name, List<ResolvedType> argumentsTypes, boolean staticOnly)
-
fieldsExposedToChild
public List<ResolvedFieldDeclaration> fieldsExposedToChild(Node child)
-
-