Class JavaSymbol.TypeJavaSymbol

    • Method Detail

      • members

        public Scope members()
      • typeParameters

        public Scope typeParameters()
      • getFullyQualifiedName

        public String getFullyQualifiedName()
      • superTypes

        public Set<ClassJavaType> superTypes()
        Includes superclass and super interface hierarchy.
        Returns:
        list of classTypes.
      • 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.
      • 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 JavaSymbol
        Returns:
        the Tree of the declaration of this symbol. Null if declaration does not occur in the currently analyzed file.