Skip to content

Instantly share code, notes, and snippets.

@talios
Created February 19, 2012 01:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save talios/1861568 to your computer and use it in GitHub Desktop.
Save talios/1861568 to your computer and use it in GitHub Desktop.
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