Skip to content

Instantly share code, notes, and snippets.

@weverb2
Last active January 18, 2017 15:50
Show Gist options
  • Save weverb2/9a4a7bccffe4d4b3bdd99f9153e1b00c to your computer and use it in GitHub Desktop.
Save weverb2/9a4a7bccffe4d4b3bdd99f9153e1b00c to your computer and use it in GitHub Desktop.
Javap ran on a data class
brando:kotlinsample brandon$ javap ServerResponse.class
Compiled from "ServerResponse.kt"
public final class com.brandonwever.android.kotlinsample.ServerResponse {
public final java.lang.String getMessage();
public final void setMessage(java.lang.String);
public final int getStatusCode();
public final void setStatusCode(int);
public final java.lang.String getBody();
public final void setBody(java.lang.String);
public com.brandonwever.android.kotlinsample.ServerResponse(java.lang.String, int, java.lang.String);
public com.brandonwever.android.kotlinsample.ServerResponse(java.lang.String, int, java.lang.String, int, kotlin.jvm.internal.DefaultConstructorMarker);
public com.brandonwever.android.kotlinsample.ServerResponse(java.lang.String, int);
public com.brandonwever.android.kotlinsample.ServerResponse(java.lang.String);
public com.brandonwever.android.kotlinsample.ServerResponse();
public final java.lang.String component1();
public final int component2();
public final java.lang.String component3();
public final com.brandonwever.android.kotlinsample.ServerResponse copy(java.lang.String, int, java.lang.String);
public static com.brandonwever.android.kotlinsample.ServerResponse copy$default(com.brandonwever.android.kotlinsample.ServerResponse, java.lang.String, int, java.lang.String, int, java.lang.Object);
public java.lang.String toString();
public int hashCode();
public boolean equals(java.lang.Object);
}
data class ServerResponse @JvmOverloads constructor(
var message: String? = null,
var statusCode: Int = 0,
var body: String? = null) {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment