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

org.opalj.br.analyses.MethodInfo.scala Maven / Gradle / Ivy

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

/**
 * Encapsulates the source of a method.
 */
case class MethodInfo[Source](source: Source, method: Method) {

    def classFile: ClassFile = method.classFile
}

/**
 * Defines a simplified extractor for a [[MethodInfo]] object.
 */
object BasicMethodInfo {

    def unapply(methodInfo: MethodInfo[_]): Some[Method] = Some(methodInfo.method)

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy