All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.bytebuddy.description.NamedElement Maven / Gradle / Ivy

Go to download

Byte Buddy is a Java library for creating Java classes at run time. This artifact is a build of Byte Buddy with all ASM dependencies repackaged into its own name space.

There is a newer version: 1.15.11
Show newest version
package net.bytebuddy.description;

/**
 * Represents a Java element with a name.
 */
public interface NamedElement {

    /**
     * Represents an element without a name in the source code.
     */
    String EMPTY_NAME = "";

    /**
     * Returns the internalName of this byte code element.
     *
     * @return The internalName of this byte code element as visible from within a running Java application.
     */
    String getName();

    /**
     * Returns the internal internalName of this byte code element.
     *
     * @return The internal internalName of this byte code element as used within the Java class file format.
     */
    String getInternalName();

    /**
     * Returns the name of this byte code element as it is defined in Java source code. This means:
     * 
    *
  • For type descriptions, the main distinction is the display of arrays whose actual names are blended * with internal names when calling {@link ByteCodeElement#getName()}.
  • *
  • For method descriptions, representations of constructors and the type initializer, return the * empty string.
  • *
* * @return The name of this type as represented in Java source code. */ String getSourceCodeName(); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy