|
Scala example source code file (ParameterBuilder.scala)
The Scala ParameterBuilder.scala source code/* * System.Reflection.Emit-like API for writing .NET assemblies to MSIL */ package ch.epfl.lamp.compiler.msil.emit import ch.epfl.lamp.compiler.msil.Type import ch.epfl.lamp.compiler.msil.ConstructorInfo import ch.epfl.lamp.compiler.msil.ParameterInfo import java.io.IOException /** * Creates or associates parameter information. * Parameter attributes need to consistent with the method signature. * If you specify Out attributes for a parameter, you should ensure that * the type of that method parameter is a ByRef type * * @author Nikolay Mihaylov * @version 1.0 */ class ParameterBuilder(name: String, tpe: Type, attr: Int, pos: Int) extends ParameterInfo(name, tpe, attr, pos) with ICustomAttributeSetter with Visitable { //########################################################################## /** Sets a custom attribute. */ def SetCustomAttribute(constr: ConstructorInfo, value: Array[Byte]) { addCustomAttribute(constr, value) } //########################################################################## /** The apply method for a visitor */ @throws(classOf[IOException]) def apply(v: Visitor) { v.caseParameterBuilder(this) } //########################################################################## } Other Scala examples (source code examples)Here is a short list of links related to this Scala ParameterBuilder.scala source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.