| Modifier and Type | Method and Description |
|---|---|
| public static void | forType(Type
a type parameters whose generic signature is appended to type, Function<String, Type> resulta substitution function from type variable identifiers to types typeVariableSubstitution, StringBuilder the result)StringBuilder to which the generic signature is appendedAppends a generic signature of a single type to given |
| public static void | forTypeParameters(List<TypeVariable>
a list of type parameters whose generic signature is appended to typeParameters, Function<String, Type> resulta substitution function from type variable identifiers to types typeVariableSubstitution, StringBuilder the result)StringBuilder to which the generic signature is appendedAppends a generic signature of a type parameter list, including the |
| public default String | Returns: a generic signature of this declaration, nevernullReturns a generic signature of this declaration, possibly without any generic-related information. |
| public String | Returns: a generic signature of this declaration with type variables substituted, nevernulla substitution function from type variable identifiers to types typeVariableSubstitution)Returns a generic signature of this declaration, possibly without any generic-related information. |
| public default String | Returns: a generic signature of this declaration, ornull if this declaration doesn't have to have oneReturns a generic signature of this declaration if required. |
| public default String | Returns: a generic signature of this declaration with type variables substituted, ornull
if this declaration does not have to have onea substitution function from type variable identifiers to types typeVariableSubstitution)Returns a generic signature of this declaration if required. |
| public boolean | Returns: whether this declaration must have a generic signatureReturns whether this declaration must have a generic signature. |
| NO_SUBSTITUTION | back to summary |
|---|---|
| public static final Function<String, Type> NO_SUBSTITUTION | |
| forType | back to summary |
|---|---|
| public static void forType(Type type, Function<String, Type> typeVariableSubstitution, StringBuilder result) Appends a generic signature of a single type to given
Signatures of type variables are substituted for signatures of types provided by the substitution
function
| |
| forTypeParameters | back to summary |
|---|---|
| public static void forTypeParameters(List<TypeVariable> typeParameters, Function<String, Type> typeVariableSubstitution, StringBuilder result) Appends a generic signature of a type parameter list, including the
Signatures of type variables are substituted for signatures of types provided by the substitution
function
| |
| genericSignature | back to summary |
|---|---|
| public default String genericSignature() Returns a generic signature of this declaration, possibly without any generic-related information. That is, produces a correct generic signature even if this declaration is not generic and does not use any type variables. Note that the return value does not come directly from bytecode. Jandex does not store the signature strings. Instead, the return value is reconstructed from the Jandex object model.
| |
| genericSignature | back to summary |
|---|---|
| public String genericSignature(Function<String, Type> typeVariableSubstitution) Returns a generic signature of this declaration, possibly without any generic-related information. That is, produces a correct generic signature even if this declaration is not generic and does not use any type variables.
Signatures of type variables are substituted for signatures of types provided by the substitution
function Note that the return value does not come directly from bytecode. Jandex does not store the signature strings. Instead, the return value is reconstructed from the Jandex object model. | |
| genericSignatureIfRequired | back to summary |
|---|---|
| public default String genericSignatureIfRequired() Returns a generic signature of this declaration if required.
| |
| genericSignatureIfRequired | back to summary |
|---|---|
| public default String genericSignatureIfRequired(Function<String, Type> typeVariableSubstitution) Returns a generic signature of this declaration if required. Type variable signatures are substituted. | |
| requiresGenericSignature | back to summary |
|---|---|
| public boolean requiresGenericSignature() Returns whether this declaration must have a generic signature. That is, whether the Java compiler
when compiling this declaration had to emit the
| |