|
Scala example source code file (CustomAttributesTest.java)
The Scala CustomAttributesTest.java source codepackage ch.epfl.lamp.compiler.msil.tests; import ch.epfl.lamp.compiler.msil.*; import ch.epfl.lamp.compiler.msil.util.Table; import java.io.PrintStream; public class CustomAttributesTest { public static void main(String[] args) { if (args.length < 1) { System.err.println("You must supply a filename!"); System.exit(1); } Assembly assem = Assembly.LoadFrom(args[0]); Type.initMSCORLIB(assem); testCustomAttributes(); } public static void testCustomAttributes() { Object[] attrs = Type.GetType("System.ObsoleteAttribute") .GetCustomAttributes(false); assert attrs != null; for (int i = 0; i < attrs.length; i++) { System.out.println("\t" + attrs[i]); } } } Other Scala examples (source code examples)Here is a short list of links related to this Scala CustomAttributesTest.java 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.