Modifier and Type | Class 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. |
Modifier and Type | Field 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. |
Modifier and Type | Method and Description |
---|---|
public String | Returns: The name of this element as given in a Java program's source code.Returns the display name of this element as it is found in the source code. |
EMPTY_NAME | back to summary |
---|---|
public static final String EMPTY_NAME Represents an element without a name in the source code. |
NO_NAME | back to summary |
---|---|
public static final String NO_NAME Indicates that an element is not named. |
getActualName | back 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.
|
Modifier and Type | Field and Description |
---|---|
public static final String | NON_GENERIC_SIGNATURE
The generic type signature of a non-generic byte code element. |
Modifier and Type | Method and Description |
---|---|
public String | Returns: The descriptor of this byte code element.Returns the descriptor of this byte code element. |
public String | Returns: The generic signature ornull if this element is not generic.Returns the generic signature of this byte code element. |
NON_GENERIC_SIGNATURE | back to summary |
---|---|
public static final String NON_GENERIC_SIGNATURE The generic type signature of a non-generic byte code element. |
getDescriptor | back to summary |
---|---|
public String getDescriptor() Returns the descriptor of this byte code element.
|
getGenericSignature | back 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,
|
Modifier and Type | Method and Description |
---|---|
public String | Returns: A generic string of this byte code element.Returns a generic string of this byte code element. |
toGenericString | back to summary |
---|---|
public String toGenericString() Returns a generic string of this byte code element.
|
Modifier and Type | Method and Description |
---|---|
public boolean | Returns: true if this element has an explicit name.Returns |
isNamed | back to summary |
---|---|
public boolean isNamed() Returns
|
Modifier and Type | Method and Description |
---|---|
public String | Returns: The internal name of this byte code element as used within the Java class file format.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.Returns the binary name of this byte code element. |
getInternalName | back 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.
|
getName | back 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.
|