Convert CapturedParamDesc.java into Kotlin

This commit is contained in:
Mikhael Bogdanov
2019-04-02 13:06:28 +02:00
parent a19cc8efa6
commit 20adce165f
@@ -14,34 +14,12 @@
* limitations under the License. * limitations under the License.
*/ */
package org.jetbrains.kotlin.codegen.inline; package org.jetbrains.kotlin.codegen.inline
import org.jetbrains.annotations.NotNull; import org.jetbrains.org.objectweb.asm.Type
import org.jetbrains.org.objectweb.asm.Type;
public class CapturedParamDesc { class CapturedParamDesc(private val containingLambdaType: Type, val fieldName: String, val type: Type) {
private final Type containingLambdaType;
private final String fieldName;
private final Type type;
public CapturedParamDesc(@NotNull Type containingLambdaType, @NotNull String fieldName, @NotNull Type type) { val containingLambdaName: String
this.containingLambdaType = containingLambdaType; get() = containingLambdaType.internalName
this.fieldName = fieldName;
this.type = type;
}
@NotNull
public String getContainingLambdaName() {
return containingLambdaType.getInternalName();
}
@NotNull
public String getFieldName() {
return fieldName;
}
@NotNull
public Type getType() {
return type;
}
} }