|
@@ -1,618 +0,0 @@
|
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.6.0) on Thu May 27 01:34:44 IST 2010 -->
|
6
|
|
-<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
7
|
|
-<TITLE>
|
8
|
|
-SpelHelper (SpelHelper 1.0 API)
|
9
|
|
-</TITLE>
|
10
|
|
-
|
11
|
|
-<META NAME="date" CONTENT="2010-05-27">
|
12
|
|
-
|
13
|
|
-<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../spring-javadoc.css" TITLE="Style">
|
14
|
|
-
|
15
|
|
-<SCRIPT type="text/javascript">
|
16
|
|
-function windowTitle()
|
17
|
|
-{
|
18
|
|
- if (location.href.indexOf('is-external=true') == -1) {
|
19
|
|
- parent.document.title="SpelHelper (SpelHelper 1.0 API)";
|
20
|
|
- }
|
21
|
|
-}
|
22
|
|
-</SCRIPT>
|
23
|
|
-<NOSCRIPT>
|
24
|
|
-</NOSCRIPT>
|
25
|
|
-
|
26
|
|
-</HEAD>
|
27
|
|
-
|
28
|
|
-<BODY BGCOLOR="white" onload="windowTitle();">
|
29
|
|
-<HR>
|
30
|
|
-
|
31
|
|
-
|
32
|
|
-<!-- ========= START OF TOP NAVBAR ======= -->
|
33
|
|
-<A NAME="navbar_top"><!-- --></A>
|
34
|
|
-<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
|
35
|
|
-<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
36
|
|
-<TR>
|
37
|
|
-<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
38
|
|
-<A NAME="navbar_top_firstrow"><!-- --></A>
|
39
|
|
-<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
40
|
|
- <TR ALIGN="center" VALIGN="top">
|
41
|
|
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../net/abhinavsarkar/spelhelper/package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
42
|
|
- <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
43
|
|
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/SpelHelper.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
|
44
|
|
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
45
|
|
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
46
|
|
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
47
|
|
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
48
|
|
- </TR>
|
49
|
|
-</TABLE>
|
50
|
|
-</TD>
|
51
|
|
-<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
52
|
|
-</EM>
|
53
|
|
-</TD>
|
54
|
|
-</TR>
|
55
|
|
-
|
56
|
|
-<TR>
|
57
|
|
-<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
58
|
|
- <A HREF="../../../net/abhinavsarkar/spelhelper/ImplicitMethods.html" title="class in net.abhinavsarkar.spelhelper"><B>PREV CLASS</B></A>
|
59
|
|
- NEXT CLASS</FONT></TD>
|
60
|
|
-<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
61
|
|
- <A HREF="../../../index.html?net/abhinavsarkar/spelhelper/SpelHelper.html" target="_top"><B>FRAMES</B></A>
|
62
|
|
- <A HREF="SpelHelper.html" target="_top"><B>NO FRAMES</B></A>
|
63
|
|
- <SCRIPT type="text/javascript">
|
64
|
|
- <!--
|
65
|
|
- if(window==top) {
|
66
|
|
- document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
67
|
|
- }
|
68
|
|
- //-->
|
69
|
|
-</SCRIPT>
|
70
|
|
-<NOSCRIPT>
|
71
|
|
- <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
|
72
|
|
-</NOSCRIPT>
|
73
|
|
-
|
74
|
|
-
|
75
|
|
-</FONT></TD>
|
76
|
|
-</TR>
|
77
|
|
-<TR>
|
78
|
|
-<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
79
|
|
- SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
80
|
|
-<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
81
|
|
-DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
82
|
|
-</TR>
|
83
|
|
-</TABLE>
|
84
|
|
-<A NAME="skip-navbar_top"></A>
|
85
|
|
-<!-- ========= END OF TOP NAVBAR ========= -->
|
86
|
|
-
|
87
|
|
-<HR>
|
88
|
|
-<!-- ======== START OF CLASS DATA ======== -->
|
89
|
|
-<H2>
|
90
|
|
-<FONT SIZE="-1">
|
91
|
|
-net.abhinavsarkar.spelhelper</FONT>
|
92
|
|
-<BR>
|
93
|
|
-Class SpelHelper</H2>
|
94
|
|
-<PRE>
|
95
|
|
-<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A>
|
96
|
|
- <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>net.abhinavsarkar.spelhelper.SpelHelper</B>
|
97
|
|
-</PRE>
|
98
|
|
-<HR>
|
99
|
|
-<DL>
|
100
|
|
-<DT><PRE>public final class <B>SpelHelper</B><DT>extends <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></DL>
|
101
|
|
-</PRE>
|
102
|
|
-
|
103
|
|
-<P>
|
104
|
|
-<p>SpelHelper provides additional functionalities to work with
|
105
|
|
-<a href="http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/expressions.html">Spring Expression Language (SpEL)</a>.</p>
|
106
|
|
-
|
107
|
|
-<p>The addition functionalities provided are:</p>
|
108
|
|
-
|
109
|
|
-<ol>
|
110
|
|
-<li>Implicit methods</li>
|
111
|
|
-<li>Implicit properties</li>
|
112
|
|
-<li>Simplified extension functions</li>
|
113
|
|
-<li>Simplified constructors</li>
|
114
|
|
-</ol>
|
115
|
|
-
|
116
|
|
-<p><strong>Implicit Methods</strong></p>
|
117
|
|
-
|
118
|
|
-<p>Implicit methods allow one to registers methods with SpelHelper and attach
|
119
|
|
-them to particular classes. After that, when that method is called on an
|
120
|
|
-object of that particular class inside a SpEL expression, SpelHelper
|
121
|
|
-redirects the method call to the registered method.</p>
|
122
|
|
-
|
123
|
|
-<p>Example: <a href="../../../net/abhinavsarkar/spelhelper/ImplicitMethods.html#sorted(java.util.List)"><code>ImplicitMethods.sorted(List)</code> </a>method is automatically
|
124
|
|
-registered by SpelHelper. The class that the method should be invoked for
|
125
|
|
-is the type of the first parameter of the method. In this case, the class is
|
126
|
|
-<a href="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util"><code>List</code> </a>.</p>
|
127
|
|
-
|
128
|
|
-<p>So when an expression like <code>"#list(1,4,2).sorted()"</code> is evaluated, the
|
129
|
|
-<a href="../../../net/abhinavsarkar/spelhelper/ImplicitMethods.html#sorted(java.util.List)"><code>ImplicitMethods.sorted(List)</code> </a>method is invoked with the list as its
|
130
|
|
-first parameter and its return value is used in further evaluation of the
|
131
|
|
-expression.</p>
|
132
|
|
-
|
133
|
|
-<p>See <a href="../../../net/abhinavsarkar/spelhelper/SpelHelper.html#registerImplicitMethodsFromClass(java.lang.Class)"><code>registerImplicitMethodsFromClass(Class)</code> </a>.</p>
|
134
|
|
-
|
135
|
|
-<p><strong>Implicit Properties</strong></p>
|
136
|
|
-
|
137
|
|
-<p>Implicit properties allow one to treat no argument methods of an object
|
138
|
|
-as properties of the object. SpelHelper intercepts the property resolution
|
139
|
|
-of SpEL and if the property name is same as some no-arg method of the target
|
140
|
|
-object then it invokes the method on the object and provides its return value
|
141
|
|
-as the property value for further evaluation of the expression.</p>
|
142
|
|
-
|
143
|
|
-<p>Example: Using implicit properties, the example of implicit methods can be
|
144
|
|
-written as: <code>"#list(1,4,2).sorted"</code> - dropping the parens - and it will return
|
145
|
|
-the same value as the last example.</p>
|
146
|
|
-
|
147
|
|
-<p>Implicit property resolution considers both the actual methods of the object
|
148
|
|
-and the implicit methods registered on the object's class.</p>
|
149
|
|
-
|
150
|
|
-<p><strong>Simplified extension functions</strong></p>
|
151
|
|
-
|
152
|
|
-<p>SpEL <a href="http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/expressions.html#expressions-ref-functions">allows</a> to register extension function on the context by providing a
|
153
|
|
-name and a <a href="http://java.sun.com/javase/6/docs/api/java/lang/reflect/Method.html?is-external=true" title="class or interface in java.lang.reflect"><code>Method</code> </a>object. SpelHelper simplifies this by taking a class
|
154
|
|
-and registering all the <code>public static</code> methods of the class which do not
|
155
|
|
-have a <code>void</code> return type. The methods are registered by their simple name.</p>
|
156
|
|
-
|
157
|
|
-<p>Example: All the methods of <a href="../../../net/abhinavsarkar/spelhelper/ExtensionFunctions.html" title="class in net.abhinavsarkar.spelhelper"><code>ExtensionFunctions</code> </a>class are automatically
|
158
|
|
-registered by SpelHelper. Hence the method <a href="../../../net/abhinavsarkar/spelhelper/ExtensionFunctions.html#list(T...)"><code>ExtensionFunctions.list(Object...)</code> </a>
|
159
|
|
-can be called from inside a SpEL expression using the function call syntax:
|
160
|
|
-<code>"#list(1,2,3)</code>".</p>
|
161
|
|
-
|
162
|
|
-<p>See <a href="../../../net/abhinavsarkar/spelhelper/SpelHelper.html#registerFunctionsFromClass(java.lang.Class)"><code>registerFunctionsFromClass(Class)</code> </a>.</p>
|
163
|
|
-
|
164
|
|
-<p><strong>Simplified constructors</strong></p>
|
165
|
|
-
|
166
|
|
-<p>SpEL <a href="http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/expressions.html#d0e11927">allows</a> calling constructors from inside a SpEL expression using the
|
167
|
|
-<code>new</code> operator. But they have to be called with their full name like:
|
168
|
|
-<code>"new org.example.Foo('bar')"</code>. SpelHelper simplifies this by taking a class
|
169
|
|
-and registering all its public constructors to the SpEL context by their
|
170
|
|
-simple name.</p>
|
171
|
|
-
|
172
|
|
-<p>Example: After registering the <code>org.example.Foo</code> class with SpelHelper, its
|
173
|
|
-constructor can be called from inside a SpEL expression by: <code>"new Foo('bar')"</code>.</p>
|
174
|
|
-
|
175
|
|
-<p>See <a href="../../../net/abhinavsarkar/spelhelper/SpelHelper.html#registerConstructorsFromClass(java.lang.Class)"><code>registerConstructorsFromClass(Class)</code> </a>.</p>
|
176
|
|
-
|
177
|
|
-<p>In addition to all the above functionalities, SpelHelper automatically registers
|
178
|
|
-some extension functions and implicit methods which are always available in
|
179
|
|
-the SpEL expressions evaluated through SpelHelper. See <a href="../../../net/abhinavsarkar/spelhelper/ExtensionFunctions.html" title="class in net.abhinavsarkar.spelhelper"><code>ExtensionFunctions</code> </a>
|
180
|
|
-and <a href="../../../net/abhinavsarkar/spelhelper/ImplicitMethods.html" title="class in net.abhinavsarkar.spelhelper"><code>ImplicitMethods</code> </a>for further details.</p>
|
181
|
|
-<P>
|
182
|
|
-
|
183
|
|
-<P>
|
184
|
|
-<DL>
|
185
|
|
-<DT><B>Author:</B></DT>
|
186
|
|
- <DD>Abhinav Sarkar <em>abhinav@abhinavsarkar.net</em></DD>
|
187
|
|
-</DL>
|
188
|
|
-<HR>
|
189
|
|
-
|
190
|
|
-<P>
|
191
|
|
-
|
192
|
|
-<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
193
|
|
-
|
194
|
|
-<A NAME="constructor_summary"><!-- --></A>
|
195
|
|
-<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
196
|
|
-<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
197
|
|
-<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
198
|
|
-<B>Constructor Summary</B></FONT></TH>
|
199
|
|
-</TR>
|
200
|
|
-<TR BGCOLOR="white" CLASS="TableRowColor">
|
201
|
|
-<TD><CODE><B><A HREF="../../../net/abhinavsarkar/spelhelper/SpelHelper.html#SpelHelper()">SpelHelper</A></B>()</CODE>
|
202
|
|
-
|
203
|
|
-<BR>
|
204
|
|
- Creates an instance of SpelHelper.</TD>
|
205
|
|
-</TR>
|
206
|
|
-</TABLE>
|
207
|
|
-
|
208
|
|
-<!-- ========== METHOD SUMMARY =========== -->
|
209
|
|
-
|
210
|
|
-<A NAME="method_summary"><!-- --></A>
|
211
|
|
-<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
212
|
|
-<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
213
|
|
-<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
214
|
|
-<B>Method Summary</B></FONT></TH>
|
215
|
|
-</TR>
|
216
|
|
-<TR BGCOLOR="white" CLASS="TableRowColor">
|
217
|
|
-<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
218
|
|
-<CODE>
|
219
|
|
-<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY="">
|
220
|
|
-<TR ALIGN="right" VALIGN="">
|
221
|
|
-<TD NOWRAP><FONT SIZE="-1">
|
222
|
|
-<CODE><T> T</CODE></FONT></TD>
|
223
|
|
-</TR>
|
224
|
|
-</TABLE>
|
225
|
|
-</CODE></FONT></TD>
|
226
|
|
-<TD><CODE><B><A HREF="../../../net/abhinavsarkar/spelhelper/SpelHelper.html#evalExpression(java.lang.String, org.springframework.expression.EvaluationContext, java.lang.Class)">evalExpression</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> expressionString,
|
227
|
|
- <A HREF="http://static.springsource.org/spring/docs/3.0.x/javadoc-api/org/springframework/expression/EvaluationContext.html?is-external=true" title="class or interface in org.springframework.expression">EvaluationContext</A> evaluationContext,
|
228
|
|
- <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><T> desiredType)</CODE>
|
229
|
|
-
|
230
|
|
-<BR>
|
231
|
|
- Evaluates a SpEL expression <code>expressionString</code> in the provided
|
232
|
|
-context <code>evaluationContext</code> and gives back a result of type
|
233
|
|
-<code>desiredType</code>.</TD>
|
234
|
|
-</TR>
|
235
|
|
-<TR BGCOLOR="white" CLASS="TableRowColor">
|
236
|
|
-<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
237
|
|
-<CODE>
|
238
|
|
-<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY="">
|
239
|
|
-<TR ALIGN="right" VALIGN="">
|
240
|
|
-<TD NOWRAP><FONT SIZE="-1">
|
241
|
|
-<CODE><T> T</CODE></FONT></TD>
|
242
|
|
-</TR>
|
243
|
|
-</TABLE>
|
244
|
|
-</CODE></FONT></TD>
|
245
|
|
-<TD><CODE><B><A HREF="../../../net/abhinavsarkar/spelhelper/SpelHelper.html#evalExpression(java.lang.String, java.lang.Object, java.lang.Class)">evalExpression</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> expressionString,
|
246
|
|
- <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> rootElement,
|
247
|
|
- <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><T> desiredType)</CODE>
|
248
|
|
-
|
249
|
|
-<BR>
|
250
|
|
- Evaluates a SpEL expression <code>expressionString</code> in the context
|
251
|
|
-of root element <code>rootElement</code> and gives back a result of type
|
252
|
|
-<code>desiredType</code>.</TD>
|
253
|
|
-</TR>
|
254
|
|
-<TR BGCOLOR="white" CLASS="TableRowColor">
|
255
|
|
-<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
256
|
|
-<CODE>
|
257
|
|
-<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY="">
|
258
|
|
-<TR ALIGN="right" VALIGN="">
|
259
|
|
-<TD NOWRAP><FONT SIZE="-1">
|
260
|
|
-<CODE><T> T</CODE></FONT></TD>
|
261
|
|
-</TR>
|
262
|
|
-</TABLE>
|
263
|
|
-</CODE></FONT></TD>
|
264
|
|
-<TD><CODE><B><A HREF="../../../net/abhinavsarkar/spelhelper/SpelHelper.html#evalExpressions(java.lang.String[], org.springframework.expression.EvaluationContext, java.lang.Class)">evalExpressions</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[] expressionStrings,
|
265
|
|
- <A HREF="http://static.springsource.org/spring/docs/3.0.x/javadoc-api/org/springframework/expression/EvaluationContext.html?is-external=true" title="class or interface in org.springframework.expression">EvaluationContext</A> evaluationContext,
|
266
|
|
- <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><T> desiredType)</CODE>
|
267
|
|
-
|
268
|
|
-<BR>
|
269
|
|
- Evaluates multiple SpEL expressions and returns the result of the last
|
270
|
|
-expression.</TD>
|
271
|
|
-</TR>
|
272
|
|
-<TR BGCOLOR="white" CLASS="TableRowColor">
|
273
|
|
-<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
274
|
|
-<CODE>
|
275
|
|
-<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY="">
|
276
|
|
-<TR ALIGN="right" VALIGN="">
|
277
|
|
-<TD NOWRAP><FONT SIZE="-1">
|
278
|
|
-<CODE><T> T</CODE></FONT></TD>
|
279
|
|
-</TR>
|
280
|
|
-</TABLE>
|
281
|
|
-</CODE></FONT></TD>
|
282
|
|
-<TD><CODE><B><A HREF="../../../net/abhinavsarkar/spelhelper/SpelHelper.html#evalExpressions(java.lang.String[], java.lang.Object, java.lang.Class)">evalExpressions</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[] expressionStrings,
|
283
|
|
- <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> rootElement,
|
284
|
|
- <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><T> desiredType)</CODE>
|
285
|
|
-
|
286
|
|
-<BR>
|
287
|
|
- Evaluates multiple SpEL expressions and returns the result of the last
|
288
|
|
-expression.</TD>
|
289
|
|
-</TR>
|
290
|
|
-<TR BGCOLOR="white" CLASS="TableRowColor">
|
291
|
|
-<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
292
|
|
-<CODE>static <A HREF="http://static.springsource.org/spring/docs/3.0.x/javadoc-api/org/springframework/expression/EvaluationContext.html?is-external=true" title="class or interface in org.springframework.expression">EvaluationContext</A></CODE></FONT></TD>
|
293
|
|
-<TD><CODE><B><A HREF="../../../net/abhinavsarkar/spelhelper/SpelHelper.html#getCurrentContext()">getCurrentContext</A></B>()</CODE>
|
294
|
|
-
|
295
|
|
-<BR>
|
296
|
|
- Returns the current evaluation context.</TD>
|
297
|
|
-</TR>
|
298
|
|
-<TR BGCOLOR="white" CLASS="TableRowColor">
|
299
|
|
-<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
300
|
|
-<CODE> <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/reflect/Constructor.html?is-external=true" title="class or interface in java.lang.reflect">Constructor</A><?></CODE></FONT></TD>
|
301
|
|
-<TD><CODE><B><A HREF="../../../net/abhinavsarkar/spelhelper/SpelHelper.html#lookupImplicitConstructor(java.lang.String)">lookupImplicitConstructor</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> lookup)</CODE>
|
302
|
|
-
|
303
|
|
-<BR>
|
304
|
|
- Looks up an implicit constructor registered with this instance.</TD>
|
305
|
|
-</TR>
|
306
|
|
-<TR BGCOLOR="white" CLASS="TableRowColor">
|
307
|
|
-<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
308
|
|
-<CODE> <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/reflect/Method.html?is-external=true" title="class or interface in java.lang.reflect">Method</A></CODE></FONT></TD>
|
309
|
|
-<TD><CODE><B><A HREF="../../../net/abhinavsarkar/spelhelper/SpelHelper.html#lookupImplicitMethod(java.lang.String)">lookupImplicitMethod</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> lookup)</CODE>
|
310
|
|
-
|
311
|
|
-<BR>
|
312
|
|
- Looks up an implicit method registered with this instance.</TD>
|
313
|
|
-</TR>
|
314
|
|
-<TR BGCOLOR="white" CLASS="TableRowColor">
|
315
|
|
-<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
316
|
|
-<CODE> <A HREF="../../../net/abhinavsarkar/spelhelper/SpelHelper.html" title="class in net.abhinavsarkar.spelhelper">SpelHelper</A></CODE></FONT></TD>
|
317
|
|
-<TD><CODE><B><A HREF="../../../net/abhinavsarkar/spelhelper/SpelHelper.html#registerConstructorsFromClass(java.lang.Class)">registerConstructorsFromClass</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?> clazz)</CODE>
|
318
|
|
-
|
319
|
|
-<BR>
|
320
|
|
- Registers the public constructors of the class <code>clazz</code> so that they
|
321
|
|
-can be called by their simple name from SpEL expressions.</TD>
|
322
|
|
-</TR>
|
323
|
|
-<TR BGCOLOR="white" CLASS="TableRowColor">
|
324
|
|
-<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
325
|
|
-<CODE> <A HREF="../../../net/abhinavsarkar/spelhelper/SpelHelper.html" title="class in net.abhinavsarkar.spelhelper">SpelHelper</A></CODE></FONT></TD>
|
326
|
|
-<TD><CODE><B><A HREF="../../../net/abhinavsarkar/spelhelper/SpelHelper.html#registerFunctionsFromClass(java.lang.Class)">registerFunctionsFromClass</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?> clazz)</CODE>
|
327
|
|
-
|
328
|
|
-<BR>
|
329
|
|
- Registers the public static methods in the class <code>clazz</code> as functions
|
330
|
|
-which can be called from SpEL expressions.</TD>
|
331
|
|
-</TR>
|
332
|
|
-<TR BGCOLOR="white" CLASS="TableRowColor">
|
333
|
|
-<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
334
|
|
-<CODE> <A HREF="../../../net/abhinavsarkar/spelhelper/SpelHelper.html" title="class in net.abhinavsarkar.spelhelper">SpelHelper</A></CODE></FONT></TD>
|
335
|
|
-<TD><CODE><B><A HREF="../../../net/abhinavsarkar/spelhelper/SpelHelper.html#registerImplicitMethodsFromClass(java.lang.Class)">registerImplicitMethodsFromClass</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?> clazz)</CODE>
|
336
|
|
-
|
337
|
|
-<BR>
|
338
|
|
- Registers the public static methods in the class <code>clazz</code> as implicit
|
339
|
|
-methods for the class of the first parameter of the methods.</TD>
|
340
|
|
-</TR>
|
341
|
|
-</TABLE>
|
342
|
|
- <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
|
343
|
|
-<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
344
|
|
-<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
345
|
|
-<TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH>
|
346
|
|
-</TR>
|
347
|
|
-<TR BGCOLOR="white" CLASS="TableRowColor">
|
348
|
|
-<TD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
|
349
|
|
-</TR>
|
350
|
|
-</TABLE>
|
351
|
|
-
|
352
|
|
-<P>
|
353
|
|
-
|
354
|
|
-<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
355
|
|
-
|
356
|
|
-<A NAME="constructor_detail"><!-- --></A>
|
357
|
|
-<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
358
|
|
-<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
359
|
|
-<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
360
|
|
-<B>Constructor Detail</B></FONT></TH>
|
361
|
|
-</TR>
|
362
|
|
-</TABLE>
|
363
|
|
-
|
364
|
|
-<A NAME="SpelHelper()"><!-- --></A><H3>
|
365
|
|
-SpelHelper</H3>
|
366
|
|
-<PRE>
|
367
|
|
-public <B>SpelHelper</B>()</PRE>
|
368
|
|
-<DL>
|
369
|
|
-<DD>Creates an instance of SpelHelper.
|
370
|
|
-<P>
|
371
|
|
-</DL>
|
372
|
|
-
|
373
|
|
-<!-- ============ METHOD DETAIL ========== -->
|
374
|
|
-
|
375
|
|
-<A NAME="method_detail"><!-- --></A>
|
376
|
|
-<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
377
|
|
-<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
378
|
|
-<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
379
|
|
-<B>Method Detail</B></FONT></TH>
|
380
|
|
-</TR>
|
381
|
|
-</TABLE>
|
382
|
|
-
|
383
|
|
-<A NAME="registerImplicitMethodsFromClass(java.lang.Class)"><!-- --></A><H3>
|
384
|
|
-registerImplicitMethodsFromClass</H3>
|
385
|
|
-<PRE>
|
386
|
|
-public <A HREF="../../../net/abhinavsarkar/spelhelper/SpelHelper.html" title="class in net.abhinavsarkar.spelhelper">SpelHelper</A> <B>registerImplicitMethodsFromClass</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?> clazz)</PRE>
|
387
|
|
-<DL>
|
388
|
|
-<DD><p>Registers the public static methods in the class <code>clazz</code> as implicit
|
389
|
|
-methods for the class of the first parameter of the methods.</p>
|
390
|
|
-
|
391
|
|
-<p>Only registers the public static methods with non void return type and at
|
392
|
|
-least one argument.</p>
|
393
|
|
-<P>
|
394
|
|
-<DD><DL>
|
395
|
|
-<DT><B>Parameters:</B><DD><CODE>clazz</CODE> - The class to register the methods from.
|
396
|
|
-<DT><B>Returns:</B><DD>The current instance of SpelHelper. This is for chaining
|
397
|
|
-the methods calls.<DT><B>See Also:</B><DD><A HREF="../../../net/abhinavsarkar/spelhelper/ImplicitMethods.html" title="class in net.abhinavsarkar.spelhelper"><CODE>ImplicitMethods</CODE></A></DL>
|
398
|
|
-</DD>
|
399
|
|
-</DL>
|
400
|
|
-<HR>
|
401
|
|
-
|
402
|
|
-<A NAME="registerFunctionsFromClass(java.lang.Class)"><!-- --></A><H3>
|
403
|
|
-registerFunctionsFromClass</H3>
|
404
|
|
-<PRE>
|
405
|
|
-public <A HREF="../../../net/abhinavsarkar/spelhelper/SpelHelper.html" title="class in net.abhinavsarkar.spelhelper">SpelHelper</A> <B>registerFunctionsFromClass</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?> clazz)</PRE>
|
406
|
|
-<DL>
|
407
|
|
-<DD><p>Registers the public static methods in the class <code>clazz</code> as functions
|
408
|
|
-which can be called from SpEL expressions.
|
409
|
|
-The functions are registered with the simple name of the methods.</p>
|
410
|
|
-
|
411
|
|
-<p>Only registers the public static methods with non void return type.</p>
|
412
|
|
-<P>
|
413
|
|
-<DD><DL>
|
414
|
|
-<DT><B>Parameters:</B><DD><CODE>clazz</CODE> - The class to register the functions from.
|
415
|
|
-<DT><B>Returns:</B><DD>The current instance of SpelHelper. This is for chaining
|
416
|
|
-the methods calls.<DT><B>See Also:</B><DD><A HREF="../../../net/abhinavsarkar/spelhelper/ExtensionFunctions.html" title="class in net.abhinavsarkar.spelhelper"><CODE>ExtensionFunctions</CODE></A></DL>
|
417
|
|
-</DD>
|
418
|
|
-</DL>
|
419
|
|
-<HR>
|
420
|
|
-
|
421
|
|
-<A NAME="registerConstructorsFromClass(java.lang.Class)"><!-- --></A><H3>
|
422
|
|
-registerConstructorsFromClass</H3>
|
423
|
|
-<PRE>
|
424
|
|
-public <A HREF="../../../net/abhinavsarkar/spelhelper/SpelHelper.html" title="class in net.abhinavsarkar.spelhelper">SpelHelper</A> <B>registerConstructorsFromClass</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?> clazz)</PRE>
|
425
|
|
-<DL>
|
426
|
|
-<DD>Registers the public constructors of the class <code>clazz</code> so that they
|
427
|
|
-can be called by their simple name from SpEL expressions.
|
428
|
|
-<P>
|
429
|
|
-<DD><DL>
|
430
|
|
-<DT><B>Parameters:</B><DD><CODE>clazz</CODE> - The class to register the constructors from.
|
431
|
|
-<DT><B>Returns:</B><DD>The current instance of SpelHelper. This is for chaining
|
432
|
|
-the methods calls.</DL>
|
433
|
|
-</DD>
|
434
|
|
-</DL>
|
435
|
|
-<HR>
|
436
|
|
-
|
437
|
|
-<A NAME="evalExpression(java.lang.String, java.lang.Object, java.lang.Class)"><!-- --></A><H3>
|
438
|
|
-evalExpression</H3>
|
439
|
|
-<PRE>
|
440
|
|
-public <T> T <B>evalExpression</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> expressionString,
|
441
|
|
- <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> rootElement,
|
442
|
|
- <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><T> desiredType)</PRE>
|
443
|
|
-<DL>
|
444
|
|
-<DD>Evaluates a SpEL expression <code>expressionString</code> in the context
|
445
|
|
-of root element <code>rootElement</code> and gives back a result of type
|
446
|
|
-<code>desiredType</code>.
|
447
|
|
-<P>
|
448
|
|
-<DD><DL>
|
449
|
|
-<DT><B>Type Parameters:</B><DD><CODE>T</CODE> - The type of the result desired.<DT><B>Parameters:</B><DD><CODE>expressionString</CODE> - The SpEL expression to evaluate.<DD><CODE>rootElement</CODE> - The root element in context of which the expression
|
450
|
|
-is to be evaluated.<DD><CODE>desiredType</CODE> - The class of the result desired.
|
451
|
|
-<DT><B>Returns:</B><DD>The result of the evaluation of the expression.<DT><B>See Also:</B><DD><A HREF="http://static.springsource.org/spring/docs/3.0.x/javadoc-api/org/springframework/expression/ExpressionParser.html?is-external=true#parseExpression(java.lang.String)" title="class or interface in org.springframework.expression"><CODE>ExpressionParser.parseExpression(String)</CODE></A>,
|
452
|
|
-<A HREF="http://static.springsource.org/spring/docs/3.0.x/javadoc-api/org/springframework/expression/Expression.html?is-external=true#getValue(org.springframework.expression.EvaluationContext, java.lang.Class)" title="class or interface in org.springframework.expression"><CODE>Expression.getValue(EvaluationContext, Class)</CODE></A></DL>
|
453
|
|
-</DD>
|
454
|
|
-</DL>
|
455
|
|
-<HR>
|
456
|
|
-
|
457
|
|
-<A NAME="evalExpression(java.lang.String, org.springframework.expression.EvaluationContext, java.lang.Class)"><!-- --></A><H3>
|
458
|
|
-evalExpression</H3>
|
459
|
|
-<PRE>
|
460
|
|
-public <T> T <B>evalExpression</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> expressionString,
|
461
|
|
- <A HREF="http://static.springsource.org/spring/docs/3.0.x/javadoc-api/org/springframework/expression/EvaluationContext.html?is-external=true" title="class or interface in org.springframework.expression">EvaluationContext</A> evaluationContext,
|
462
|
|
- <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><T> desiredType)</PRE>
|
463
|
|
-<DL>
|
464
|
|
-<DD>Evaluates a SpEL expression <code>expressionString</code> in the provided
|
465
|
|
-context <code>evaluationContext</code> and gives back a result of type
|
466
|
|
-<code>desiredType</code>.
|
467
|
|
-<P>
|
468
|
|
-<DD><DL>
|
469
|
|
-<DT><B>Type Parameters:</B><DD><CODE>T</CODE> - The type of the result desired.<DT><B>Parameters:</B><DD><CODE>expressionString</CODE> - The SpEL expression to evaluate.<DD><CODE>evaluationContext</CODE> - The context in which the expression is to be evaluated.<DD><CODE>desiredType</CODE> - The class of the result desired.
|
470
|
|
-<DT><B>Returns:</B><DD>The result of the evaluation of the expression.<DT><B>See Also:</B><DD><A HREF="http://static.springsource.org/spring/docs/3.0.x/javadoc-api/org/springframework/expression/ExpressionParser.html?is-external=true#parseExpression(java.lang.String)" title="class or interface in org.springframework.expression"><CODE>ExpressionParser.parseExpression(String)</CODE></A>,
|
471
|
|
-<A HREF="http://static.springsource.org/spring/docs/3.0.x/javadoc-api/org/springframework/expression/Expression.html?is-external=true#getValue(org.springframework.expression.EvaluationContext, java.lang.Class)" title="class or interface in org.springframework.expression"><CODE>Expression.getValue(EvaluationContext, Class)</CODE></A></DL>
|
472
|
|
-</DD>
|
473
|
|
-</DL>
|
474
|
|
-<HR>
|
475
|
|
-
|
476
|
|
-<A NAME="evalExpressions(java.lang.String[], java.lang.Object, java.lang.Class)"><!-- --></A><H3>
|
477
|
|
-evalExpressions</H3>
|
478
|
|
-<PRE>
|
479
|
|
-public <T> T <B>evalExpressions</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[] expressionStrings,
|
480
|
|
- <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> rootElement,
|
481
|
|
- <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><T> desiredType)</PRE>
|
482
|
|
-<DL>
|
483
|
|
-<DD>Evaluates multiple SpEL expressions and returns the result of the last
|
484
|
|
-expression.
|
485
|
|
-<P>
|
486
|
|
-<DD><DL>
|
487
|
|
-<DT><B>Type Parameters:</B><DD><CODE>T</CODE> - The type of the result desired.<DT><B>Parameters:</B><DD><CODE>expressionStrings</CODE> - The SpEL expressions to evaluate.<DD><CODE>rootElement</CODE> - The root element in context of which the expressions
|
488
|
|
-are to be evaluated.<DD><CODE>desiredType</CODE> - The class of the result desired.
|
489
|
|
-<DT><B>Returns:</B><DD>The result of the evaluation of the last expression.<DT><B>See Also:</B><DD><A HREF="../../../net/abhinavsarkar/spelhelper/SpelHelper.html#evalExpression(java.lang.String, org.springframework.expression.EvaluationContext, java.lang.Class)"><CODE>evalExpression(String, EvaluationContext, Class)</CODE></A>,
|
490
|
|
-<A HREF="../../../net/abhinavsarkar/spelhelper/SpelHelper.html#evalExpression(java.lang.String, java.lang.Object, java.lang.Class)"><CODE>evalExpression(String, Object, Class)</CODE></A></DL>
|
491
|
|
-</DD>
|
492
|
|
-</DL>
|
493
|
|
-<HR>
|
494
|
|
-
|
495
|
|
-<A NAME="evalExpressions(java.lang.String[], org.springframework.expression.EvaluationContext, java.lang.Class)"><!-- --></A><H3>
|
496
|
|
-evalExpressions</H3>
|
497
|
|
-<PRE>
|
498
|
|
-public <T> T <B>evalExpressions</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[] expressionStrings,
|
499
|
|
- <A HREF="http://static.springsource.org/spring/docs/3.0.x/javadoc-api/org/springframework/expression/EvaluationContext.html?is-external=true" title="class or interface in org.springframework.expression">EvaluationContext</A> evaluationContext,
|
500
|
|
- <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><T> desiredType)</PRE>
|
501
|
|
-<DL>
|
502
|
|
-<DD>Evaluates multiple SpEL expressions and returns the result of the last
|
503
|
|
-expression.
|
504
|
|
-<P>
|
505
|
|
-<DD><DL>
|
506
|
|
-<DT><B>Type Parameters:</B><DD><CODE>T</CODE> - The type of the result desired.<DT><B>Parameters:</B><DD><CODE>expressionStrings</CODE> - The SpEL expressions to evaluate.<DD><CODE>evaluationContext</CODE> - The context in which the expression is to be evaluated.<DD><CODE>desiredType</CODE> - The class of the result desired.
|
507
|
|
-<DT><B>Returns:</B><DD>The result of the evaluation of the last expression.<DT><B>See Also:</B><DD><A HREF="../../../net/abhinavsarkar/spelhelper/SpelHelper.html#evalExpression(java.lang.String, org.springframework.expression.EvaluationContext, java.lang.Class)"><CODE>evalExpression(String, EvaluationContext, Class)</CODE></A>,
|
508
|
|
-<A HREF="../../../net/abhinavsarkar/spelhelper/SpelHelper.html#evalExpression(java.lang.String, java.lang.Object, java.lang.Class)"><CODE>evalExpression(String, Object, Class)</CODE></A></DL>
|
509
|
|
-</DD>
|
510
|
|
-</DL>
|
511
|
|
-<HR>
|
512
|
|
-
|
513
|
|
-<A NAME="lookupImplicitMethod(java.lang.String)"><!-- --></A><H3>
|
514
|
|
-lookupImplicitMethod</H3>
|
515
|
|
-<PRE>
|
516
|
|
-public <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/reflect/Method.html?is-external=true" title="class or interface in java.lang.reflect">Method</A> <B>lookupImplicitMethod</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> lookup)</PRE>
|
517
|
|
-<DL>
|
518
|
|
-<DD>Looks up an implicit method registered with this instance.
|
519
|
|
-<P>
|
520
|
|
-<DD><DL>
|
521
|
|
-<DT><B>Parameters:</B><DD><CODE>lookup</CODE> - key to lookup which should be of form:
|
522
|
|
-<code>method.getParameterTypes()[0].getName() + "." + method.getName()</code>
|
523
|
|
-<DT><B>Returns:</B><DD>The registered method if found, else null.</DL>
|
524
|
|
-</DD>
|
525
|
|
-</DL>
|
526
|
|
-<HR>
|
527
|
|
-
|
528
|
|
-<A NAME="lookupImplicitConstructor(java.lang.String)"><!-- --></A><H3>
|
529
|
|
-lookupImplicitConstructor</H3>
|
530
|
|
-<PRE>
|
531
|
|
-public <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/reflect/Constructor.html?is-external=true" title="class or interface in java.lang.reflect">Constructor</A><?> <B>lookupImplicitConstructor</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> lookup)</PRE>
|
532
|
|
-<DL>
|
533
|
|
-<DD>Looks up an implicit constructor registered with this instance.
|
534
|
|
-<P>
|
535
|
|
-<DD><DL>
|
536
|
|
-<DT><B>Parameters:</B><DD><CODE>lookup</CODE> - key to lookup which should be of form:
|
537
|
|
-<code>constructor.getDeclaringClass().getSimpleName()</code>
|
538
|
|
- <code>+ Arrays.toString(constructor.getParameterTypes())</code>
|
539
|
|
-<DT><B>Returns:</B><DD>The registered constructor if found, else null.</DL>
|
540
|
|
-</DD>
|
541
|
|
-</DL>
|
542
|
|
-<HR>
|
543
|
|
-
|
544
|
|
-<A NAME="getCurrentContext()"><!-- --></A><H3>
|
545
|
|
-getCurrentContext</H3>
|
546
|
|
-<PRE>
|
547
|
|
-public static <A HREF="http://static.springsource.org/spring/docs/3.0.x/javadoc-api/org/springframework/expression/EvaluationContext.html?is-external=true" title="class or interface in org.springframework.expression">EvaluationContext</A> <B>getCurrentContext</B>()</PRE>
|
548
|
|
-<DL>
|
549
|
|
-<DD>Returns the current evaluation context. Null if there is no context.
|
550
|
|
-<P>
|
551
|
|
-<DD><DL>
|
552
|
|
-
|
553
|
|
-<DT><B>Returns:</B><DD>The current evaluation context.</DL>
|
554
|
|
-</DD>
|
555
|
|
-</DL>
|
556
|
|
-<!-- ========= END OF CLASS DATA ========= -->
|
557
|
|
-<HR>
|
558
|
|
-
|
559
|
|
-
|
560
|
|
-<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
561
|
|
-<A NAME="navbar_bottom"><!-- --></A>
|
562
|
|
-<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
|
563
|
|
-<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
564
|
|
-<TR>
|
565
|
|
-<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
566
|
|
-<A NAME="navbar_bottom_firstrow"><!-- --></A>
|
567
|
|
-<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
568
|
|
- <TR ALIGN="center" VALIGN="top">
|
569
|
|
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../net/abhinavsarkar/spelhelper/package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
570
|
|
- <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
571
|
|
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/SpelHelper.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
|
572
|
|
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
573
|
|
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
574
|
|
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
575
|
|
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
576
|
|
- </TR>
|
577
|
|
-</TABLE>
|
578
|
|
-</TD>
|
579
|
|
-<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
580
|
|
-Code hosted at <a target='_blank' href='http://github.com/abhin4v/spelhelper/'>github</a></EM>
|
581
|
|
-</TD>
|
582
|
|
-</TR>
|
583
|
|
-
|
584
|
|
-<TR>
|
585
|
|
-<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
586
|
|
- <A HREF="../../../net/abhinavsarkar/spelhelper/ImplicitMethods.html" title="class in net.abhinavsarkar.spelhelper"><B>PREV CLASS</B></A>
|
587
|
|
- NEXT CLASS</FONT></TD>
|
588
|
|
-<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
589
|
|
- <A HREF="../../../index.html?net/abhinavsarkar/spelhelper/SpelHelper.html" target="_top"><B>FRAMES</B></A>
|
590
|
|
- <A HREF="SpelHelper.html" target="_top"><B>NO FRAMES</B></A>
|
591
|
|
- <SCRIPT type="text/javascript">
|
592
|
|
- <!--
|
593
|
|
- if(window==top) {
|
594
|
|
- document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
595
|
|
- }
|
596
|
|
- //-->
|
597
|
|
-</SCRIPT>
|
598
|
|
-<NOSCRIPT>
|
599
|
|
- <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
|
600
|
|
-</NOSCRIPT>
|
601
|
|
-
|
602
|
|
-
|
603
|
|
-</FONT></TD>
|
604
|
|
-</TR>
|
605
|
|
-<TR>
|
606
|
|
-<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
607
|
|
- SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
608
|
|
-<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
609
|
|
-DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
610
|
|
-</TR>
|
611
|
|
-</TABLE>
|
612
|
|
-<A NAME="skip-navbar_bottom"></A>
|
613
|
|
-<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
614
|
|
-
|
615
|
|
-<HR>
|
616
|
|
-Copyright © 2010. All Rights Reserved.
|
617
|
|
-</BODY>
|
618
|
|
-</HTML>
|