Modifier and Type | Class and Description |
---|---|
public abstract static class | PackageDescription.AbstractBase
An abstract base implementation of a package description. |
public static class | PackageDescription.ForLoadedPackage
Represents a loaded |
public static class | PackageDescription.Simple
A simple implementation of a package without annotations. |
Modifier and Type | Field and Description |
---|---|
public static final PackageDescription | DEFAULT
A representation of the default package without any annotations. |
public static final String | PACKAGE_CLASS_NAME
The name of a Java class representing a package description. |
public static final int | PACKAGE_MODIFIERS
The modifiers of a Java class representing a package description. |
public static final PackageDescription | UNDEFINED
A named constant for an undefined package what applies for primitive and array types. |
Modifier and Type | Method and Description |
---|---|
public boolean | Returns: true if the given type contains the provided type.The type to examine. typeDescription)Checks if this package contains the provided type. |
public boolean | Returns: true if this package description represents the default package.Returns |
DEFAULT | back to summary |
---|---|
public static final PackageDescription DEFAULT A representation of the default package without any annotations. |
PACKAGE_CLASS_NAME | back to summary |
---|---|
public static final String PACKAGE_CLASS_NAME The name of a Java class representing a package description. |
PACKAGE_MODIFIERS | back to summary |
---|---|
public static final int PACKAGE_MODIFIERS The modifiers of a Java class representing a package description. |
UNDEFINED | back to summary |
---|---|
public static final PackageDescription UNDEFINED A named constant for an undefined package what applies for primitive and array types. |
contains | back to summary |
---|---|
public boolean contains(TypeDescription typeDescription) Checks if this package contains the provided type.
|
isDefault | back to summary |
---|---|
public boolean isDefault() Returns
|
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
public boolean | contains(TypeDescription
The type to examine. typeDescription)Implements net. |
public boolean | equals(Object
the reference object with which to compare. other)Overrides java. |
public String | getActualName()
Implements net. |
public String | getInternalName()
Implements net. |
public int | |
public boolean | isDefault()
Implements net. true if this package description represents the default package.
|
public String |
AbstractBase | back to summary |
---|---|
public AbstractBase() |
contains | back to summary |
---|---|
public boolean contains(TypeDescription typeDescription) Implements net. Doc from net. Checks if this package contains the provided type.
|
equals | back to summary |
---|---|
public boolean equals(Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. |
getActualName | back to summary |
---|---|
public String getActualName() Implements net. Doc from net. Returns the display name of this element as it is found in the source code. If no such name exists, an empty string is returned.
|
getInternalName | back to summary |
---|---|
public String getInternalName() Implements net. Doc from net. Returns the internal name of this byte code element. If no well-defined internal name is known for this element, the actual name is returned.
|
hashCode | back to summary |
---|---|
public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
|
isDefault | back to summary |
---|---|
public boolean isDefault() Implements net. Doc from net. Returns
|
toString | back to summary |
---|---|
public String toString() Overrides java. Doc from java. Returns a string representation of the object. |
java.lang.Package
wrapped as a
PackageDescription
.
Modifier and Type | Field and Description |
---|---|
private final Package | aPackage
The represented package. |
Access | Constructor and Description |
---|---|
public | ForLoadedPackage(Package
The represented package. aPackage)Creates a new loaded package representation. |
Modifier and Type | Method and Description |
---|---|
public AnnotationList | getDeclaredAnnotations()
Implements net. |
public String | getName()
Implements net. |
aPackage | back to summary |
---|---|
private final Package aPackage The represented package. |
ForLoadedPackage | back to summary |
---|---|
public ForLoadedPackage(Package aPackage) Creates a new loaded package representation.
|
getDeclaredAnnotations | back to summary |
---|---|
public AnnotationList getDeclaredAnnotations() Implements net. Doc from net. Returns a list of annotations that are declared by this instance.
|
getName | back to summary |
---|---|
public String getName() Implements net. Doc from net. Returns the binary name of this byte code element. If no well-defined internal name is known for this element, the actual name is returned.
|
Modifier and Type | Field and Description |
---|---|
private final String | name
The name of the package. |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
public AnnotationList | getDeclaredAnnotations()
Implements net. |
public String | getName()
Implements net. |
name | back to summary |
---|---|
private final String name The name of the package. |
Simple | back to summary |
---|---|
public Simple(String name) Creates a new simple package.
|
getDeclaredAnnotations | back to summary |
---|---|
public AnnotationList getDeclaredAnnotations() Implements net. Doc from net. Returns a list of annotations that are declared by this instance.
|
getName | back to summary |
---|---|
public String getName() Implements net. Doc from net. Returns the binary name of this byte code element. If no well-defined internal name is known for this element, the actual name is returned.
|