Class PackageDescription.AbstractBase
java.lang.Object
net.bytebuddy.description.type.PackageDescription.AbstractBase
- All Implemented Interfaces:
AnnotationSource, NamedElement, NamedElement.WithRuntimeName, PackageDescription
- Direct Known Subclasses:
PackageDescription.ForLoadedPackage, PackageDescription.Simple, TypePool.Default.LazyTypeDescription.LazyPackageDescription
- Enclosing interface:
PackageDescription
public abstract static class PackageDescription.AbstractBase
extends Object
implements PackageDescription
An abstract base implementation of a package description.
-
Nested Class Summary
Nested classes/interfaces inherited from interface AnnotationSource
AnnotationSource.Empty, AnnotationSource.ExplicitNested classes/interfaces inherited from interface NamedElement
NamedElement.WithDescriptor, NamedElement.WithGenericName, NamedElement.WithOptionalName, NamedElement.WithRuntimeNameNested classes/interfaces inherited from interface PackageDescription
PackageDescription.AbstractBase, PackageDescription.ForLoadedPackage, PackageDescription.Simple -
Field Summary
Fields inherited from interface NamedElement
EMPTY_NAME, NO_NAMEFields inherited from interface PackageDescription
DEFAULT, PACKAGE_CLASS_NAME, PACKAGE_MODIFIERS, UNDEFINED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontains(TypeDescription typeDescription) Checks if this package contains the provided type.booleanReturns the display name of this element as it is found in the source code.Returns the internal name of this byte code element.inthashCode()booleanReturnstrueif this package description represents the default package.toString()Methods inherited from interface AnnotationSource
getDeclaredAnnotationsMethods inherited from interface NamedElement.WithRuntimeName
getName
-
Constructor Details
-
AbstractBase
public AbstractBase()
-
-
Method Details
-
getInternalName
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.- Specified by:
getInternalNamein interfaceNamedElement.WithRuntimeName- Returns:
- The internal name of this byte code element as used within the Java class file format.
-
getActualName
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.- Specified by:
getActualNamein interfaceNamedElement- Returns:
- The name of this element as given in a Java program's source code.
-
contains
Checks if this package contains the provided type.- Specified by:
containsin interfacePackageDescription- Parameters:
typeDescription- The type to examine.- Returns:
trueif the given type contains the provided type.
-
isDefault
public boolean isDefault()Returnstrueif this package description represents the default package.- Specified by:
isDefaultin interfacePackageDescription- Returns:
trueif this package description represents the default package.
-
hashCode
-
equals
-
toString
-