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

org.opalj.da.Unknown_attribute.scala Maven / Gradle / Ivy

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

import scala.xml.Node

/**
 * @author Michael Eichberg
 */
case class Unknown_attribute(
        attribute_name_index: Constant_Pool_Index,
        info:                 Array[Byte]
) extends Attribute {

    final override def attribute_length: Int = info.size

    override def toXHTML(implicit cp: Constant_Pool): Node = {
        val attributeName = cp(attribute_name_index).toString
        
{ attributeName } { if (attribute_length > 0) { ({ attribute_length }bytes):
{ byteArrayToNode(info) }
} }
} }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy