toggle menu
shake
0.1.0
common
switch theme
search in API
com.shakelang.shake.bytecode.tools
/
com.shakelang.shake.bytecode.tools
/
BytecodeStringGenerator
Bytecode
String
Generator
class
BytecodeStringGenerator
(
val
format
:
StorageFormat
)
(
source
)
Members
Constructors
Bytecode
String
Generator
Link copied to clipboard
constructor
(
format
:
StorageFormat
)
Properties
format
Link copied to clipboard
val
format
:
StorageFormat
Functions
generate
Link copied to clipboard
fun
generate
(
)
:
List
<
String
>
@
JvmName
(
name
=
"generateAttribute"
)
fun
generate
(
attribute
:
Attribute
)
:
List
<
String
>
@
JvmName
(
name
=
"generateClass"
)
fun
generate
(
clazz
:
Class
,
indent
:
String
=
" "
)
:
List
<
String
>
@
JvmName
(
name
=
"generateField"
)
fun
generate
(
field
:
Field
,
indent
:
String
=
" "
)
:
List
<
String
>
@
JvmName
(
name
=
"generateMethod"
)
fun
generate
(
method
:
Method
,
indent
:
String
=
" "
)
:
List
<
String
>
fun
generate
(
format
:
StorageFormat
,
indent
:
String
=
" "
)
:
List
<
String
>
@
JvmName
(
name
=
"generateCodeAttribute"
)
fun
generate
(
bytecode
:
CodeAttribute
,
indent
:
String
=
" "
)
:
List
<
String
>
@
JvmName
(
name
=
"generateClasses"
)
fun
generate
(
classes
:
List
<
Class
>
,
indent
:
String
=
" "
)
:
List
<
String
>
@
JvmName
(
name
=
"generateFields"
)
fun
generate
(
fields
:
List
<
Field
>
,
indent
:
String
=
" "
)
:
List
<
String
>
@
JvmName
(
name
=
"generateMethods"
)
fun
generate
(
methods
:
List
<
Method
>
,
indent
:
String
=
" "
)
:
List
<
String
>
indent
Link copied to clipboard
fun
MutableList
<
String
>
.
indent
(
indent
:
String
,
generator
:
MutableList
<
String
>
.
(
)
->
Unit
)