Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Decompilation of Kotlin Class
package com.talios.routes;
import com.google.inject.Inject;
import com.theoryinpractise.halbuilder.ResourceFactory;
import com.theoryinpractise.halbuilder.spi.Resource;
import jet.JetObject;
import jet.TypeInfo;
import jet.runtime.typeinfo.JetClass;
import jet.runtime.typeinfo.JetConstructor;
import jet.runtime.typeinfo.JetMethod;
import jet.runtime.typeinfo.JetValueParameter;
import spark.Request;
import spark.Response;
import spark.Route;
@JetClass(signature="Lspark/Route;")
public final class KotlinRootRoute extends Route
implements JetObject
{
private ResourceFactory resourceFactory;
public static final TypeInfo $staticTypeInfo = TypeInfo.getTypeInfo(KotlinRootRoute.class, false);
@JetMethod(nullableReturnType=true, returnType="?Ljava/lang/Object;")
public Object handle(@JetValueParameter(name="request", nullable=true, type="?Lspark/Request;") Request request, @JetValueParameter(name="response", nullable=true, type="?Lspark/Response;") Response response)
{
Resource tmp9_6 = this.resourceFactory.newResource("/"); if (tmp9_6 != null)
tmpTernaryOp = tmp9_6
.withLink("/forums", "forums");
}
@JetMethod(kind=1, propertyType="Lcom/theoryinpractise/halbuilder/ResourceFactory;")
public ResourceFactory getResourceFactory()
{
return this.resourceFactory;
}
public TypeInfo getTypeInfo()
{
return $staticTypeInfo;
}
@JetConstructor
@Inject
public KotlinRootRoute(@JetValueParameter(name="resourceFactory") ResourceFactory paramResourceFactory)
{
super("/"); this.resourceFactory = paramResourceFactory;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment