Top Description Inners Fields Methods
net.bytebuddy.description

public Interface NamedElement

Known Direct Subinterfaces
net.bytebuddy.description.NamedElement.WithRuntimeName, net.bytebuddy.description.NamedElement.WithOptionalName, net.bytebuddy.description.NamedElement.WithDescriptor, net.bytebuddy.description.enumeration.EnumerationDescription, net.bytebuddy.description.type.TypeDefinition
Imports
net.bytebuddy.utility.nullability.AlwaysNull, .MaybeNull

Represents a Java element with a name.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface
NamedElement.WithDescriptor

A named element with a class file descriptor and a generic signature.

public static interface
NamedElement.WithGenericName

A named element with a generic type name.

public static interface
NamedElement.WithOptionalName

Describes a named element where naming the element is optional and an alternative default name is provided if no explicit name is given.

public static interface
NamedElement.WithRuntimeName

A named element with a name that has a particular meaning to the Java runtime.

Field Summary

Modifier and TypeField and Description
public static final String
EMPTY_NAME

Represents an element without a name in the source code.

public static final String
NO_NAME

Indicates that an element is not named.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

The name of this element as given in a Java program's source code.
getActualName
()

Returns the display name of this element as it is found in the source code.

Field Detail

EMPTY_NAMEback to summary
public static final String EMPTY_NAME

Represents an element without a name in the source code.

NO_NAMEback to summary
public static final String NO_NAME

Indicates that an element is not named.

Annotations
@AlwaysNull

Method Detail

getActualNameback to summary
public String 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.

Returns:String

The name of this element as given in a Java program's source code.

net.bytebuddy.description back to summary

public Interface NamedElement.WithDescriptor

extends NamedElement
Known Direct Subinterfaces
net.bytebuddy.description.type.RecordComponentDescription, net.bytebuddy.description.ByteCodeElement

A named element with a class file descriptor and a generic signature.

Field Summary

Modifier and TypeField and Description
public static final String
NON_GENERIC_SIGNATURE

The generic type signature of a non-generic byte code element.

Inherited from net.bytebuddy.description.NamedElement:
EMPTY_NAMENO_NAME

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

The descriptor of this byte code element.
getDescriptor
()

Returns the descriptor of this byte code element.

public String

Returns:

The generic signature or null if this element is not generic.
getGenericSignature
()

Returns the generic signature of this byte code element.

Inherited from net.bytebuddy.description.NamedElement:
getActualName

Field Detail

NON_GENERIC_SIGNATUREback to summary
public static final String NON_GENERIC_SIGNATURE

The generic type signature of a non-generic byte code element.

Annotations
@AlwaysNull

Method Detail

getDescriptorback to summary
public String getDescriptor()

Returns the descriptor of this byte code element.

Returns:String

The descriptor of this byte code element.

getGenericSignatureback to summary
public String getGenericSignature()

Returns the generic signature of this byte code element. If this element does not reference generic types or references malformed generic types, null is returned as a signature.

Returns:String

The generic signature or null if this element is not generic.

Annotations
@MaybeNull
net.bytebuddy.description back to summary

public Interface NamedElement.WithGenericName

extends WithRuntimeName
Known Direct Subinterfaces
net.bytebuddy.description.ByteCodeElement.Member

A named element with a generic type name.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

A generic string of this byte code element.
toGenericString
()

Returns a generic string of this byte code element.

Inherited from net.bytebuddy.description.NamedElement.WithRuntimeName:
getInternalNamegetName

Method Detail

toGenericStringback to summary
public String toGenericString()

Returns a generic string of this byte code element.

Returns:String

A generic string of this byte code element.

net.bytebuddy.description back to summary

public Interface NamedElement.WithOptionalName

extends NamedElement
Known Direct Subinterfaces
net.bytebuddy.description.method.ParameterDescription
Known Direct Implementers
net.bytebuddy.utility.JavaModule

Describes a named element where naming the element is optional and an alternative default name is provided if no explicit name is given.

Field Summary

Inherited from net.bytebuddy.description.NamedElement:
EMPTY_NAMENO_NAME

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if this element has an explicit name.
isNamed
()

Returns true if this element has an explicit name.

Inherited from net.bytebuddy.description.NamedElement:
getActualName

Method Detail

isNamedback to summary
public boolean isNamed()

Returns true if this element has an explicit name.

Returns:boolean

true if this element has an explicit name.

net.bytebuddy.description back to summary

public Interface NamedElement.WithRuntimeName

extends NamedElement
Known Direct Subinterfaces
net.bytebuddy.description.NamedElement.WithGenericName, net.bytebuddy.description.method.ParameterDescription, net.bytebuddy.description.type.PackageDescription, net.bytebuddy.description.ByteCodeElement

A named element with a name that has a particular meaning to the Java runtime.

Field Summary

Inherited from net.bytebuddy.description.NamedElement:
EMPTY_NAMENO_NAME

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

The internal name of this byte code element as used within the Java class file format.
getInternalName
()

Returns the internal name of this byte code element.

public String

Returns:

The binary ame of this byte code element as visible from within a running Java application.
getName
()

Returns the binary name of this byte code element.

Inherited from net.bytebuddy.description.NamedElement:
getActualName

Method Detail

getInternalNameback to summary
public String 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.

Returns:String

The internal name of this byte code element as used within the Java class file format.

getNameback to summary
public String getName()

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.

Returns:String

The binary ame of this byte code element as visible from within a running Java application.