summaryrefslogtreecommitdiff
path: root/sources/scalac/atree/AFunction.java
blob: 2970222a2c274f1bac6a84d69d25b1dedb81cf57 (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
/*     ____ ____  ____ ____  ______                                     *\
**    / __// __ \/ __// __ \/ ____/    SOcos COmpiles Scala             **
**  __\_ \/ /_/ / /__/ /_/ /\_ \       (c) 2002, LAMP/EPFL              **
** /_____/\____/\___/\____/____/                                        **
\*                                                                      */

// $Id$

package scalac.atree;

import scalac.symtab.Type;
import scalac.symtab.Symbol;

/** This class represents an attributed function reference. */
public class AFunction {

    //########################################################################
    // Public Cases

    public case Method(ACode object, Symbol method, AInvokeStyle style);
    public case Primitive(APrimitive primitive);
    public case NewArray(Type element);

    //########################################################################
    // Public Methods

    /** Returns a string representation of this function. */
    public String toString() {
        return new ATreePrinter().printFunction(this).toString();
    }

    //########################################################################
}