public interface PackageDescription extends NamedElement.WithRuntimeName, AnnotatedCodeElement
| Modifier and Type | Interface and Description |
|---|---|
static class |
PackageDescription.AbstractBase
An abstract base implementation of a package description.
|
static class |
PackageDescription.ForLoadedPackage
Represents a loaded
Package wrapped as a
PackageDescription. |
static class |
PackageDescription.Simple
A simple implementation of a package without annotations.
|
NamedElement.WithGenericName, NamedElement.WithOptionalName, NamedElement.WithRuntimeName| Modifier and Type | Field and Description |
|---|---|
static String |
PACKAGE_CLASS_NAME
The name of a Java class representing a package description.
|
static int |
PACKAGE_MODIFIERS
The modifiers of a Java class representing a package description.
|
static PackageDescription |
UNDEFINED
Represents any undefined property of a type description that is instead represented as
null in order
to resemble the Java reflection API which returns null and is intuitive to many Java developers. |
EMPTY_NAME, NO_NAME| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(TypeDescription typeDescription)
Checks if this package contains the provided type.
|
getInternalName, getNamegetActualNamegetDeclaredAnnotationsstatic final String PACKAGE_CLASS_NAME
static final int PACKAGE_MODIFIERS
static final PackageDescription UNDEFINED
null in order
to resemble the Java reflection API which returns null and is intuitive to many Java developers.boolean contains(TypeDescription typeDescription)
typeDescription - The type to examine.true if the given type contains the provided type.Copyright © 2014–2016. All rights reserved.