summaryrefslogtreecommitdiff
path: root/src/library/scala/runtime/MetaAttribute.cs
blob: 28ab499bdd433bca57bd67fed4fb5587a041e214 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*                     __                                               *\
**     ________ ___   / /  ___     Scala API                            **
**    / __/ __// _ | / /  / _ |    (c) 2002-2005, LAMP/EPFL             **
**  __\ \/ /__/ __ |/ /__/ __ |                                         **
** /____/\___/_/ |_/____/_/ | |                                         **
**                          |/                                          **
\*                                                                      */

// $Id$

using System;

namespace scala.runtime
{
    /// <summary>
    /// Stores additional meta-information about classes and members.
    /// Used to augment type information in classes from the scala
    /// library written in Java.
    /// </summary>

    [AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface | AttributeTargets.Field
         | AttributeTargets.Constructor | AttributeTargets.Method,
         AllowMultiple = false, Inherited = false)]
    public class MetaAttribute : Attribute
    {
        // keeps a textual representation of the pico-style attributes
        // used in some classes of the runtime library
        public readonly string meta;
        public MetaAttribute(string meta)
        {
            this.meta = meta;
        }
    }
}