|
|
|
|
803
|
Parameter[] javaParameters,
|
803
|
Parameter[] javaParameters,
|
804
|
TypeVariable<Method>[] javaTypeParameters,
|
804
|
TypeVariable<Method>[] javaTypeParameters,
|
805
|
AnnotatedType[] exceptionTypes) {
|
805
|
AnnotatedType[] exceptionTypes) {
|
806
|
- StoredType returnType = javaReturnType == null ? BasicTypeID.VOID.stored : loadStoredType(context, javaReturnType);
|
|
|
807
|
|
806
|
|
808
|
|
807
|
|
809
|
TypeParameter[] typeParameters = new TypeParameter[javaTypeParameters.length];
|
808
|
TypeParameter[] typeParameters = new TypeParameter[javaTypeParameters.length];
|
|
|
|
|
835
|
if (exceptionTypes.length > 1)
|
834
|
if (exceptionTypes.length > 1)
|
836
|
throw new IllegalArgumentException("A method can only throw a single exception type!");
|
835
|
throw new IllegalArgumentException("A method can only throw a single exception type!");
|
837
|
|
836
|
|
|
|
837
|
+ StoredType returnType = javaReturnType == null ? BasicTypeID.VOID.stored : loadStoredType(context, javaReturnType);
|
838
|
StoredType thrownType = exceptionTypes.length == 0 ? null : loadStoredType(context, exceptionTypes[0]);
|
838
|
StoredType thrownType = exceptionTypes.length == 0 ? null : loadStoredType(context, exceptionTypes[0]);
|
839
|
return new FunctionHeader(typeParameters, returnType, thrownType, AutoStorageTag.INSTANCE, parameters);
|
839
|
return new FunctionHeader(typeParameters, returnType, thrownType, AutoStorageTag.INSTANCE, parameters);
|
840
|
}
|
840
|
}
|