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

org.opalj.da.BootstrapMethod.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

case class BootstrapMethod(method_ref: Constant_Pool_Index, arguments: Seq[BootstrapArgument]) {

    /**
     * Number of bytes to store the bootstrap method.
     */
    def size: Int = {
        2 /* bootstrap_method_ref */ + 2 + /* num_bootstrap_arguments */
            arguments.length * 2 /* bootstrap_arguments */
    }

    def toXHTML(implicit cp: Constant_Pool): Node = {
        
{ cp(method_ref).asInstructionParameter } { argumentsToXHTML(cp) }
} def argumentsToXHTML(implicit cp: Constant_Pool): Seq[Node] = arguments.map(_.toXHTML(cp)) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy