@@ -37,9 +37,11 @@ import kotlin.reflect.typeOf
37
37
public fun <T > column (): ColumnDelegate <T > = ColumnDelegate ()
38
38
public fun <T > column (name : String ): ColumnAccessor <T > = ColumnAccessorImpl (name)
39
39
public fun <T > column (path : ColumnPath ): ColumnAccessor <T > = ColumnAccessorImpl (path)
40
+ public fun <T > column (property : KProperty <T >): ColumnAccessor <T > = ColumnAccessorImpl (property.name)
40
41
public fun <T > ColumnGroupReference.column (): ColumnDelegate <T > = ColumnDelegate (this )
41
42
public fun <T > ColumnGroupReference.column (name : String ): ColumnAccessor <T > = ColumnAccessorImpl (path() + name)
42
43
public fun <T > ColumnGroupReference.column (path : ColumnPath ): ColumnAccessor <T > = ColumnAccessorImpl (this .path() + path)
44
+ public fun <T > ColumnGroupReference.column (property : KProperty <T >): ColumnAccessor <T > = ColumnAccessorImpl (this .path() + property.name)
43
45
44
46
public inline fun <reified T > column (
45
47
name : String = "",
@@ -73,6 +75,11 @@ public fun columnGroup(path: ColumnPath): ColumnAccessor<AnyRow> = column(path)
73
75
@JvmName(" columnGroupTyped" )
74
76
public fun <T > columnGroup (path : ColumnPath ): ColumnAccessor <DataRow <T >> = column(path)
75
77
78
+ @JvmName(" columnGroupDataRowKProperty" )
79
+ public fun <T > columnGroup (property : KProperty <DataRow <T >>): ColumnAccessor <DataRow <T >> = column(property)
80
+
81
+ public fun <T > columnGroup (property : KProperty <T >): ColumnAccessor <DataRow <T >> = column(property.name)
82
+
76
83
public fun ColumnGroupReference.columnGroup (): ColumnDelegate <AnyRow > = ColumnDelegate (this )
77
84
78
85
@JvmName(" columnGroupTyped" )
@@ -91,6 +98,13 @@ public fun ColumnGroupReference.columnGroup(path: ColumnPath): ColumnAccessor<An
91
98
public fun <T > ColumnGroupReference.columnGroup (path : ColumnPath ): ColumnAccessor <DataRow <T >> =
92
99
ColumnAccessorImpl (this .path() + path)
93
100
101
+ @JvmName(" columnGroupDataRowKProperty" )
102
+ public fun <T > ColumnGroupReference.columnGroup (property : KProperty <DataRow <T >>): ColumnAccessor <DataRow <T >> =
103
+ ColumnAccessorImpl (this .path() + property.name)
104
+
105
+ public fun <T > ColumnGroupReference.columnGroup (property : KProperty <T >): ColumnAccessor <DataRow <T >> =
106
+ ColumnAccessorImpl (this .path() + property.name)
107
+
94
108
// endregion
95
109
96
110
// region frameColumn
@@ -110,6 +124,11 @@ public fun frameColumn(path: ColumnPath): ColumnAccessor<AnyFrame> = column(path
110
124
@JvmName(" frameColumnTyped" )
111
125
public fun <T > frameColumn (path : ColumnPath ): ColumnAccessor <DataFrame <T >> = column(path)
112
126
127
+ @JvmName(" frameColumnDataFrameKProperty" )
128
+ public fun <T > frameColumn (property : KProperty <DataFrame <T >>): ColumnAccessor <DataFrame <T >> = column(property)
129
+
130
+ public fun <T > frameColumn (property : KProperty <T >): ColumnAccessor <DataFrame <T >> = column(property.name)
131
+
113
132
public fun ColumnGroupReference.frameColumn (): ColumnDelegate <AnyFrame > = ColumnDelegate (this )
114
133
115
134
@JvmName(" frameColumnTyped" )
@@ -128,6 +147,13 @@ public fun ColumnGroupReference.frameColumn(path: ColumnPath): ColumnAccessor<An
128
147
public fun <T > ColumnGroupReference.frameColumn (path : ColumnPath ): ColumnAccessor <DataFrame <T >> =
129
148
ColumnAccessorImpl (this .path() + path)
130
149
150
+ @JvmName(" frameColumnDataFrameKProperty" )
151
+ public fun <T > ColumnGroupReference.frameColumn (property : KProperty <DataFrame <T >>): ColumnAccessor <DataFrame <T >> =
152
+ ColumnAccessorImpl (this .path() + property.name)
153
+
154
+ public fun <T > ColumnGroupReference.frameColumn (property : KProperty <T >): ColumnAccessor <DataFrame <T >> =
155
+ ColumnAccessorImpl (this .path() + property.name)
156
+
131
157
// endregion
132
158
133
159
public class ColumnDelegate <T >(private val parent : ColumnGroupReference ? = null ) {
0 commit comments