Package net.bytebuddy.description.type
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 java.lang.Object implements PackageDescription
An abstract base implementation of a package description.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.description.annotation.AnnotationSource
AnnotationSource.Empty, AnnotationSource.Explicit
-
Nested classes/interfaces inherited from interface net.bytebuddy.description.NamedElement
NamedElement.WithDescriptor, NamedElement.WithGenericName, NamedElement.WithOptionalName, NamedElement.WithRuntimeName
-
Nested classes/interfaces inherited from interface net.bytebuddy.description.type.PackageDescription
PackageDescription.AbstractBase, PackageDescription.ForLoadedPackage, PackageDescription.Simple
-
-
Field Summary
-
Fields inherited from interface net.bytebuddy.description.NamedElement
EMPTY_NAME, NO_NAME
-
Fields inherited from interface net.bytebuddy.description.type.PackageDescription
PACKAGE_CLASS_NAME, PACKAGE_MODIFIERS, UNDEFINED
-
-
Constructor Summary
Constructors Constructor Description AbstractBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(TypeDescription typeDescription)
Checks if this package contains the provided type.boolean
equals(java.lang.Object other)
java.lang.String
getActualName()
Returns the name of this element as it is found in the source code.java.lang.String
getInternalName()
Returns the internal internalName of this byte code element.int
hashCode()
java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.bytebuddy.description.annotation.AnnotationSource
getDeclaredAnnotations
-
Methods inherited from interface net.bytebuddy.description.NamedElement.WithRuntimeName
getName
-
-
-
-
Method Detail
-
getInternalName
public java.lang.String getInternalName()
Returns the internal internalName of this byte code element.- Specified by:
getInternalName
in interfaceNamedElement.WithRuntimeName
- Returns:
- The internal internalName of this byte code element as used within the Java class file format.
-
getActualName
public java.lang.String getActualName()
Returns the name of this element as it is found in the source code. If no such name exists, an empty string is returned.- Specified by:
getActualName
in interfaceNamedElement
- Returns:
- The name of this element as given in a Java program's source code.
-
contains
public boolean contains(TypeDescription typeDescription)
Checks if this package contains the provided type.- Specified by:
contains
in interfacePackageDescription
- Parameters:
typeDescription
- The type to examine.- Returns:
true
if the given type contains the provided type.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-