remove obsolete ref modifier and callback keyword
[vala-lang.git] / vala / valainvokable.vala
blob240439ddbba8e3194cf1a9799d10b60c2fe9b897
1 /* valainvokable.vala
3 * Copyright (C) 2006-2007 Jürg Billeter
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 * Author:
20 * Jürg Billeter <j@bitron.ch>
23 using GLib;
25 /**
26 * Represents a possibly invokable code object.
28 public interface Vala.Invokable /* : CodeNode */ {
29 /**
30 * Returns whether this code object is invokable.
32 * @return true if invokable, false otherwise
34 public abstract bool is_invokable ();
36 /**
37 * Returns the return type of this invokable.
39 * @return return type
41 public abstract TypeReference get_return_type ();
43 /**
44 * Returns copy of the list of invocation parameters.
46 * @return parameter list
48 public abstract List<weak FormalParameter> get_parameters ();