Subversion Repositories bacoAlunos

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1777 jmachado 1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2
<!--NewPage-->
3
<HTML>
4
<HEAD>
5
<!-- Generated by javadoc (build 1.5.0_09) on Thu Nov 02 11:46:41 EST 2006 -->
6
<TITLE>
7
Numeric (Ant Contrib)
8
</TITLE>
9
 
10
<META NAME="keywords" CONTENT="net.sf.antcontrib.math.Numeric class">
11
 
12
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
13
 
14
<SCRIPT type="text/javascript">
15
function windowTitle()
16
{
17
    parent.document.title="Numeric (Ant Contrib)";
18
}
19
</SCRIPT>
20
<NOSCRIPT>
21
</NOSCRIPT>
22
 
23
</HEAD>
24
 
25
<BODY BGCOLOR="white" onload="windowTitle();">
26
 
27
 
28
<!-- ========= START OF TOP NAVBAR ======= -->
29
<A NAME="navbar_top"><!-- --></A>
30
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
31
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
32
<TR>
33
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
34
<A NAME="navbar_top_firstrow"><!-- --></A>
35
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
36
  <TR ALIGN="center" VALIGN="top">
37
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
38
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
39
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
40
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
41
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
42
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
43
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
44
  </TR>
45
</TABLE>
46
</TD>
47
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
48
</EM>
49
</TD>
50
</TR>
51
 
52
<TR>
53
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
54
&nbsp;<A HREF="../../../../net/sf/antcontrib/math/MathTask.html" title="class in net.sf.antcontrib.math"><B>PREV CLASS</B></A>&nbsp;
55
&nbsp;<A HREF="../../../../net/sf/antcontrib/math/Operation.html" title="class in net.sf.antcontrib.math"><B>NEXT CLASS</B></A></FONT></TD>
56
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
57
  <A HREF="../../../../index.html?net/sf/antcontrib/math/Numeric.html" target="_top"><B>FRAMES</B></A>  &nbsp;
58
&nbsp;<A HREF="Numeric.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
59
&nbsp;<SCRIPT type="text/javascript">
60
  <!--
61
  if(window==top) {
62
    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
63
  }
64
  //-->
65
</SCRIPT>
66
<NOSCRIPT>
67
  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
68
</NOSCRIPT>
69
 
70
 
71
</FONT></TD>
72
</TR>
73
<TR>
74
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
75
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
76
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
77
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
78
</TR>
79
</TABLE>
80
<A NAME="skip-navbar_top"></A>
81
<!-- ========= END OF TOP NAVBAR ========= -->
82
 
83
<HR>
84
<!-- ======== START OF CLASS DATA ======== -->
85
<H2>
86
<FONT SIZE="-1">
87
net.sf.antcontrib.math</FONT>
88
<BR>
89
Class Numeric</H2>
90
<PRE>
91
java.lang.Object
92
  <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>net.sf.antcontrib.math.Numeric</B>
93
</PRE>
94
<DL>
95
<DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../net/sf/antcontrib/math/Evaluateable.html" title="interface in net.sf.antcontrib.math">Evaluateable</A></DD>
96
</DL>
97
<HR>
98
<DL>
99
<DT><PRE>public class <B>Numeric</B><DT>extends java.lang.Object<DT>implements <A HREF="../../../../net/sf/antcontrib/math/Evaluateable.html" title="interface in net.sf.antcontrib.math">Evaluateable</A></DL>
100
</PRE>
101
 
102
<P>
103
A numeric value that implements Evaluateable.
104
<P>
105
 
106
<P>
107
<DL>
108
<DT><B>Author:</B></DT>
109
  <DD>inger</DD>
110
</DL>
111
<HR>
112
 
113
<P>
114
 
115
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
116
 
117
<A NAME="constructor_summary"><!-- --></A>
118
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
119
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
120
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
121
<B>Constructor Summary</B></FONT></TH>
122
</TR>
123
<TR BGCOLOR="white" CLASS="TableRowColor">
124
<TD><CODE><B><A HREF="../../../../net/sf/antcontrib/math/Numeric.html#Numeric()">Numeric</A></B>()</CODE>
125
 
126
<BR>
127
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
128
</TR>
129
</TABLE>
130
&nbsp;
131
<!-- ========== METHOD SUMMARY =========== -->
132
 
133
<A NAME="method_summary"><!-- --></A>
134
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
135
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
136
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
137
<B>Method Summary</B></FONT></TH>
138
</TR>
139
<TR BGCOLOR="white" CLASS="TableRowColor">
140
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
141
<CODE>&nbsp;java.lang.Number</CODE></FONT></TD>
142
<TD><CODE><B><A HREF="../../../../net/sf/antcontrib/math/Numeric.html#evaluate()">evaluate</A></B>()</CODE>
143
 
144
<BR>
145
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
146
</TR>
147
<TR BGCOLOR="white" CLASS="TableRowColor">
148
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
149
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
150
<TD><CODE><B><A HREF="../../../../net/sf/antcontrib/math/Numeric.html#getDatatype()">getDatatype</A></B>()</CODE>
151
 
152
<BR>
153
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
154
</TR>
155
<TR BGCOLOR="white" CLASS="TableRowColor">
156
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
157
<CODE>&nbsp;void</CODE></FONT></TD>
158
<TD><CODE><B><A HREF="../../../../net/sf/antcontrib/math/Numeric.html#setDatatype(java.lang.String)">setDatatype</A></B>(java.lang.String&nbsp;p)</CODE>
159
 
160
<BR>
161
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the datatype of this number.</TD>
162
</TR>
163
<TR BGCOLOR="white" CLASS="TableRowColor">
164
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
165
<CODE>&nbsp;void</CODE></FONT></TD>
166
<TD><CODE><B><A HREF="../../../../net/sf/antcontrib/math/Numeric.html#setValue(java.lang.String)">setValue</A></B>(java.lang.String&nbsp;value)</CODE>
167
 
168
<BR>
169
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the value for this number.</TD>
170
</TR>
171
<TR BGCOLOR="white" CLASS="TableRowColor">
172
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
173
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
174
<TD><CODE><B><A HREF="../../../../net/sf/antcontrib/math/Numeric.html#toString()">toString</A></B>()</CODE>
175
 
176
<BR>
177
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
178
</TR>
179
</TABLE>
180
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
181
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
182
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
183
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
184
</TR>
185
<TR BGCOLOR="white" CLASS="TableRowColor">
186
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD>
187
</TR>
188
</TABLE>
189
&nbsp;
190
<P>
191
 
192
<!-- ========= CONSTRUCTOR DETAIL ======== -->
193
 
194
<A NAME="constructor_detail"><!-- --></A>
195
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
196
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
197
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
198
<B>Constructor Detail</B></FONT></TH>
199
</TR>
200
</TABLE>
201
 
202
<A NAME="Numeric()"><!-- --></A><H3>
203
Numeric</H3>
204
<PRE>
205
public <B>Numeric</B>()</PRE>
206
<DL>
207
</DL>
208
 
209
<!-- ============ METHOD DETAIL ========== -->
210
 
211
<A NAME="method_detail"><!-- --></A>
212
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
213
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
214
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
215
<B>Method Detail</B></FONT></TH>
216
</TR>
217
</TABLE>
218
 
219
<A NAME="setValue(java.lang.String)"><!-- --></A><H3>
220
setValue</H3>
221
<PRE>
222
public void <B>setValue</B>(java.lang.String&nbsp;value)</PRE>
223
<DL>
224
<DD>Set the value for this number. This string must parse to the set
225
 datatype, for example, setting value to "7.992" and datatype to INT
226
 will cause a number format exception to be thrown. Supports two special
227
 numbers, "E" and "PI".
228
<P>
229
<DD><DL>
230
</DL>
231
</DD>
232
<DD><DL>
233
<DT><B>Parameters:</B><DD><CODE>value</CODE> - the value for this number</DL>
234
</DD>
235
</DL>
236
<HR>
237
 
238
<A NAME="evaluate()"><!-- --></A><H3>
239
evaluate</H3>
240
<PRE>
241
public java.lang.Number <B>evaluate</B>()</PRE>
242
<DL>
243
<DD><DL>
244
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/sf/antcontrib/math/Evaluateable.html#evaluate()">evaluate</A></CODE> in interface <CODE><A HREF="../../../../net/sf/antcontrib/math/Evaluateable.html" title="interface in net.sf.antcontrib.math">Evaluateable</A></CODE></DL>
245
</DD>
246
<DD><DL>
247
 
248
<DT><B>Returns:</B><DD>the value for this number as a Number. Cast as appropriate to
249
         Integer, Long, Float, or Double.</DL>
250
</DD>
251
</DL>
252
<HR>
253
 
254
<A NAME="setDatatype(java.lang.String)"><!-- --></A><H3>
255
setDatatype</H3>
256
<PRE>
257
public void <B>setDatatype</B>(java.lang.String&nbsp;p)</PRE>
258
<DL>
259
<DD>Sets the datatype of this number. Allowed values are
260
 "int", "long", "float", or "double".
261
<P>
262
<DD><DL>
263
</DL>
264
</DD>
265
<DD><DL>
266
</DL>
267
</DD>
268
</DL>
269
<HR>
270
 
271
<A NAME="getDatatype()"><!-- --></A><H3>
272
getDatatype</H3>
273
<PRE>
274
public java.lang.String <B>getDatatype</B>()</PRE>
275
<DL>
276
<DD><DL>
277
</DL>
278
</DD>
279
<DD><DL>
280
 
281
<DT><B>Returns:</B><DD>the datatype as one of the defined types.</DL>
282
</DD>
283
</DL>
284
<HR>
285
 
286
<A NAME="toString()"><!-- --></A><H3>
287
toString</H3>
288
<PRE>
289
public java.lang.String <B>toString</B>()</PRE>
290
<DL>
291
<DD><DL>
292
<DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL>
293
</DD>
294
<DD><DL>
295
</DL>
296
</DD>
297
</DL>
298
<!-- ========= END OF CLASS DATA ========= -->
299
<HR>
300
 
301
 
302
<!-- ======= START OF BOTTOM NAVBAR ====== -->
303
<A NAME="navbar_bottom"><!-- --></A>
304
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
305
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
306
<TR>
307
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
308
<A NAME="navbar_bottom_firstrow"><!-- --></A>
309
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
310
  <TR ALIGN="center" VALIGN="top">
311
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
312
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
313
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
314
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
315
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
316
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
317
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
318
  </TR>
319
</TABLE>
320
</TD>
321
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
322
</EM>
323
</TD>
324
</TR>
325
 
326
<TR>
327
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
328
&nbsp;<A HREF="../../../../net/sf/antcontrib/math/MathTask.html" title="class in net.sf.antcontrib.math"><B>PREV CLASS</B></A>&nbsp;
329
&nbsp;<A HREF="../../../../net/sf/antcontrib/math/Operation.html" title="class in net.sf.antcontrib.math"><B>NEXT CLASS</B></A></FONT></TD>
330
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
331
  <A HREF="../../../../index.html?net/sf/antcontrib/math/Numeric.html" target="_top"><B>FRAMES</B></A>  &nbsp;
332
&nbsp;<A HREF="Numeric.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
333
&nbsp;<SCRIPT type="text/javascript">
334
  <!--
335
  if(window==top) {
336
    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
337
  }
338
  //-->
339
</SCRIPT>
340
<NOSCRIPT>
341
  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
342
</NOSCRIPT>
343
 
344
 
345
</FONT></TD>
346
</TR>
347
<TR>
348
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
349
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
350
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
351
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
352
</TR>
353
</TABLE>
354
<A NAME="skip-navbar_bottom"></A>
355
<!-- ======== END OF BOTTOM NAVBAR ======= -->
356
 
357
<HR>
358
 
359
</BODY>
360
</HTML>