Class Symbols.UnkownTypeSymbol

All Implemented Interfaces:
Symbol, Symbol.TypeSymbol
Enclosing class:
Symbols

public static final class Symbols.UnkownTypeSymbol extends Symbols.UnknownSymbol implements Symbol.TypeSymbol
  • Constructor Details

    • UnkownTypeSymbol

      public UnkownTypeSymbol()
  • Method Details

    • declaration

      public ClassTree declaration()
      Description copied from interface: Symbol
      Declaration node of this symbol. Currently, only works for declaration within the same file.
      Specified by:
      declaration in interface Symbol
      Specified by:
      declaration in interface Symbol.TypeSymbol
      Overrides:
      declaration in class Symbols.UnknownSymbol
      Returns:
      the Tree of the declaration of this symbol. Null if declaration does not occur in the currently analyzed file.
    • superTypes

      public Set<Type> superTypes()
      Specified by:
      superTypes in interface Symbol.TypeSymbol
      Returns:
      the set of types that are super types of this type (extended classes and implemented interfaces).
    • outermostClass

      public Symbol.TypeSymbol outermostClass()
      Specified by:
      outermostClass in interface Symbol.TypeSymbol
      Returns:
      the most outer class containing this symbol.
    • isAnnotation

      public boolean isAnnotation()
      Specified by:
      isAnnotation in interface Symbol.TypeSymbol
      Returns:
      true if this type is an annotation.
    • superClass

      public Type superClass()
      Description copied from interface: Symbol.TypeSymbol
      Returns the superclass of this type symbol.
      Specified by:
      superClass in interface Symbol.TypeSymbol
      Returns:
      null for java.lang.Object, the superclass for every other type.
    • interfaces

      public List<Type> interfaces()
      Description copied from interface: Symbol.TypeSymbol
      Interfaces implemented by this type.
      Specified by:
      interfaces in interface Symbol.TypeSymbol
      Returns:
      an empty list if this type does not implement any interface.
    • memberSymbols

      public Collection<Symbol> memberSymbols()
      Description copied from interface: Symbol.TypeSymbol
      List of symbols defined by this type symbols. This will not return any inherited symbol.
      Specified by:
      memberSymbols in interface Symbol.TypeSymbol
      Returns:
      The collection of symbols defined by this type.
    • lookupSymbols

      public Collection<Symbol> lookupSymbols(String name)
      Description copied from interface: Symbol.TypeSymbol
      Lookup symbols accessible from this type with the name passed in parameter.
      Specified by:
      lookupSymbols in interface Symbol.TypeSymbol
      Parameters:
      name - name of searched symbol.
      Returns:
      A collection of symbol matching the looked up name.