ballerina/jvm module

Module Detail

Objects

Object Description
ClassWriter
FieldVisitor
Label
MethodVisitor

Functions

Function Description
lookupExternClassName

public function lookupExternClassName(string pkgName, string functionName) returns (string)

Parameter Name Data Type Default Value Description
pkgName string
functionName string
Return Type Description
string

public type ClassWriter object

  • <ClassWriter> __init(int flags)

    Parameter Name Data Type Default Value Description
    flags int
  • <ClassWriter> visit(int versionNumber, int access, string name, string? signature, string superName, string[]? interfaces)

    Parameter Name Data Type Default Value Description
    versionNumber int
    access int
    name string
    signature string?
    superName string
    interfaces string[]?
  • <ClassWriter> visitMethod(int access, string name, string descriptor, string? signature, string[]? exceptions) returns (MethodVisitor)

    Parameter Name Data Type Default Value Description
    access int
    name string
    descriptor string
    signature string?
    exceptions string[]?
    Return Type Description
    MethodVisitor
  • <ClassWriter> visitField(int access, string name, string descriptor, string? signature, string[]? exceptions) returns (FieldVisitor)

    Parameter Name Data Type Default Value Description
    access int
    name string
    descriptor string
    signature string? ()
    exceptions string[]? ()
    Return Type Description
    FieldVisitor
  • <ClassWriter> visitEnd()

  • <ClassWriter> visitSource(string fileName)

    Parameter Name Data Type Default Value Description
    fileName string
  • <ClassWriter> toByteArray() returns (byte[])

    Return Type Description
    byte[]

public type FieldVisitor object

  • <FieldVisitor> visitEnd()

public type Label object

public type MethodVisitor object

  • <MethodVisitor> visitInsn(int opcode)

    Parameter Name Data Type Default Value Description
    opcode int
  • <MethodVisitor> visitIntInsn(int opcode, int operand)

    Parameter Name Data Type Default Value Description
    opcode int
    operand int
  • <MethodVisitor> visitVarInsn(int opcode, int variable)

    Parameter Name Data Type Default Value Description
    opcode int
    variable int
  • <MethodVisitor> visitTypeInsn(int opcode, string classType)

    Parameter Name Data Type Default Value Description
    opcode int
    classType string
  • <MethodVisitor> visitFieldInsn(int opcode, string owner, string name, string descriptor)

    Parameter Name Data Type Default Value Description
    opcode int
    owner string
    name string
    descriptor string
  • <MethodVisitor> visitMethodInsn(int opcode, string owner, string name, string descriptor, boolean isInterface)

    Parameter Name Data Type Default Value Description
    opcode int
    owner string
    name string
    descriptor string
    isInterface boolean
  • <MethodVisitor> visitJumpInsn(int opcode, jvm:Label label)

    Parameter Name Data Type Default Value Description
    opcode int
    label jvm:Label
  • <MethodVisitor> visitLabel(jvm:Label label)

    Parameter Name Data Type Default Value Description
    label jvm:Label
  • <MethodVisitor> visitLdcInsn(any value)

    Parameter Name Data Type Default Value Description
    value any
  • <MethodVisitor> visitMaxs(int maxStack, int maxLocals)

    Parameter Name Data Type Default Value Description
    maxStack int
    maxLocals int
  • <MethodVisitor> visitCode()

  • <MethodVisitor> visitEnd()

  • <MethodVisitor> visitLookupSwitchInsn(jvm:Label defaultLabel, int[] keys, jvm:Label[] labels)

    Parameter Name Data Type Default Value Description
    defaultLabel jvm:Label
    keys int[]
    labels jvm:Label[]
  • <MethodVisitor> visitInvokeDynamicInsn(string className, string lambdaName, boolean isVoid)

    Parameter Name Data Type Default Value Description
    className string
    lambdaName string
    isVoid boolean
  • <MethodVisitor> visitTryCatchBlock(jvm:Label startLabel, jvm:Label endLabel, jvm:Label handlerLabel, string exceptionType)

    Parameter Name Data Type Default Value Description
    startLabel jvm:Label
    endLabel jvm:Label
    handlerLabel jvm:Label
    exceptionType string
  • <MethodVisitor> visitLineNumber(int line, jvm:Label label)

    Parameter Name Data Type Default Value Description
    line int
    label jvm:Label