PackageSymbol

final
Companion
object
class Symbol
class Object
trait Matchable
class Any

Type members

Value members

Concrete methods

final
def declarations(using Context): List[Symbol]
final
def getDecl(name: Name)(using Context): Option[Symbol]
final
def getDecls(name: Name)(using Context): List[Symbol]
final
def getPackageDecl(name: SimpleName)(using Context): Option[PackageSymbol]

Gets the subpackage with the specified name, if it exists.

Gets the subpackage with the specified name, if it exists.

If this package contains a subpackage with the name name, returns Some(subpackage). Otherwise, returns None.

If there exists another kind of declaration with the given name, this method returns None (instead of, for example, throwing).

Note

Performance guarantee: This method does not try to load non-package symbols from the classpath.

Inherited methods

final
Inherited from
Symbol
Inherited from
Symbol
Inherited from
Symbol
final
Inherited from
Symbol
final
Inherited from
Symbol
Inherited from
Symbol
final
def exists: Boolean
Inherited from
Symbol
final
Inherited from
Symbol
Inherited from
Symbol
final
def is(flag: Flag): Boolean
Inherited from
Symbol
final
def isAllOf(testFlags: FlagSet): Boolean
Inherited from
Symbol
final
def isAnyOf(testFlags: FlagSet): Boolean
Inherited from
Symbol
final
def isClass: Boolean
Inherited from
Symbol
final
def isDeclaringSymbol: Boolean
Inherited from
Symbol
final
def isPackage: Boolean
Inherited from
Symbol
final
def isRoot: Boolean
Inherited from
Symbol
final
def isTerm: Boolean
Inherited from
Symbol
final
def isType: Boolean
Inherited from
Symbol
def toDebugString: String
Inherited from
Symbol
override
def toString: String
Definition Classes
Symbol -> Any
Inherited from
Symbol
final
def tree(using Context): Option[DefTree]
Inherited from
Symbol

Concrete fields

override
val owner: PackageSymbol | Null