Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
156 ashish 1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2
<!--NewPage-->
3
<HTML>
4
<HEAD>
5
<!-- Generated by javadoc (build 1.5.0_22) on Wed Jan 06 21:26:38 EST 2010 -->
6
<TITLE>
7
KeyUtil
8
</TITLE>
9
 
10
<META NAME="keywords" CONTENT="com.google.gwt.inject.rebind.util.KeyUtil class">
11
 
12
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../stylesheet.css" TITLE="Style">
13
 
14
<SCRIPT type="text/javascript">
15
function windowTitle()
16
{
17
    parent.document.title="KeyUtil";
18
}
19
</SCRIPT>
20
<NOSCRIPT>
21
</NOSCRIPT>
22
 
23
</HEAD>
24
 
25
<BODY BGCOLOR="white" onload="windowTitle();">
26
 
27
 
28
<!-- ========= START OF TOP NAVBAR ======= -->
29
<A NAME="navbar_top"><!-- --></A>
30
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
31
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
32
<TR>
33
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
34
<A NAME="navbar_top_firstrow"><!-- --></A>
35
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
36
  <TR ALIGN="center" VALIGN="top">
37
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
38
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
39
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
40
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
41
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
42
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
43
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
44
  </TR>
45
</TABLE>
46
</TD>
47
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
48
</EM>
49
</TD>
50
</TR>
51
 
52
<TR>
53
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
54
&nbsp;PREV CLASS&nbsp;
55
&nbsp;<A HREF="../../../../../../com/google/gwt/inject/rebind/util/MemberCollector.html" title="class in com.google.gwt.inject.rebind.util"><B>NEXT CLASS</B></A></FONT></TD>
56
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
57
  <A HREF="../../../../../../index.html?com/google/gwt/inject/rebind/util/KeyUtil.html" target="_top"><B>FRAMES</B></A>  &nbsp;
58
&nbsp;<A HREF="KeyUtil.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
59
&nbsp;<SCRIPT type="text/javascript">
60
  <!--
61
  if(window==top) {
62
    document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
63
  }
64
  //-->
65
</SCRIPT>
66
<NOSCRIPT>
67
  <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
68
</NOSCRIPT>
69
 
70
 
71
</FONT></TD>
72
</TR>
73
<TR>
74
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
75
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
76
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
77
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
78
</TR>
79
</TABLE>
80
<A NAME="skip-navbar_top"></A>
81
<!-- ========= END OF TOP NAVBAR ========= -->
82
 
83
<HR>
84
<!-- ======== START OF CLASS DATA ======== -->
85
<H2>
86
<FONT SIZE="-1">
87
com.google.gwt.inject.rebind.util</FONT>
88
<BR>
89
Class KeyUtil</H2>
90
<PRE>
91
java.lang.Object
92
  <IMG SRC="../../../../../../resources/inherit.gif" ALT="extended by "><B>com.google.gwt.inject.rebind.util.KeyUtil</B>
93
</PRE>
94
<HR>
95
<DL>
96
<DT><PRE>public class <B>KeyUtil</B><DT>extends java.lang.Object</DL>
97
</PRE>
98
 
99
<P>
100
Util object that offers <A HREF="http://google-guice.googlecode.com/svn/trunk/javadoc/com/google/inject/Key.html" title="class or interface in com.google.inject"><CODE>Key</CODE></A> retrieval and manipulation methods.
101
<P>
102
 
103
<P>
104
<HR>
105
 
106
<P>
107
 
108
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
109
 
110
<A NAME="constructor_summary"><!-- --></A>
111
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
112
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
113
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
114
<B>Constructor Summary</B></FONT></TH>
115
</TR>
116
<TR BGCOLOR="white" CLASS="TableRowColor">
117
<TD><CODE><B><A HREF="../../../../../../com/google/gwt/inject/rebind/util/KeyUtil.html#KeyUtil(com.google.gwt.core.ext.typeinfo.TypeOracle, com.google.gwt.inject.rebind.util.NameGenerator, com.google.gwt.inject.rebind.util.MemberCollector)">KeyUtil</A></B>(com.google.gwt.core.ext.typeinfo.TypeOracle&nbsp;typeOracle,
118
        <A HREF="../../../../../../com/google/gwt/inject/rebind/util/NameGenerator.html" title="class in com.google.gwt.inject.rebind.util">NameGenerator</A>&nbsp;nameGenerator,
119
        <A HREF="../../../../../../com/google/gwt/inject/rebind/util/MemberCollector.html" title="class in com.google.gwt.inject.rebind.util">MemberCollector</A>&nbsp;memberCollector)</CODE>
120
 
121
<BR>
122
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
123
</TR>
124
</TABLE>
125
&nbsp;
126
<!-- ========== METHOD SUMMARY =========== -->
127
 
128
<A NAME="method_summary"><!-- --></A>
129
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
130
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
131
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
132
<B>Method Summary</B></FONT></TH>
133
</TR>
134
<TR BGCOLOR="white" CLASS="TableRowColor">
135
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
136
<CODE>&nbsp;com.google.gwt.core.ext.typeinfo.JClassType</CODE></FONT></TD>
137
<TD><CODE><B><A HREF="../../../../../../com/google/gwt/inject/rebind/util/KeyUtil.html#getClassType(com.google.inject.Key)">getClassType</A></B>(<A HREF="http://google-guice.googlecode.com/svn/trunk/javadoc/com/google/inject/Key.html" title="class or interface in com.google.inject">Key</A>&lt;?&gt;&nbsp;key)</CODE>
138
 
139
<BR>
140
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
141
</TR>
142
<TR BGCOLOR="white" CLASS="TableRowColor">
143
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
144
<CODE>&nbsp;com.google.gwt.core.ext.typeinfo.JClassType</CODE></FONT></TD>
145
<TD><CODE><B><A HREF="../../../../../../com/google/gwt/inject/rebind/util/KeyUtil.html#getClassType(java.lang.reflect.Type)">getClassType</A></B>(java.lang.reflect.Type&nbsp;type)</CODE>
146
 
147
<BR>
148
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
149
</TR>
150
<TR BGCOLOR="white" CLASS="TableRowColor">
151
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
152
<CODE>&nbsp;<A HREF="http://google-guice.googlecode.com/svn/trunk/javadoc/com/google/inject/Key.html" title="class or interface in com.google.inject">Key</A>&lt;?&gt;</CODE></FONT></TD>
153
<TD><CODE><B><A HREF="../../../../../../com/google/gwt/inject/rebind/util/KeyUtil.html#getKey(com.google.gwt.core.ext.typeinfo.JField)">getKey</A></B>(com.google.gwt.core.ext.typeinfo.JField&nbsp;field)</CODE>
154
 
155
<BR>
156
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
157
</TR>
158
<TR BGCOLOR="white" CLASS="TableRowColor">
159
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
160
<CODE>&nbsp;<A HREF="http://google-guice.googlecode.com/svn/trunk/javadoc/com/google/inject/Key.html" title="class or interface in com.google.inject">Key</A>&lt;?&gt;</CODE></FONT></TD>
161
<TD><CODE><B><A HREF="../../../../../../com/google/gwt/inject/rebind/util/KeyUtil.html#getKey(com.google.gwt.core.ext.typeinfo.JMethod)">getKey</A></B>(com.google.gwt.core.ext.typeinfo.JMethod&nbsp;method)</CODE>
162
 
163
<BR>
164
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
165
</TR>
166
<TR BGCOLOR="white" CLASS="TableRowColor">
167
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
168
<CODE>&nbsp;<A HREF="http://google-guice.googlecode.com/svn/trunk/javadoc/com/google/inject/Key.html" title="class or interface in com.google.inject">Key</A>&lt;?&gt;</CODE></FONT></TD>
169
<TD><CODE><B><A HREF="../../../../../../com/google/gwt/inject/rebind/util/KeyUtil.html#getKey(com.google.gwt.core.ext.typeinfo.JParameter)">getKey</A></B>(com.google.gwt.core.ext.typeinfo.JParameter&nbsp;param)</CODE>
170
 
171
<BR>
172
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
173
</TR>
174
<TR BGCOLOR="white" CLASS="TableRowColor">
175
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
176
<CODE>&nbsp;<A HREF="http://google-guice.googlecode.com/svn/trunk/javadoc/com/google/inject/Key.html" title="class or interface in com.google.inject">Key</A>&lt;?&gt;</CODE></FONT></TD>
177
<TD><CODE><B><A HREF="../../../../../../com/google/gwt/inject/rebind/util/KeyUtil.html#getKey(com.google.gwt.core.ext.typeinfo.JType, java.lang.annotation.Annotation...)">getKey</A></B>(com.google.gwt.core.ext.typeinfo.JType&nbsp;gwtType,
178
       java.lang.annotation.Annotation...&nbsp;annotations)</CODE>
179
 
180
<BR>
181
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the Guice binding key for a given GWT type with optional annotations.</TD>
182
</TR>
183
<TR BGCOLOR="white" CLASS="TableRowColor">
184
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
185
<CODE>&nbsp;<A HREF="http://google-guice.googlecode.com/svn/trunk/javadoc/com/google/inject/Key.html" title="class or interface in com.google.inject">Key</A>&lt;?&gt;</CODE></FONT></TD>
186
<TD><CODE><B><A HREF="../../../../../../com/google/gwt/inject/rebind/util/KeyUtil.html#getKey(java.lang.reflect.Type, java.lang.annotation.Annotation...)">getKey</A></B>(java.lang.reflect.Type&nbsp;type,
187
       java.lang.annotation.Annotation...&nbsp;annotations)</CODE>
188
 
189
<BR>
190
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the Guice binding key for a given Java type with optional annotations.</TD>
191
</TR>
192
<TR BGCOLOR="white" CLASS="TableRowColor">
193
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
194
<CODE>&nbsp;com.google.gwt.core.ext.typeinfo.JClassType</CODE></FONT></TD>
195
<TD><CODE><B><A HREF="../../../../../../com/google/gwt/inject/rebind/util/KeyUtil.html#getRawClassType(com.google.inject.Key)">getRawClassType</A></B>(<A HREF="http://google-guice.googlecode.com/svn/trunk/javadoc/com/google/inject/Key.html" title="class or interface in com.google.inject">Key</A>&lt;?&gt;&nbsp;key)</CODE>
196
 
197
<BR>
198
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
199
</TR>
200
<TR BGCOLOR="white" CLASS="TableRowColor">
201
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
202
<CODE>&nbsp;java.lang.Class&lt;?&gt;</CODE></FONT></TD>
203
<TD><CODE><B><A HREF="../../../../../../com/google/gwt/inject/rebind/util/KeyUtil.html#getRawType(com.google.inject.Key)">getRawType</A></B>(<A HREF="http://google-guice.googlecode.com/svn/trunk/javadoc/com/google/inject/Key.html" title="class or interface in com.google.inject">Key</A>&lt;?&gt;&nbsp;key)</CODE>
204
 
205
<BR>
206
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
207
</TR>
208
<TR BGCOLOR="white" CLASS="TableRowColor">
209
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
210
<CODE>&nbsp;<A HREF="../../../../../../com/google/gwt/inject/rebind/binding/RequiredKeys.html" title="class in com.google.gwt.inject.rebind.binding">RequiredKeys</A></CODE></FONT></TD>
211
<TD><CODE><B><A HREF="../../../../../../com/google/gwt/inject/rebind/util/KeyUtil.html#getRequiredKeys(com.google.gwt.core.ext.typeinfo.JAbstractMethod)">getRequiredKeys</A></B>(com.google.gwt.core.ext.typeinfo.JAbstractMethod&nbsp;method)</CODE>
212
 
213
<BR>
214
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Collects and returns all keys required to inject the given method.</TD>
215
</TR>
216
<TR BGCOLOR="white" CLASS="TableRowColor">
217
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
218
<CODE>&nbsp;<A HREF="../../../../../../com/google/gwt/inject/rebind/binding/RequiredKeys.html" title="class in com.google.gwt.inject.rebind.binding">RequiredKeys</A></CODE></FONT></TD>
219
<TD><CODE><B><A HREF="../../../../../../com/google/gwt/inject/rebind/util/KeyUtil.html#getRequiredKeys(com.google.gwt.core.ext.typeinfo.JClassType)">getRequiredKeys</A></B>(com.google.gwt.core.ext.typeinfo.JClassType&nbsp;classType)</CODE>
220
 
221
<BR>
222
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Collects and returns all keys required to inject the given class.</TD>
223
</TR>
224
<TR BGCOLOR="white" CLASS="TableRowColor">
225
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
226
<CODE>&nbsp;boolean</CODE></FONT></TD>
227
<TD><CODE><B><A HREF="../../../../../../com/google/gwt/inject/rebind/util/KeyUtil.html#isMemberInject(com.google.gwt.core.ext.typeinfo.JMethod)">isMemberInject</A></B>(com.google.gwt.core.ext.typeinfo.JMethod&nbsp;method)</CODE>
228
 
229
<BR>
230
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
231
</TR>
232
<TR BGCOLOR="white" CLASS="TableRowColor">
233
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
234
<CODE>&nbsp;boolean</CODE></FONT></TD>
235
<TD><CODE><B><A HREF="../../../../../../com/google/gwt/inject/rebind/util/KeyUtil.html#isOptional(com.google.gwt.core.ext.typeinfo.HasAnnotations)">isOptional</A></B>(com.google.gwt.core.ext.typeinfo.HasAnnotations&nbsp;member)</CODE>
236
 
237
<BR>
238
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if the passed class member has an @<code>Inject</code>
239
 annotation and the injection is marked as optional (
240
 @<code>Inject(optional=true)</code>).</TD>
241
</TR>
242
<TR BGCOLOR="white" CLASS="TableRowColor">
243
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
244
<CODE>&nbsp;com.google.gwt.core.ext.typeinfo.JField</CODE></FONT></TD>
245
<TD><CODE><B><A HREF="../../../../../../com/google/gwt/inject/rebind/util/KeyUtil.html#javaToGwtField(java.lang.reflect.Field)">javaToGwtField</A></B>(java.lang.reflect.Field&nbsp;javaField)</CODE>
246
 
247
<BR>
248
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a <CODE>JField</CODE> that represents the same method as the provided
249
 <CODE>Field</CODE> reflection object.</TD>
250
</TR>
251
<TR BGCOLOR="white" CLASS="TableRowColor">
252
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
253
<CODE>&nbsp;com.google.gwt.core.ext.typeinfo.JMethod</CODE></FONT></TD>
254
<TD><CODE><B><A HREF="../../../../../../com/google/gwt/inject/rebind/util/KeyUtil.html#javaToGwtMethod(java.lang.reflect.Method)">javaToGwtMethod</A></B>(java.lang.reflect.Method&nbsp;javaMethod)</CODE>
255
 
256
<BR>
257
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a <CODE>JMethod</CODE> that represents the same method as the provided
258
 <CODE>Method</CODE> reflection object.</TD>
259
</TR>
260
</TABLE>
261
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
262
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
263
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
264
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
265
</TR>
266
<TR BGCOLOR="white" CLASS="TableRowColor">
267
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
268
</TR>
269
</TABLE>
270
&nbsp;
271
<P>
272
 
273
<!-- ========= CONSTRUCTOR DETAIL ======== -->
274
 
275
<A NAME="constructor_detail"><!-- --></A>
276
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
277
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
278
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
279
<B>Constructor Detail</B></FONT></TH>
280
</TR>
281
</TABLE>
282
 
283
<A NAME="KeyUtil(com.google.gwt.core.ext.typeinfo.TypeOracle, com.google.gwt.inject.rebind.util.NameGenerator, com.google.gwt.inject.rebind.util.MemberCollector)"><!-- --></A><H3>
284
KeyUtil</H3>
285
<PRE>
286
<FONT SIZE="-1"><A HREF="http://google-guice.googlecode.com/svn/trunk/javadoc/com/google/inject/Inject.html" title="class or interface in com.google.inject">@Inject</A>
287
</FONT>public <B>KeyUtil</B>(com.google.gwt.core.ext.typeinfo.TypeOracle&nbsp;typeOracle,
288
                      <A HREF="../../../../../../com/google/gwt/inject/rebind/util/NameGenerator.html" title="class in com.google.gwt.inject.rebind.util">NameGenerator</A>&nbsp;nameGenerator,
289
                      <A HREF="../../../../../../com/google/gwt/inject/rebind/util/MemberCollector.html" title="class in com.google.gwt.inject.rebind.util">MemberCollector</A>&nbsp;memberCollector)</PRE>
290
<DL>
291
</DL>
292
 
293
<!-- ============ METHOD DETAIL ========== -->
294
 
295
<A NAME="method_detail"><!-- --></A>
296
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
297
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
298
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
299
<B>Method Detail</B></FONT></TH>
300
</TR>
301
</TABLE>
302
 
303
<A NAME="getKey(com.google.gwt.core.ext.typeinfo.JMethod)"><!-- --></A><H3>
304
getKey</H3>
305
<PRE>
306
public <A HREF="http://google-guice.googlecode.com/svn/trunk/javadoc/com/google/inject/Key.html" title="class or interface in com.google.inject">Key</A>&lt;?&gt; <B>getKey</B>(com.google.gwt.core.ext.typeinfo.JMethod&nbsp;method)</PRE>
307
<DL>
308
<DD><DL>
309
</DL>
310
</DD>
311
</DL>
312
<HR>
313
 
314
<A NAME="getKey(com.google.gwt.core.ext.typeinfo.JParameter)"><!-- --></A><H3>
315
getKey</H3>
316
<PRE>
317
public <A HREF="http://google-guice.googlecode.com/svn/trunk/javadoc/com/google/inject/Key.html" title="class or interface in com.google.inject">Key</A>&lt;?&gt; <B>getKey</B>(com.google.gwt.core.ext.typeinfo.JParameter&nbsp;param)</PRE>
318
<DL>
319
<DD><DL>
320
</DL>
321
</DD>
322
</DL>
323
<HR>
324
 
325
<A NAME="getKey(com.google.gwt.core.ext.typeinfo.JField)"><!-- --></A><H3>
326
getKey</H3>
327
<PRE>
328
public <A HREF="http://google-guice.googlecode.com/svn/trunk/javadoc/com/google/inject/Key.html" title="class or interface in com.google.inject">Key</A>&lt;?&gt; <B>getKey</B>(com.google.gwt.core.ext.typeinfo.JField&nbsp;field)</PRE>
329
<DL>
330
<DD><DL>
331
</DL>
332
</DD>
333
</DL>
334
<HR>
335
 
336
<A NAME="isMemberInject(com.google.gwt.core.ext.typeinfo.JMethod)"><!-- --></A><H3>
337
isMemberInject</H3>
338
<PRE>
339
public boolean <B>isMemberInject</B>(com.google.gwt.core.ext.typeinfo.JMethod&nbsp;method)</PRE>
340
<DL>
341
<DD><DL>
342
</DL>
343
</DD>
344
</DL>
345
<HR>
346
 
347
<A NAME="getRawType(com.google.inject.Key)"><!-- --></A><H3>
348
getRawType</H3>
349
<PRE>
350
public java.lang.Class&lt;?&gt; <B>getRawType</B>(<A HREF="http://google-guice.googlecode.com/svn/trunk/javadoc/com/google/inject/Key.html" title="class or interface in com.google.inject">Key</A>&lt;?&gt;&nbsp;key)</PRE>
351
<DL>
352
<DD><DL>
353
</DL>
354
</DD>
355
</DL>
356
<HR>
357
 
358
<A NAME="getRawClassType(com.google.inject.Key)"><!-- --></A><H3>
359
getRawClassType</H3>
360
<PRE>
361
public com.google.gwt.core.ext.typeinfo.JClassType <B>getRawClassType</B>(<A HREF="http://google-guice.googlecode.com/svn/trunk/javadoc/com/google/inject/Key.html" title="class or interface in com.google.inject">Key</A>&lt;?&gt;&nbsp;key)</PRE>
362
<DL>
363
<DD><DL>
364
</DL>
365
</DD>
366
</DL>
367
<HR>
368
 
369
<A NAME="getClassType(com.google.inject.Key)"><!-- --></A><H3>
370
getClassType</H3>
371
<PRE>
372
public com.google.gwt.core.ext.typeinfo.JClassType <B>getClassType</B>(<A HREF="http://google-guice.googlecode.com/svn/trunk/javadoc/com/google/inject/Key.html" title="class or interface in com.google.inject">Key</A>&lt;?&gt;&nbsp;key)</PRE>
373
<DL>
374
<DD><DL>
375
</DL>
376
</DD>
377
</DL>
378
<HR>
379
 
380
<A NAME="getClassType(java.lang.reflect.Type)"><!-- --></A><H3>
381
getClassType</H3>
382
<PRE>
383
public com.google.gwt.core.ext.typeinfo.JClassType <B>getClassType</B>(java.lang.reflect.Type&nbsp;type)</PRE>
384
<DL>
385
<DD><DL>
386
</DL>
387
</DD>
388
</DL>
389
<HR>
390
 
391
<A NAME="getKey(com.google.gwt.core.ext.typeinfo.JType, java.lang.annotation.Annotation...)"><!-- --></A><H3>
392
getKey</H3>
393
<PRE>
394
public <A HREF="http://google-guice.googlecode.com/svn/trunk/javadoc/com/google/inject/Key.html" title="class or interface in com.google.inject">Key</A>&lt;?&gt; <B>getKey</B>(com.google.gwt.core.ext.typeinfo.JType&nbsp;gwtType,
395
                     java.lang.annotation.Annotation...&nbsp;annotations)
396
              throws <A HREF="http://google-guice.googlecode.com/svn/trunk/javadoc/com/google/inject/ProvisionException.html" title="class or interface in com.google.inject">ProvisionException</A></PRE>
397
<DL>
398
<DD>Gets the Guice binding key for a given GWT type with optional annotations.
399
<P>
400
<DD><DL>
401
<DT><B>Parameters:</B><DD><CODE>gwtType</CODE> - GWT type to convert in to a key<DD><CODE>annotations</CODE> - Optional array of <code>Annotation</code>s. If this contains
402
     one and only one <A HREF="http://google-guice.googlecode.com/svn/trunk/javadoc/com/google/inject/BindingAnnotation.html" title="class or interface in com.google.inject"><CODE>BindingAnnotation</CODE></A>, it will be included in the
403
     key. If it includes more than one, an exception will be thrown.
404
<DT><B>Returns:</B><DD>Guice Key instance for this type/annotations
405
<DT><B>Throws:</B>
406
<DD><CODE><A HREF="http://google-guice.googlecode.com/svn/trunk/javadoc/com/google/inject/ProvisionException.html" title="class or interface in com.google.inject">ProvisionException</A></CODE> - in case of any failure</DL>
407
</DD>
408
</DL>
409
<HR>
410
 
411
<A NAME="getKey(java.lang.reflect.Type, java.lang.annotation.Annotation...)"><!-- --></A><H3>
412
getKey</H3>
413
<PRE>
414
public <A HREF="http://google-guice.googlecode.com/svn/trunk/javadoc/com/google/inject/Key.html" title="class or interface in com.google.inject">Key</A>&lt;?&gt; <B>getKey</B>(java.lang.reflect.Type&nbsp;type,
415
                     java.lang.annotation.Annotation...&nbsp;annotations)
416
              throws <A HREF="http://google-guice.googlecode.com/svn/trunk/javadoc/com/google/inject/ProvisionException.html" title="class or interface in com.google.inject">ProvisionException</A></PRE>
417
<DL>
418
<DD>Gets the Guice binding key for a given Java type with optional annotations.
419
<P>
420
<DD><DL>
421
<DT><B>Parameters:</B><DD><CODE>type</CODE> - Java type to convert in to a key<DD><CODE>annotations</CODE> - Optional array of <code>Annotation</code>s. If this contains
422
     one and only one <A HREF="http://google-guice.googlecode.com/svn/trunk/javadoc/com/google/inject/BindingAnnotation.html" title="class or interface in com.google.inject"><CODE>BindingAnnotation</CODE></A>, it will be included in the
423
     key. If it includes more than one, an exception will be thrown.
424
<DT><B>Returns:</B><DD>Guice Key instance for this type/annotations
425
<DT><B>Throws:</B>
426
<DD><CODE><A HREF="http://google-guice.googlecode.com/svn/trunk/javadoc/com/google/inject/ProvisionException.html" title="class or interface in com.google.inject">ProvisionException</A></CODE> - in case of any failure</DL>
427
</DD>
428
</DL>
429
<HR>
430
 
431
<A NAME="javaToGwtMethod(java.lang.reflect.Method)"><!-- --></A><H3>
432
javaToGwtMethod</H3>
433
<PRE>
434
public com.google.gwt.core.ext.typeinfo.JMethod <B>javaToGwtMethod</B>(java.lang.reflect.Method&nbsp;javaMethod)
435
                                                         throws com.google.gwt.core.ext.typeinfo.NotFoundException</PRE>
436
<DL>
437
<DD>Returns a <CODE>JMethod</CODE> that represents the same method as the provided
438
 <CODE>Method</CODE> reflection object.
439
<P>
440
<DD><DL>
441
<DT><B>Parameters:</B><DD><CODE>javaMethod</CODE> - method as used by reflection
442
<DT><B>Returns:</B><DD>method as used by the GWT compiler
443
<DT><B>Throws:</B>
444
<DD><CODE>com.google.gwt.core.ext.typeinfo.NotFoundException</CODE> - if method cannot be found in source</DL>
445
</DD>
446
</DL>
447
<HR>
448
 
449
<A NAME="javaToGwtField(java.lang.reflect.Field)"><!-- --></A><H3>
450
javaToGwtField</H3>
451
<PRE>
452
public com.google.gwt.core.ext.typeinfo.JField <B>javaToGwtField</B>(java.lang.reflect.Field&nbsp;javaField)</PRE>
453
<DL>
454
<DD>Returns a <CODE>JField</CODE> that represents the same method as the provided
455
 <CODE>Field</CODE> reflection object.
456
<P>
457
<DD><DL>
458
<DT><B>Parameters:</B><DD><CODE>javaField</CODE> - field as used by reflection
459
<DT><B>Returns:</B><DD>field as used by the GWT compiler</DL>
460
</DD>
461
</DL>
462
<HR>
463
 
464
<A NAME="isOptional(com.google.gwt.core.ext.typeinfo.HasAnnotations)"><!-- --></A><H3>
465
isOptional</H3>
466
<PRE>
467
public boolean <B>isOptional</B>(com.google.gwt.core.ext.typeinfo.HasAnnotations&nbsp;member)</PRE>
468
<DL>
469
<DD>Returns true if the passed class member has an @<code>Inject</code>
470
 annotation and the injection is marked as optional (
471
 @<code>Inject(optional=true)</code>).
472
<P>
473
<DD><DL>
474
<DT><B>Parameters:</B><DD><CODE>member</CODE> - member to be checked
475
<DT><B>Returns:</B><DD>true if member is injected optionally</DL>
476
</DD>
477
</DL>
478
<HR>
479
 
480
<A NAME="getRequiredKeys(com.google.gwt.core.ext.typeinfo.JClassType)"><!-- --></A><H3>
481
getRequiredKeys</H3>
482
<PRE>
483
public <A HREF="../../../../../../com/google/gwt/inject/rebind/binding/RequiredKeys.html" title="class in com.google.gwt.inject.rebind.binding">RequiredKeys</A> <B>getRequiredKeys</B>(com.google.gwt.core.ext.typeinfo.JClassType&nbsp;classType)</PRE>
484
<DL>
485
<DD>Collects and returns all keys required to inject the given class.
486
<P>
487
<DD><DL>
488
<DT><B>Parameters:</B><DD><CODE>classType</CODE> - class for which required keys are calculated
489
<DT><B>Returns:</B><DD>keys required to inject given class</DL>
490
</DD>
491
</DL>
492
<HR>
493
 
494
<A NAME="getRequiredKeys(com.google.gwt.core.ext.typeinfo.JAbstractMethod)"><!-- --></A><H3>
495
getRequiredKeys</H3>
496
<PRE>
497
public <A HREF="../../../../../../com/google/gwt/inject/rebind/binding/RequiredKeys.html" title="class in com.google.gwt.inject.rebind.binding">RequiredKeys</A> <B>getRequiredKeys</B>(com.google.gwt.core.ext.typeinfo.JAbstractMethod&nbsp;method)</PRE>
498
<DL>
499
<DD>Collects and returns all keys required to inject the given method.
500
<P>
501
<DD><DL>
502
<DT><B>Parameters:</B><DD><CODE>method</CODE> - method for which required keys are calculated
503
<DT><B>Returns:</B><DD>required keys</DL>
504
</DD>
505
</DL>
506
<!-- ========= END OF CLASS DATA ========= -->
507
<HR>
508
 
509
 
510
<!-- ======= START OF BOTTOM NAVBAR ====== -->
511
<A NAME="navbar_bottom"><!-- --></A>
512
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
513
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
514
<TR>
515
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
516
<A NAME="navbar_bottom_firstrow"><!-- --></A>
517
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
518
  <TR ALIGN="center" VALIGN="top">
519
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
520
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
521
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
522
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
523
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
524
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
525
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
526
  </TR>
527
</TABLE>
528
</TD>
529
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
530
</EM>
531
</TD>
532
</TR>
533
 
534
<TR>
535
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
536
&nbsp;PREV CLASS&nbsp;
537
&nbsp;<A HREF="../../../../../../com/google/gwt/inject/rebind/util/MemberCollector.html" title="class in com.google.gwt.inject.rebind.util"><B>NEXT CLASS</B></A></FONT></TD>
538
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
539
  <A HREF="../../../../../../index.html?com/google/gwt/inject/rebind/util/KeyUtil.html" target="_top"><B>FRAMES</B></A>  &nbsp;
540
&nbsp;<A HREF="KeyUtil.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
541
&nbsp;<SCRIPT type="text/javascript">
542
  <!--
543
  if(window==top) {
544
    document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
545
  }
546
  //-->
547
</SCRIPT>
548
<NOSCRIPT>
549
  <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
550
</NOSCRIPT>
551
 
552
 
553
</FONT></TD>
554
</TR>
555
<TR>
556
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
557
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
558
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
559
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
560
</TR>
561
</TABLE>
562
<A NAME="skip-navbar_bottom"></A>
563
<!-- ======== END OF BOTTOM NAVBAR ======= -->
564
 
565
<HR>
566
 
567
</BODY>
568
</HTML>