Class that represents a Java Package.
Strategy details
|
ATerm
|
add-subpackage(ATerm name)
|
File
|
package.str
|
Author
|
unknown
|
Since
|
unknown
|
|
Parameters
|
Creates a new subpackage in the current package.Returns the package object of the new subpackage.
type
|
Package Object -> Package Object
|
|
|
ATerm
|
add-toplevel-class(ATerm class)
|
No information available.
todo
|
Set the package object of the class?
|
type
|
Package Object -> Package Object
|
|
|
ATerm
|
get-canonical-name
|
Returns the canonical name of this package.
type
|
Package Object -> TypeName
|
|
|
ATerm
|
get-fully-qualified-name
|
Returns the full qualified name of this package.
type
|
Package Object -> TypeName
|
|
|
ATerm
|
get-or-add-subpackage(ATerm name)
|
File
|
package.str
|
Author
|
unknown
|
Since
|
unknown
|
|
Parameters
|
Ensures that a subpackage exists in the current package.
type
|
Package Object -> Package Object
|
|
|
ATerm
|
get-or-add-subsubpackage(ATerm names)
|
File
|
package.str
|
Author
|
unknown
|
Since
|
unknown
|
|
Parameters
|
Ensures that a subpackage exists in the current package.The subpackage can be multiple levels deep.
For example, in current package 'org' invoking thisstrategy with names ["foo", "bar"], will create a subpackage 'org.foo.bar'.
type
|
Package Object -> Package Object
|
|
|
ATerm
|
get-parent-package
|
Returns the parent package.Fails if this is the root (default) package.
type
|
Package Object -> Package Object
|
|
|
ATerm
|
get-simple-name
|
Returns the simple name of this package.i.e. package org.foo.bar will return "bar".
type
|
Package Object -> String
|
|
|
ATerm
|
get-subpackage(ATerm name)
|
File
|
package.str
|
Author
|
unknown
|
Since
|
unknown
|
|
Parameters
ATerm
name
|
Name of the package (String)
|
|
Returns the subpackage of the specified name.This strategy fails if there is no subpackage with this name.
type
|
Package Object -> Package Object
|
|
|
ATerm
|
get-subpackages
|
Returns all subpackages.
type
|
Package Object -> List(Package Object)
|
|
|
ATerm
|
get-subsubpackage(ATerm names)
|
File
|
package.str
|
Author
|
unknown
|
Since
|
unknown
|
|
Parameters
|
Returns the direct or indirect subpackage of the given name.The subpackage can be multiple levels deep.
For example, in current package 'org' invoking thisstrategy with names ["foo", "bar"], will return thepackage 'org.foo.bar' (if this package exists).
type
|
Package Object -> Package Object
|
|
|
ATerm
|
get-toplevel-class(ATerm name)
|
No information available.
type
|
Package Object -> Class Object
|
|
|
ATerm
|
get-toplevel-classes
|
No information available.
type
|
Package Object -> List(Class Object)
|
|
|
ATerm
|
get-toplevel-classtable
|
No information available.
type
|
Package Object -> Hashtable(String, Class Object)
|
|
|
ATerm
|
has-subpackage(ATerm name)
|
File
|
package.str
|
Author
|
unknown
|
Since
|
unknown
|
|
Parameters
|
Succeeds if this package has a subpackage 'name'
type
|
Package Object -> Package Object
|
|
|
ATerm
|
has-toplevel-class(ATerm name)
|
File
|
package.str
|
Author
|
unknown
|
Since
|
unknown
|
|
Parameters
ATerm
name
|
Name of the class (String)
|
|
Succeeds if this package has a toplevel class of the specified name.
type
|
Package Object -> Package Object
|
|
|
ATerm
|
is-root-package
|
Succeeds if this is the root package.
type
|
Package Object -> Package Object
|
|
|
ATerm
|
is-subpackage(ATerm name)
|
Alias of has-subpackage.
|
|
ATerm
|
is-subsubpackage(ATerm names)
|
No information available.
type
|
Package Object -> Package Object
|
|
|
ATerm
|
new-package(ATerm opt-parentpkg, ATerm simple-name)
|
File
|
package.str
|
Author
|
unknown
|
Since
|
unknown
|
|
Parameters
ATerm
opt-parentpkg
|
Optional parent (Some(Package Object))
|
ATerm
simple-name
|
Name of the package (String)
|
|
Creates a new package. If not parent package is specified, thenthe new package is a top level package.
|
|
ATerm
|
private-get-fully-qualified-name(ATerm acc)
|
Private helper. Don't invoke directly.
type
|
Package Object -> List(Id)
|
|
|