blob: d62fcdce6601208824e7b9f284c5d16a5136396b [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="fr">
<head>
<!-- Generated by javadoc (1.8.0_51) on Fri Oct 14 16:37:24 CEST 2016 -->
<title>EvalFactory.Eval</title>
<meta name="date" content="2016-10-14">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="EvalFactory.Eval";
}
}
catch(err) {
}
//-->
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</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">
<ul class="navList">
<li><a href="../../../../../../org/eclipse/eef/core/api/utils/EvalFactory.html" title="class in org.eclipse.eef.core.api.utils"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li>Next&nbsp;Class</li>
</ul>
<ul class="navList">
<li><a href="../../../../../../index.html?org/eclipse/eef/core/api/utils/EvalFactory.Eval.html" target="_top">Frames</a></li>
<li><a href="EvalFactory.Eval.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&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>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.eclipse.eef.core.api.utils</div>
<h2 title="Class EvalFactory.Eval" class="title">Class EvalFactory.Eval&lt;TYPE&gt;</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>org.eclipse.eef.core.api.utils.EvalFactory.Eval&lt;TYPE&gt;</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt><span class="paramLabel">Type Parameters:</span></dt>
<dd><code>TYPE</code> - The type of the result returned by the execution of the expression</dd>
</dl>
<dl>
<dt>Enclosing class:</dt>
<dd><a href="../../../../../../org/eclipse/eef/core/api/utils/EvalFactory.html" title="class in org.eclipse.eef.core.api.utils">EvalFactory</a></dd>
</dl>
<hr>
<br>
<pre>public static final class <span class="typeNameLabel">EvalFactory.Eval&lt;TYPE&gt;</span>
extends java.lang.Object</pre>
<div class="block">This class will be used to evaluate the expression.</div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/eef/core/api/utils/EvalFactory.Eval.html#call-java.lang.String-">call</a></span>(java.lang.String&nbsp;expression)</code>
<div class="block">Executes the given expression and process its result using the given consumer.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/eef/core/api/utils/EvalFactory.Eval.html#call-java.lang.String-org.eclipse.eef.core.api.controllers.IConsumer-">call</a></span>(java.lang.String&nbsp;expression,
<a href="../../../../../../org/eclipse/eef/core/api/controllers/IConsumer.html" title="interface in org.eclipse.eef.core.api.controllers">IConsumer</a>&lt;<a href="../../../../../../org/eclipse/eef/core/api/utils/EvalFactory.Eval.html" title="type parameter in EvalFactory.Eval">TYPE</a>&gt;&nbsp;consumer)</code>
<div class="block">Executes the given expression and process its result using the given consumer.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code><a href="../../../../../../org/eclipse/eef/core/api/utils/EvalFactory.Eval.html" title="class in org.eclipse.eef.core.api.utils">EvalFactory.Eval</a>&lt;<a href="../../../../../../org/eclipse/eef/core/api/utils/EvalFactory.Eval.html" title="type parameter in EvalFactory.Eval">TYPE</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/eef/core/api/utils/EvalFactory.Eval.html#defaultValue-TYPE-">defaultValue</a></span>(<a href="../../../../../../org/eclipse/eef/core/api/utils/EvalFactory.Eval.html" title="type parameter in EvalFactory.Eval">TYPE</a>&nbsp;value)</code>
<div class="block">Indicates the value to use by default if the result of the evaluation of the expression is null.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code><a href="../../../../../../org/eclipse/eef/core/api/utils/EvalFactory.Eval.html" title="type parameter in EvalFactory.Eval">TYPE</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/eef/core/api/utils/EvalFactory.Eval.html#evaluate-java.lang.String-">evaluate</a></span>(java.lang.String&nbsp;expression)</code>
<div class="block">Executes the given expression.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code><a href="../../../../../../org/eclipse/eef/core/api/utils/EvalFactory.Eval.html" title="class in org.eclipse.eef.core.api.utils">EvalFactory.Eval</a>&lt;<a href="../../../../../../org/eclipse/eef/core/api/utils/EvalFactory.Eval.html" title="type parameter in EvalFactory.Eval">TYPE</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/eef/core/api/utils/EvalFactory.Eval.html#logIfBlank-org.eclipse.emf.ecore.EAttribute-">logIfBlank</a></span>(org.eclipse.emf.ecore.EAttribute&nbsp;attribute)</code>
<div class="block">Indicates that an error should be logged using the given EAttribute if the expression to execute is blank.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>&lt;E&gt;&nbsp;<a href="../../../../../../org/eclipse/eef/core/api/utils/EvalFactory.Eval.html" title="class in org.eclipse.eef.core.api.utils">EvalFactory.Eval</a>&lt;E&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/eef/core/api/utils/EvalFactory.Eval.html#logIfInvalidType-java.lang.Class-">logIfInvalidType</a></span>(java.lang.Class&lt;E&gt;&nbsp;expectedType)</code>
<div class="block">Indicates that the result should have the same type as the given class.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="logIfBlank-org.eclipse.emf.ecore.EAttribute-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>logIfBlank</h4>
<pre>public&nbsp;<a href="../../../../../../org/eclipse/eef/core/api/utils/EvalFactory.Eval.html" title="class in org.eclipse.eef.core.api.utils">EvalFactory.Eval</a>&lt;<a href="../../../../../../org/eclipse/eef/core/api/utils/EvalFactory.Eval.html" title="type parameter in EvalFactory.Eval">TYPE</a>&gt;&nbsp;logIfBlank(org.eclipse.emf.ecore.EAttribute&nbsp;attribute)</pre>
<div class="block">Indicates that an error should be logged using the given EAttribute if the expression to execute is blank.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>attribute</code> - The EAttribute containing the expression to execute</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The current <a href="../../../../../../org/eclipse/eef/core/api/utils/EvalFactory.Eval.html" title="class in org.eclipse.eef.core.api.utils"><code>EvalFactory.Eval</code></a></dd>
</dl>
</li>
</ul>
<a name="logIfInvalidType-java.lang.Class-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>logIfInvalidType</h4>
<pre>public&nbsp;&lt;E&gt;&nbsp;<a href="../../../../../../org/eclipse/eef/core/api/utils/EvalFactory.Eval.html" title="class in org.eclipse.eef.core.api.utils">EvalFactory.Eval</a>&lt;E&gt;&nbsp;logIfInvalidType(java.lang.Class&lt;E&gt;&nbsp;expectedType)</pre>
<div class="block">Indicates that the result should have the same type as the given class. It will log an error if the type of
the result does not match the given type.</div>
<dl>
<dt><span class="paramLabel">Type Parameters:</span></dt>
<dd><code>E</code> - The expected type of the execution of the expression</dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>expectedType</code> - The expected type</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The current <a href="../../../../../../org/eclipse/eef/core/api/utils/EvalFactory.Eval.html" title="class in org.eclipse.eef.core.api.utils"><code>EvalFactory.Eval</code></a></dd>
</dl>
</li>
</ul>
<a name="defaultValue-java.lang.Object-">
<!-- -->
</a><a name="defaultValue-TYPE-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>defaultValue</h4>
<pre>public&nbsp;<a href="../../../../../../org/eclipse/eef/core/api/utils/EvalFactory.Eval.html" title="class in org.eclipse.eef.core.api.utils">EvalFactory.Eval</a>&lt;<a href="../../../../../../org/eclipse/eef/core/api/utils/EvalFactory.Eval.html" title="type parameter in EvalFactory.Eval">TYPE</a>&gt;&nbsp;defaultValue(<a href="../../../../../../org/eclipse/eef/core/api/utils/EvalFactory.Eval.html" title="type parameter in EvalFactory.Eval">TYPE</a>&nbsp;value)</pre>
<div class="block">Indicates the value to use by default if the result of the evaluation of the expression is null.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>value</code> - The default value</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The current <a href="../../../../../../org/eclipse/eef/core/api/utils/EvalFactory.Eval.html" title="class in org.eclipse.eef.core.api.utils"><code>EvalFactory.Eval</code></a></dd>
</dl>
</li>
</ul>
<a name="call-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>call</h4>
<pre>public&nbsp;void&nbsp;call(java.lang.String&nbsp;expression)</pre>
<div class="block">Executes the given expression and process its result using the given consumer.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>expression</code> - The expression</dd>
</dl>
</li>
</ul>
<a name="call-java.lang.String-org.eclipse.eef.core.api.controllers.IConsumer-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>call</h4>
<pre>public&nbsp;void&nbsp;call(java.lang.String&nbsp;expression,
<a href="../../../../../../org/eclipse/eef/core/api/controllers/IConsumer.html" title="interface in org.eclipse.eef.core.api.controllers">IConsumer</a>&lt;<a href="../../../../../../org/eclipse/eef/core/api/utils/EvalFactory.Eval.html" title="type parameter in EvalFactory.Eval">TYPE</a>&gt;&nbsp;consumer)</pre>
<div class="block">Executes the given expression and process its result using the given consumer.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>expression</code> - The expression</dd>
<dd><code>consumer</code> - The consumer</dd>
</dl>
</li>
</ul>
<a name="evaluate-java.lang.String-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>evaluate</h4>
<pre>public&nbsp;<a href="../../../../../../org/eclipse/eef/core/api/utils/EvalFactory.Eval.html" title="type parameter in EvalFactory.Eval">TYPE</a>&nbsp;evaluate(java.lang.String&nbsp;expression)</pre>
<div class="block">Executes the given expression.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>expression</code> - The expression</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The result of the expression</dd>
</dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</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">
<ul class="navList">
<li><a href="../../../../../../org/eclipse/eef/core/api/utils/EvalFactory.html" title="class in org.eclipse.eef.core.api.utils"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li>Next&nbsp;Class</li>
</ul>
<ul class="navList">
<li><a href="../../../../../../index.html?org/eclipse/eef/core/api/utils/EvalFactory.Eval.html" target="_top">Frames</a></li>
<li><a href="EvalFactory.Eval.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&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>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>