Class ClassOrInterfaceDeclarationExtendsContext
java.lang.Object
com.github.javaparser.symbolsolver.javaparsermodel.contexts.AbstractJavaParserContext<ClassOrInterfaceDeclaration>
com.github.javaparser.symbolsolver.javaparsermodel.contexts.ClassOrInterfaceDeclarationExtendsContext
- All Implemented Interfaces:
Context
public class ClassOrInterfaceDeclarationExtendsContext
extends AbstractJavaParserContext<ClassOrInterfaceDeclaration>
Limited version of ClassOrInterfaceDeclarationContext that only resolves type parameters for use by
extends and implements part of declaration.
-
Field Summary
Fields inherited from class com.github.javaparser.symbolsolver.javaparsermodel.contexts.AbstractJavaParserContext
typeSolver, wrappedNode
-
Constructor Summary
ConstructorsConstructorDescriptionClassOrInterfaceDeclarationExtendsContext(ClassOrInterfaceDeclaration wrappedNode, TypeSolver typeSolver)
-
Method Summary
Modifier and TypeMethodDescriptionDefault to being unable to solve any reference in this context, delegating solving to the parent context.Methods inherited from class com.github.javaparser.symbolsolver.javaparsermodel.contexts.AbstractJavaParserContext
equals, findTypeDeclarations, getParent, getScope, getWrappedNode, hashCode, isQualifiedName, solveSymbolInParentContext, solveWith, solveWithAsValue
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, negatedPatternExprsExposedFromChildren, parameterDeclarationInScope, parametersExposedToChild, patternExprInScope, patternExprsExposedFromChildren, patternExprsExposedToChild, solveConstructor, solveGenericType, solveGenericTypeInParentContext, solveMethod, solveMethodAsUsage, solveMethodInParentContext, solveSymbol, solveSymbolAsValue, solveSymbolAsValueInParentContext, solveTypeInParentContext
-
Constructor Details
-
ClassOrInterfaceDeclarationExtendsContext
public ClassOrInterfaceDeclarationExtendsContext(ClassOrInterfaceDeclaration wrappedNode, TypeSolver typeSolver)
-
-
Method Details
-
solveType
Description copied from interface:Context
Default to being unable to solve any reference in this context, delegating solving to the parent context. Contexts which exist as the "parent" of a resolvable type will override this method. For example, a compilation unit can contain classes. A class declaration can also contain types (e.g. a subclass).- Parameters:
name
- For example, solvingList
orjava.util.List
.- Returns:
- The declaration associated with the given type name.
-