File: CompiledExpression.html

package info (click to toggle)
jel 2.1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 3,288 kB
  • sloc: javascript: 15,979; java: 6,749; xml: 1,729; makefile: 6
file content (685 lines) | stat: -rw-r--r-- 34,619 bytes parent folder | download | duplicates (2)
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
<!DOCTYPE HTML>
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (14.0.2) on Tue Nov 17 18:26:26 MSK 2020 -->
<title>CompiledExpression (JEL API)</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2020-11-17">
<meta name="description" content="declaration: package: gnu.jel, class: CompiledExpression">
<meta name="generator" content="javadoc/ClassWriterImpl">
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../script-dir/jquery-ui.css" title="Style">
<script type="text/javascript" src="../../script.js"></script>
<script type="text/javascript" src="../../script-dir/jszip/dist/jszip.min.js"></script>
<script type="text/javascript" src="../../script-dir/jszip-utils/dist/jszip-utils.min.js"></script>
<!--[if IE]>
<script type="text/javascript" src="../../script-dir/jszip-utils/dist/jszip-utils-ie.min.js"></script>
<![endif]-->
<script type="text/javascript" src="../../script-dir/jquery-3.4.1.js"></script>
<script type="text/javascript" src="../../script-dir/jquery-ui.js"></script>
</head>
<body class="class-declaration">
<script type="text/javascript">var data = {"i0":9,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":6,"i12":6};
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
var pathtoroot = "../../";
loadScripts(document, 'script');</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<div class="flexBox">
<header role="banner" class="flexHeader">
<nav role="navigation">
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a id="navbar.top">
<!--   -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.top.firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/CompiledExpression.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../index-all.html">Index</a></li>
<li><a href="../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<div class="navListSearch"><label for="search">SEARCH:</label>
<input type="text" id="search" value="search" disabled="disabled">
<input type="reset" id="reset" value="reset" disabled="disabled">
</div>
</div>
<!-- ========= END OF TOP NAVBAR ========= -->
<div class="skipNav"><a id="skip.navbar.top">
<!--   -->
</a></div>
</nav>
</header>
<div class="flexContent">
<main role="main">
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle"><span class="packageLabelInType">Package</span>&nbsp;<a href="package-summary.html">gnu.jel</a></div>
<h1 title="Class CompiledExpression" class="title">Class CompiledExpression</h1>
</div>
<div class="contentContainer">
<div class="inheritance" title="Inheritance Tree">java.lang.Object
<div class="inheritance">gnu.jel.CompiledExpression</div>
</div>
<section class="description">
<hr>
<pre>public abstract class <span class="typeNameLabel">CompiledExpression</span>
extends java.lang.Object</pre>
<div class="block">This abstract class is a superclass of every JEL-compiled expression,
 each of which overrides some of the abstract methods below.
 <p> Most methods of this class accept a reference to the array of objects. 
 This reference is a pointer to the dynamic object library. As you know,
 JEL allows to call virtual methods of Java classes, but, as you also know,
 virtual methods require a reference to an object instance
 (<tt>this</tt>) to be
 passed along with parameters. The array <tt>dl</tt> (dynamic 
 library) serves just this purpose. It should contain references
 to objects of all classes, whose 
 <i>virtual</i> methods were put into the Library of callable functions.
 Objects
 in the <tt>dl</tt> array should correspond one-to-one to classes
 in the array, passed as a second argument of <TT>gnu.jel.Library</TT>
 constructor.
 <p>
 <p> There are two ways of evaluating the compiled expressions allowing
 to compromise between raw performance and simplicity:
 <p> The <i>first method</i> (simplest one) is based on the call to the
 <TT> evaluate</TT> method, which will
 return an object even if the result of computation was of a primitive type.
 The primitive types will be automatically converted into the 
 corresponding reflection 
 objects. There is certain overhead, associated with object creation, it 
 takes CPU cycles and also produces load on the garbage collector later..
 <P>For massive (thousand times) evaluations of functions, producing 
 results of primitive Java types, the <I>second 
 method</I> can be more suitable. It is based on : first, determining the 
 type of the result, and, then, subsequent call to the
 <U>corresponding</U> evaluateXXX method.
 <P> The type of the resulting expression can be determined by call to the
 getType() method. It will return an integer number, indentifying the type,
 <U>proper</U> evaluateXXX method can be determined, 
 based on the following table:
 <PRE>
 getType()   |  method to call
 ------------+----------------------
 0           | evaluate_boolean(...)
 1           | evaluate_byte(...)
 2           | evaluate_char(...)
 3           | evaluate_short(...)
 4           | evaluate_int(...)
 5           | evaluate_long(...)
 6           | evaluate_float(...)
 7           | evaluate_double(...)
 8           | evaluate(...)         &lt;- result is Object (universal method)
 9           | evaluate_void(...)
 -----------------------------------
 </PRE>
 <P> Note: If a wrong evaluateXXX() method is called, it will return zero,
 and, in debug version of JEL (jel_g.jar) only, a warning will be 
 printed to stderr.
 <P> There is a possibility to enforce resulting type of the expression at
 compile time (see <tt>gnu.jel.Evaluator</tt>). 
 Use it to avoid unnecesary type checks.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="Library.html" title="class in gnu.jel"><code>Library</code></a>, 
<a href="Evaluator.html" title="class in gnu.jel"><code>Evaluator</code></a></dd>
</dl>
</section>
<section class="summary">
<ul class="blockList">
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<li class="blockList">
<section class="constructorSummary"><a id="constructor.summary">
<!--   -->
</a>
<h2>Constructor Summary</h2>
<div class="memberSummary">
<table>
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<thead>
<tr>
<th class="colFirst" scope="col">Constructor</th>
<th class="colLast" scope="col">Description</th>
</tr>
</thead>
<tbody>
<tr class="altColor">
<th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E()">CompiledExpression</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
</tbody>
</table>
</div>
</section>
</li>
<!-- ========== METHOD SUMMARY =========== -->
<li class="blockList">
<section class="methodSummary"><a id="method.summary">
<!--   -->
</a>
<h2>Method Summary</h2>
<div class="memberSummary">
<div role="tablist" aria-orientation="horizontal"><button role="tab" aria-selected="true" aria-controls="memberSummary_tabpanel" tabindex="0" onkeydown="switchTab(event)" id="t0" class="activeTableTab">All Methods</button><button role="tab" aria-selected="false" aria-controls="memberSummary_tabpanel" tabindex="-1" onkeydown="switchTab(event)" id="t1" class="tableTab" onclick="show(1);">Static Methods</button><button role="tab" aria-selected="false" aria-controls="memberSummary_tabpanel" tabindex="-1" onkeydown="switchTab(event)" id="t2" class="tableTab" onclick="show(2);">Instance Methods</button><button role="tab" aria-selected="false" aria-controls="memberSummary_tabpanel" tabindex="-1" onkeydown="switchTab(event)" id="t3" class="tableTab" onclick="show(4);">Abstract Methods</button><button role="tab" aria-selected="false" aria-controls="memberSummary_tabpanel" tabindex="-1" onkeydown="switchTab(event)" id="t4" class="tableTab" onclick="show(8);">Concrete Methods</button></div>
<div id="memberSummary_tabpanel" role="tabpanel">
<table aria-labelledby="t0">
<thead>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Method</th>
<th class="colLast" scope="col">Description</th>
</tr>
</thead>
<tbody>
<tr class="altColor" id="i0">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#compare(java.lang.String,java.lang.String)">compare</a></span>&#8203;(java.lang.String&nbsp;s1,
java.lang.String&nbsp;s2)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor" id="i1">
<td class="colFirst"><code>java.lang.Object</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#evaluate(java.lang.Object%5B%5D)">evaluate</a></span>&#8203;(java.lang.Object[]&nbsp;dl)</code></th>
<td class="colLast">
<div class="block">Evaluates the expression, representing result as an object.</div>
</td>
</tr>
<tr class="altColor" id="i2">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#evaluate_boolean(java.lang.Object%5B%5D)">evaluate_boolean</a></span>&#8203;(java.lang.Object[]&nbsp;dl)</code></th>
<td class="colLast">
<div class="block">Evaluates the expression whose result has type <TT>boolean</TT>.</div>
</td>
</tr>
<tr class="rowColor" id="i3">
<td class="colFirst"><code>byte</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#evaluate_byte(java.lang.Object%5B%5D)">evaluate_byte</a></span>&#8203;(java.lang.Object[]&nbsp;dl)</code></th>
<td class="colLast">
<div class="block">Evaluates the expression whose result has type <TT>byte</TT>.</div>
</td>
</tr>
<tr class="altColor" id="i4">
<td class="colFirst"><code>char</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#evaluate_char(java.lang.Object%5B%5D)">evaluate_char</a></span>&#8203;(java.lang.Object[]&nbsp;dl)</code></th>
<td class="colLast">
<div class="block">Evaluates the expression whose result has type <TT>char</TT>.</div>
</td>
</tr>
<tr class="rowColor" id="i5">
<td class="colFirst"><code>double</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#evaluate_double(java.lang.Object%5B%5D)">evaluate_double</a></span>&#8203;(java.lang.Object[]&nbsp;dl)</code></th>
<td class="colLast">
<div class="block">Evaluates the expression whose result has type <TT>double</TT>.</div>
</td>
</tr>
<tr class="altColor" id="i6">
<td class="colFirst"><code>float</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#evaluate_float(java.lang.Object%5B%5D)">evaluate_float</a></span>&#8203;(java.lang.Object[]&nbsp;dl)</code></th>
<td class="colLast">
<div class="block">Evaluates the expression whose result has type <TT>float</TT>.</div>
</td>
</tr>
<tr class="rowColor" id="i7">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#evaluate_int(java.lang.Object%5B%5D)">evaluate_int</a></span>&#8203;(java.lang.Object[]&nbsp;dl)</code></th>
<td class="colLast">
<div class="block">Evaluates the expression whose result has type <TT>int</TT>.</div>
</td>
</tr>
<tr class="altColor" id="i8">
<td class="colFirst"><code>long</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#evaluate_long(java.lang.Object%5B%5D)">evaluate_long</a></span>&#8203;(java.lang.Object[]&nbsp;dl)</code></th>
<td class="colLast">
<div class="block">Evaluates the expression whose result has type <TT>long</TT>.</div>
</td>
</tr>
<tr class="rowColor" id="i9">
<td class="colFirst"><code>short</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#evaluate_short(java.lang.Object%5B%5D)">evaluate_short</a></span>&#8203;(java.lang.Object[]&nbsp;dl)</code></th>
<td class="colLast">
<div class="block">Evaluates the expression whose result has type <TT>short</TT>.</div>
</td>
</tr>
<tr class="altColor" id="i10">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#evaluate_void(java.lang.Object%5B%5D)">evaluate_void</a></span>&#8203;(java.lang.Object[]&nbsp;dl)</code></th>
<td class="colLast">
<div class="block">Evaluates the expression whose result has type <TT>void</TT>.</div>
</td>
</tr>
<tr class="rowColor" id="i11">
<td class="colFirst"><code>abstract int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getType()">getType</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns type of the expression result.</div>
</td>
</tr>
<tr class="altColor" id="i12">
<td class="colFirst"><code>abstract java.lang.Class&lt;?&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getTypeC()">getTypeC</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns the type of the expression result.</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="inheritedList">
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
<a id="methods.inherited.from.class.java.lang.Object">
<!--   -->
</a><code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></div>
</section>
</li>
</ul>
</section>
<section class="details">
<ul class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<li class="blockList">
<section class="constructorDetails"><a id="constructor.detail">
<!--   -->
</a>
<h2>Constructor Details</h2>
<ul class="blockList">
<li class="blockList">
<section class="detail">
<h3><a id="&lt;init&gt;()">CompiledExpression</a></h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="memberName">CompiledExpression</span>()</div>
</section>
</li>
</ul>
</section>
</li>
<!-- ============ METHOD DETAIL ========== -->
<li class="blockList">
<section class="methodDetails"><a id="method.detail">
<!--   -->
</a>
<h2>Method Details</h2>
<ul class="blockList">
<li class="blockList">
<section class="detail">
<h3><a id="getType()">getType</a></h3>
<div class="memberSignature"><span class="modifiers">public abstract</span>&nbsp;<span class="returnType">int</span>&nbsp;<span class="memberName">getType</span>()</div>
<div class="block">Returns type of the expression result.
 <P> The type is encoded in integer. Following table could help
 in determining what it is :
 <PRE>
 getType()   |  method to call
 ------------+-----------------
 0           | boolean
 1           | byte
 2           | char
 3           | short
 4           | int
 5           | long
 6           | float
 7           | double
 8           | Object
 9           | void
 </PRE>
 <P> The reason not to introduce the family of, say, TYPE_XXX constants
 is to save space. There are so many things connected with these
 particular numbers in code generator that it could be a pain to change 
 their meaning. Also, this shoul never be necessary because these 
 are ALL Java 1.X primitive types.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the type of the expression, encoded in integer.</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="getTypeC()">getTypeC</a></h3>
<div class="memberSignature"><span class="modifiers">public abstract</span>&nbsp;<span class="returnType">java.lang.Class&lt;?&gt;</span>&nbsp;<span class="memberName">getTypeC</span>()</div>
<div class="block">Returns the type of the expression result.
 <p>If the result has primitive type the corresponding wrapper
 class is returned (please note that it is just a wrapper class like
 java.lang.Integer instead of exact primitive type class 
 java.lang.Integer.TYPE). This corresponds to the wrapping done
 in non-specialized evaluate() method.
 <p>When the result is an object, the returned value is the most 
 specific reference to the class of that object (which is always
 a subclass of the returned class) available at compile time.
 <p>The precision of determining the result type this way mainly
 depends on the design of the user's function namespace (defined
 by gnu.jel.Library class). It is possible to design a library in
 such a way that the best approximation to the result type obtainable
 at compile time would be the java.lang.Object class, which will
 be returned by this method, thus, providing no useful information
 about the actual type.
 <p>Please note again that the guaranteed exact type of the result can't be
 determined at compile time and can be quiered only after evaluating
 the expression (directly from resulting object). 
 <p> The only guarantee
 this method provides is that a variable of the returned expression type
 can be assigned by a reference, resulting from a call to evaluate.</div>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="evaluate(java.lang.Object[])">evaluate</a></h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="returnType">java.lang.Object</span>&nbsp;<span class="memberName">evaluate</span>&#8203;(<span class="arguments">java.lang.Object[]&nbsp;dl)</span>
                          throws <span class="exceptions">java.lang.Throwable</span></div>
<div class="block">Evaluates the expression, representing result as an object.
 <P> If the result of evaluation is Java primitive type it gets wrapped
 into corresponding reflection object , i.e. 
 <TT>int</TT> -&gt; <TT>java.lang.Integer</TT>,
 <TT>boolean</TT> -&gt; <TT>java.lang.Boolean</TT>,...</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>dl</code> - Array of the instance references to the objects in dynamic
  library. See description of this class above for more details.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the result fo computation.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.Throwable</code> - if any runtime error have occured (i.e. division
          by 0)</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="Evaluator.html#compile(java.lang.String,gnu.jel.Library,java.lang.Class)"><code>Evaluator.compile(java.lang.String, gnu.jel.Library, java.lang.Class&lt;?&gt;)</code></a>, 
<a href="Library.html" title="class in gnu.jel"><code>Library</code></a></dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="evaluate_boolean(java.lang.Object[])">evaluate_boolean</a></h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="returnType">boolean</span>&nbsp;<span class="memberName">evaluate_boolean</span>&#8203;(<span class="arguments">java.lang.Object[]&nbsp;dl)</span>
                         throws <span class="exceptions">java.lang.Throwable</span></div>
<div class="block">Evaluates the expression whose result has type <TT>boolean</TT>.
 <P> If the type of the result is not a <TT>boolean</TT> this function 
 returns always <TT>false</TT>, debug version will print a warning to stderr.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>dl</code> - Array of the instance references to the objects in dynamic
  library. See description of this class above for more details.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the result fo computation.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.Throwable</code> - if any runtime error have occured (i.e. division
          by 0)</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="Evaluator.html#compile(java.lang.String,gnu.jel.Library,java.lang.Class)"><code>Evaluator.compile(java.lang.String, gnu.jel.Library, java.lang.Class&lt;?&gt;)</code></a>, 
<a href="Library.html" title="class in gnu.jel"><code>Library</code></a></dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="evaluate_byte(java.lang.Object[])">evaluate_byte</a></h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="returnType">byte</span>&nbsp;<span class="memberName">evaluate_byte</span>&#8203;(<span class="arguments">java.lang.Object[]&nbsp;dl)</span>
                   throws <span class="exceptions">java.lang.Throwable</span></div>
<div class="block">Evaluates the expression whose result has type <TT>byte</TT>.
 <P> If the type of the result is not a <TT>byte</TT> this function returns
 always <TT>0</TT>, debug version will print a warning to stderr.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>dl</code> - Array of the instance references to the objects in dynamic
  library. See description of this class above for more details.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the result fo computation.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.Throwable</code> - if any runtime error have occured (i.e. division
          by 0)</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="Evaluator.html#compile(java.lang.String,gnu.jel.Library,java.lang.Class)"><code>Evaluator.compile(java.lang.String, gnu.jel.Library, java.lang.Class&lt;?&gt;)</code></a>, 
<a href="Library.html" title="class in gnu.jel"><code>Library</code></a></dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="evaluate_short(java.lang.Object[])">evaluate_short</a></h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="returnType">short</span>&nbsp;<span class="memberName">evaluate_short</span>&#8203;(<span class="arguments">java.lang.Object[]&nbsp;dl)</span>
                     throws <span class="exceptions">java.lang.Throwable</span></div>
