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

org.opalj.br.ConstantClass.scala Maven / Gradle / Ivy

The newest version!
/* BSD 2-Clause License - see OPAL/LICENSE for details. */
package org.opalj
package br

/**
 * Represents a class or interface.
 *
 * `ConstantClass` is, e.g., used by `anewarray` and `multianewarray` instructions.
 * A `ConstantClass` value is never a `Field` value. I.e., it is never used to
 * set the value of a static final field.
 */
final case class ConstantClass(value: ReferenceType) extends ConstantValue[ReferenceType] {

    override def valueToString = value.toJava

    final def toJava = valueToString+".class"

    override def runtimeValueType = ObjectType.Class

    final override def toReferenceType: ReferenceType = value
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy