public static class SignatureParser.MethodTypeSignature extends Object
| Modifier and Type | Field and Description |
|---|---|
List<SignatureParser.FormalTypeParameter> |
formalTypeParameters
The formal types of the method, e.g.
|
List<SignatureParser.TypeSignature> |
parameterTypes
The types of the method's parameters.
|
SignatureParser.TypeSignature |
returnType
The return type of the method.
|
List<SignatureParser.ThrowsSignature> |
thrownTypes
The exceptions declared for the method.
|
| Constructor and Description |
|---|
MethodTypeSignature(List<SignatureParser.FormalTypeParameter> formalTypeParameters,
List<SignatureParser.TypeSignature> parameterTypes,
SignatureParser.TypeSignature returnType,
List<SignatureParser.ThrowsSignature> thrownTypes) |
| Modifier and Type | Method and Description |
|---|---|
String |
toString() |
String |
toString(String declaringClassName,
String methodName)
Combines the name of the declaring class, the name of the method and this method type signature into a nice,
human-readable string like '
<T> MyClass.meth(List<T> l, int i) => double'. |
public final List<SignatureParser.FormalTypeParameter> formalTypeParameters
void <T, U> int meth(T t, U u) ...'.public final List<SignatureParser.TypeSignature> parameterTypes
public final SignatureParser.TypeSignature returnType
public final List<SignatureParser.ThrowsSignature> thrownTypes
public MethodTypeSignature(List<SignatureParser.FormalTypeParameter> formalTypeParameters, List<SignatureParser.TypeSignature> parameterTypes, SignatureParser.TypeSignature returnType, List<SignatureParser.ThrowsSignature> thrownTypes)
Copyright © 2022. All rights reserved.