<div class="block">Evaluates the expression whose result has type <TT>short</TT>.
 <P>If the type of the result is not a <TT>short</TT> this function returns
 always <TT>0</TT>, debug version will print a warning to stderr.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>dl</code> - Array of the instance references to the objects in dynamic
  library. See description of this class above for more details.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the result fo computation.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.Throwable</code> - if any runtime error have occured (i.e. division
          by 0)</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="Evaluator.html#compile(java.lang.String,gnu.jel.Library,java.lang.Class)"><code>Evaluator.compile(java.lang.String, gnu.jel.Library, java.lang.Class&lt;?&gt;)</code></a>, 
<a href="Library.html" title="class in gnu.jel"><code>Library</code></a></dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="evaluate_char(java.lang.Object[])">evaluate_char</a></h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="returnType">char</span>&nbsp;<span class="memberName">evaluate_char</span>&#8203;(<span class="arguments">java.lang.Object[]&nbsp;dl)</span>
                   throws <span class="exceptions">java.lang.Throwable</span></div>
<div class="block">Evaluates the expression whose result has type <TT>char</TT>.
 <P>If the type of the result is not a <TT>char</TT> this function returns
 always <TT>'?'</TT>, debug version will print a warning to stderr.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>dl</code> - Array of the instance references to the objects in dynamic
  library. See description of this class above for more details.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the result fo computation.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.Throwable</code> - if any runtime error have occured (i.e. division
          by 0)</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="Evaluator.html#compile(java.lang.String,gnu.jel.Library,java.lang.Class)"><code>Evaluator.compile(java.lang.String, gnu.jel.Library, java.lang.Class&lt;?&gt;)</code></a>, 
<a href="Library.html" title="class in gnu.jel"><code>Library</code></a></dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="evaluate_int(java.lang.Object[])">evaluate_int</a></h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="returnType">int</span>&nbsp;<span class="memberName">evaluate_int</span>&#8203;(<span class="arguments">java.lang.Object[]&nbsp;dl)</span>
                 throws <span class="exceptions">java.lang.Throwable</span></div>
<div class="block">Evaluates the expression whose result has type <TT>int</TT>.
 <P>If the type of the result is not a <TT>int</TT> this function returns
 always <TT>0</TT>, debug version will print a warning to stderr.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>dl</code> - Array of the instance references to the objects in dynamic
  library. See description of this class above for more details.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the result fo computation.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.Throwable</code> - if any runtime error have occured (i.e. division
          by 0)</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="Evaluator.html#compile(java.lang.String,gnu.jel.Library,java.lang.Class)"><code>Evaluator.compile(java.lang.String, gnu.jel.Library, java.lang.Class&lt;?&gt;)</code></a>, 
<a href="Library.html" title="class in gnu.jel"><code>Library</code></a></dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="evaluate_long(java.lang.Object[])">evaluate_long</a></h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="returnType">long</span>&nbsp;<span class="memberName">evaluate_long</span>&#8203;(<span class="arguments">java.lang.Object[]&nbsp;dl)</span>
                   throws <span class="exceptions">java.lang.Throwable</span></div>
<div class="block">Evaluates the expression whose result has type <TT>long</TT>.
 <P>If the type of the result is not a <TT>long</TT> this function returns
 always <TT>0</TT>, debug version will print a warning to stderr.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>dl</code> - Array of the instance references to the objects in dynamic
  library. See description of this class above for more details.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the result fo computation.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.Throwable</code> - if any runtime error have occured (i.e. division
          by 0)</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="Evaluator.html#compile(java.lang.String,gnu.jel.Library,java.lang.Class)"><code>Evaluator.compile(java.lang.String, gnu.jel.Library, java.lang.Class&lt;?&gt;)</code></a>, 
<a href="Library.html" title="class in gnu.jel"><code>Library</code></a></dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="evaluate_float(java.lang.Object[])">evaluate_float</a></h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="returnType">float</span>&nbsp;<span class="memberName">evaluate_float</span>&#8203;(<span class="arguments">java.lang.Object[]&nbsp;dl)</span>
                     throws <span class="exceptions">java.lang.Throwable</span></div>
<div class="block">Evaluates the expression whose result has type <TT>float</TT>.
 <P>If the type of the result is not a <TT>float</TT> this function returns
 always <TT>0.0</TT>, debug version will print a warning to stderr.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>dl</code> - Array of the instance references to the objects in dynamic
  library. See description of this class above for more details.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the result fo computation.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.Throwable</code> - if any runtime error have occured (i.e. division
          by 0)</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="Evaluator.html#compile(java.lang.String,gnu.jel.Library,java.lang.Class)"><code>Evaluator.compile(java.lang.String, gnu.jel.Library, java.lang.Class&lt;?&gt;)</code></a>, 
<a href="Library.html" title="class in gnu.jel"><code>Library</code></a></dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="evaluate_double(java.lang.Object[])">evaluate_double</a></h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="returnType">double</span>&nbsp;<span class="memberName">evaluate_double</span>&#8203;(<span class="arguments">java.lang.Object[]&nbsp;dl)</span>
                       throws <span class="exceptions">java.lang.Throwable</span></div>
<div class="block">Evaluates the expression whose result has type <TT>double</TT>.
 <P>If the type of the result is not a <TT>double</TT> this function 
 returns always <TT>0.0</TT>, debug version will print a warning to stderr.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>dl</code> - Array of the instance references to the objects in dynamic
  library. See description of this class above for more details.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the result fo computation.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.Throwable</code> - if any runtime error have occured (i.e. division
          by 0)</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="Evaluator.html#compile(java.lang.String,gnu.jel.Library,java.lang.Class)"><code>Evaluator.compile(java.lang.String, gnu.jel.Library, java.lang.Class&lt;?&gt;)</code></a>, 
<a href="Library.html" title="class in gnu.jel"><code>Library</code></a></dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="evaluate_void(java.lang.Object[])">evaluate_void</a></h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="returnType">void</span>&nbsp;<span class="memberName">evaluate_void</span>&#8203;(<span class="arguments">java.lang.Object[]&nbsp;dl)</span>
                   throws <span class="exceptions">java.lang.Throwable</span></div>
<div class="block">Evaluates the expression whose result has type <TT>void</TT>.
 <P>If the type of the result is not a <TT>void</TT> debug version
 will print a warning to stderr.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>dl</code> - Array of the instance references to the objects in dynamic
  library. See description of this class above for more details.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.Throwable</code> - if any runtime error have occured (i.e. division
          by 0)</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="Evaluator.html#compile(java.lang.String,gnu.jel.Library,java.lang.Class)"><code>Evaluator.compile(java.lang.String, gnu.jel.Library, java.lang.Class&lt;?&gt;)</code></a>, 
<a href="Library.html" title="class in gnu.jel"><code>Library</code></a></dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="compare(java.lang.String,java.lang.String)">compare</a></h3>
<div class="memberSignature"><span class="modifiers">public static</span>&nbsp;<span class="returnType">int</span>&nbsp;<span class="memberName">compare</span>&#8203;(<span class="arguments">java.lang.String&nbsp;s1,
java.lang.String&nbsp;s2)</span></div>
</section>
</li>
</ul>
</section>
</li>
</ul>
</section>
</div>
<!-- ========= END OF CLASS DATA ========= -->
</main>
<footer role="contentinfo">
<nav role="navigation">
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a id="navbar.bottom">
<!--   -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.bottom.firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/CompiledExpression.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../index-all.html">Index</a></li>
<li><a href="../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
</div>
<a id="skip.navbar.bottom">
<!--   -->
</a>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</nav>
<p class="legalCopy"><small><p><i>Copyright &#169; 1998-2020 Konstantin L. Metlov All Rights Reserved.</i></p><p>Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the JEL manual.</p></small></p>
</footer>
</div>
</div>
</body>
</html>