Created
February 19, 2012 01:41
-
-
Save talios/1861568 to your computer and use it in GitHub Desktop.
Decompilation of Kotlin Class
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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