All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dotty.tools.backend.jvm.GenBCodeOps.scala Maven / Gradle / Ivy

There is a newer version: 3.6.4-RC1-bin-20241220-0bfa1af-NIGHTLY
Show newest version
package dotty.tools
package backend
package jvm

import scala.tools.asm

object GenBCodeOps extends GenBCodeOps

class GenBCodeOps {
  extension (flags: Int)
    def addFlagIf(cond: Boolean, flag: Int): Int = if cond then flags | flag else flags

  final val PublicStatic      = asm.Opcodes.ACC_PUBLIC | asm.Opcodes.ACC_STATIC
  final val PublicStaticFinal = asm.Opcodes.ACC_PUBLIC | asm.Opcodes.ACC_STATIC | asm.Opcodes.ACC_FINAL
  final val PrivateStaticFinal = asm.Opcodes.ACC_PRIVATE | asm.Opcodes.ACC_STATIC | asm.Opcodes.ACC_FINAL
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy