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.
  • Constructor Details

  • Method Details

    • solveType

      public SymbolReference<ResolvedTypeDeclaration> solveType(String name)
      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, solving List or java.util.List.
      Returns:
      The declaration associated with the given type name.