2 # Copyright 1999, 2000, 2001 Patrik Stridvall
4 # This library is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU Lesser General Public
6 # License as published by the Free Software Foundation; either
7 # version 2.1 of the License, or (at your option) any later version.
9 # This library is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 # Lesser General Public License for more details.
14 # You should have received a copy of the GNU Lesser General Public
15 # License along with this library; if not, write to the Free Software
16 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
26 my $class = ref($proto) || $proto;
28 bless ($self, $class);
35 # Property setter / getter functions (each does both)
41 my $file = \
${$self->{FILE
}};
45 if(defined($_)) { $$file = $_; }
53 my $begin_line = \
${$self->{BEGIN_LINE
}};
57 if(defined($_)) { $$begin_line = $_; }
65 my $begin_column = \
${$self->{BEGIN_COLUMN
}};
69 if(defined($_)) { $$begin_column = $_; }
71 return $$begin_column;
77 my $end_line = \
${$self->{END_LINE
}};
81 if(defined($_)) { $$end_line = $_; }
89 my $end_column = \
${$self->{END_COLUMN
}};
93 if(defined($_)) { $$end_column = $_; }
101 my $linkage = \
${$self->{LINKAGE
}};
105 if(defined($_)) { $$linkage = $_; }
113 my $return_type = \
${$self->{RETURN_TYPE
}};
117 if(defined($_)) { $$return_type = $_; }
119 return $$return_type;
122 sub calling_convention
($;$)
125 my $calling_convention = \
${$self->{CALLING_CONVENTION
}};
129 if(defined($_)) { $$calling_convention = $_; }
131 return $$calling_convention;
137 my $name = \
${$self->{NAME
}};
141 if(defined($_)) { $$name = $_; }
146 sub argument_types
($;$)
149 my $argument_types = \
${$self->{ARGUMENT_TYPES
}};
153 if(defined($_)) { $$argument_types = $_; }
155 return $$argument_types;
158 sub argument_names
($;$)
161 my $argument_names = \
${$self->{ARGUMENT_NAMES
}};
165 if(defined($_)) { $$argument_names = $_; }
167 return $$argument_names;
170 sub statements_line
($;$)
173 my $statements_line = \
${$self->{STATEMENTS_LINE
}};
177 if(defined($_)) { $$statements_line = $_; }
179 return $$statements_line;
182 sub statements_column
($;$)
185 my $statements_column = \
${$self->{STATEMENTS_COLUMN
}};
189 if(defined($_)) { $$statements_column = $_; }
191 return $$statements_column;
197 my $statements = \
${$self->{STATEMENTS
}};
201 if(defined($_)) { $$statements = $_; }