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

apparat.abc.AbcClass.scala Maven / Gradle / Ivy

package apparat.abc

import apparat.utils.{IndentingPrintWriter, Dumpable}

class AbcClass(var init: AbcMethod, var traits: Array[AbcTrait]) extends Dumpable with HasTraits {
	init.anonymous = false
	
	def accept(visitor: AbcVisitor) = {
		visitor visit this
		traits foreach (_ accept visitor)
	}

	override def dump(writer: IndentingPrintWriter) = {
		writer <= "Class: "
		writer withIndent {
			dumpTraits(writer)
			init dump writer
		}
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy