alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Scala example source code file (MemberInfo.java)

This example Scala source code file (MemberInfo.java) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Scala tags/keywords

customattributeprovider, declaringtype, declaringtype, empty_array, memberinfo, memberinfo, membertype, name, name, string, type, type

The Scala MemberInfo.java source code

/*
 * System.Reflection-like API for access to .NET assemblies (DLL & EXE)
 */


package ch.epfl.lamp.compiler.msil;

/**
 * The root class of the Reflection hierarchy.
 *
 * @author Nikolay Mihaylov
 * @version 1.0
 */
public abstract class MemberInfo extends CustomAttributeProvider {

    //##########################################################################

    /** The name of this member. */
    public final String Name;

    /**
     * The class that declares this member.
     * Note: if the MemberInfo object is a global member,
     * (that is, it was obtained from Module.GetMethods,
     * which returns global methods on a module), then DeclaringType
     * will be a null reference.
     */
    public final Type DeclaringType;

    /** An enumerated value from the MemberTypes class,
     *  specifying a constructor, event, field, method,
     *  property, type information, all, or custom. */
    public abstract int MemberType();

    //##########################################################################
    // protected members

    protected static final MemberInfo[] EMPTY_ARRAY = new MemberInfo[0];

    protected MemberInfo(String name, Type declType) {
	Name = name;
	DeclaringType = declType;
    }

    //########################################################################

}  // class MemberInfo

Other Scala examples (source code examples)

Here is a short list of links related to this Scala MemberInfo.java source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

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.