TypeConverter

org.nlogo.generate.TypeConverter
object TypeConverter

Attributes

Source
TypeConverter.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def generateConversion(typeFrom: Class[_], typeTo: Class[_], mv: MethodVisitor, firstFreeJVMLocal: Int, parentInstr: Instruction, argIndex: Int): Unit

Value parameters

argIndex
  • this is the index of the argument that is being converted we need this, so we can create ArgumentTypeExceptions pointing to the correct culprit.
firstFreeJVMLocal
  • this tells us what local variable slots are free/available to use, to store temporary information.
mv
  • ASM MethodVisitor to write bytes to
parentInstr
  • we a reference to the instruction so we can throw a proper exception when something goes wrong.
typeFrom
  • what we are converting from
typeTo
  • what we are converting to

Attributes

Source
TypeConverter.scala