Literal Accessor
class LiteralAccessor(val classLoaderIndex: Int, val fieldName: String?, val getter: (MethodVisitor) -> Unit, val setter: (MethodVisitor) -> Unit?)
A LiteralAccessor aggregates means of accessing a literal Object in various contexts.
Author
Todd L Smith
Parameters
class Loader Index
The index into the JVMChunkClassLoader's parameters array at which the corresponding literal is located, or invalidIndex if no slot is required.
getter
The function that generates an access of the literal when evaluated.
setter
The function that generates storage of the literal when evaluated, or null if no such facility is required. The generated code assumes that the value to install is on top of the stack.
Properties
Link copied to clipboard
The index into the JVMChunkClassLoader's parameters array at which the corresponding literal is located, or invalidIndex if no slot is required.