/* BSD 2-Clause License - see OPAL/LICENSE for details. */ package org.opalj package da import scala.xml.Node import org.opalj.bi.AccessFlags import org.opalj.bi.AccessFlagsContexts /** * @author Michael Eichberg * @author Wael Alkhatib * @author Isbel Isbel * @author Noorulla Sharief */ case class InnerClassesEntry( inner_class_info_index: Int, outer_class_info_index: Int, inner_name_index: Int, inner_class_access_flags: Int ) { def toXHTML(definingClass: FieldTypeInfo)(implicit cp: Constant_Pool): Node = { val definingClassFQN = definingClass.asJava val accessFlags = AccessFlags.toString(inner_class_access_flags, AccessFlagsContexts.INNER_CLASS) // IMPROVE Use ObjectTypeInfo val definedType = cp(inner_class_info_index).toString val outerClassFQN = if (outer_class_info_index != 0) cp(outer_class_info_index).toString else "" if (definingClassFQN == outerClassFQN && inner_name_index != 0) { val innerName = cp(inner_name_index).toString