Rev 156 | Blame | Compare with Previous | Last modification | View Log | RSS feed
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc (build 1.5.0_22) on Wed Jan 06 21:26:38 EST 2010 --><TITLE>MemberCollector</TITLE><META NAME="keywords" CONTENT="com.google.gwt.inject.rebind.util.MemberCollector class"><LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../stylesheet.css" TITLE="Style"><SCRIPT type="text/javascript">function windowTitle(){parent.document.title="MemberCollector";}</SCRIPT><NOSCRIPT></NOSCRIPT></HEAD><BODY BGCOLOR="white" onload="windowTitle();"><!-- ========= START OF TOP NAVBAR ======= --><A NAME="navbar_top"><!-- --></A><A HREF="#skip-navbar_top" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_top_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""><TR ALIGN="center" VALIGN="top"><TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD><TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD><TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD><TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD><TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD><TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD><TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD></TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../../com/google/gwt/inject/rebind/util/KeyUtil.html" title="class in com.google.gwt.inject.rebind.util"><B>PREV CLASS</B></A> <A HREF="../../../../../../com/google/gwt/inject/rebind/util/MemberCollector.FieldFilter.html" title="interface in com.google.gwt.inject.rebind.util"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"><A HREF="../../../../../../index.html?com/google/gwt/inject/rebind/util/MemberCollector.html" target="_top"><B>FRAMES</B></A> <A HREF="MemberCollector.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"><!--if(window==top) {document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');}//--></SCRIPT><NOSCRIPT><A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_top"></A><!-- ========= END OF TOP NAVBAR ========= --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">com.google.gwt.inject.rebind.util</FONT><BR>Class MemberCollector</H2><PRE>java.lang.Object<IMG SRC="../../../../../../resources/inherit.gif" ALT="extended by "><B>com.google.gwt.inject.rebind.util.MemberCollector</B></PRE><HR><DL><DT><PRE>public class <B>MemberCollector</B><DT>extends java.lang.Object</DL></PRE><P>This class can be used to collect a type's members, including those of its(recursive) superclasses and interfaces. The collector treats overridescorrectly, i.e. it returns the method defined the closest to the providedtype.<p>Note: The collector uses internal caching and can be called with the samearguments repeatedly without repeated performance costs.<p>This class is not thread-safe.<P><P><HR><P><!-- ======== NESTED CLASS SUMMARY ======== --><A NAME="nested_class_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"><B>Nested Class Summary</B></FONT></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static interface</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../../com/google/gwt/inject/rebind/util/MemberCollector.FieldFilter.html" title="interface in com.google.gwt.inject.rebind.util">MemberCollector.FieldFilter</A></B></CODE><BR> Filter used during the collection of fields to restrict the kind ofcollected fields.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static interface</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../../com/google/gwt/inject/rebind/util/MemberCollector.MethodFilter.html" title="interface in com.google.gwt.inject.rebind.util">MemberCollector.MethodFilter</A></B></CODE><BR> Filter used during the collection of methods to restrict the kind ofcollected methods.</TD></TR></TABLE> <!-- =========== FIELD SUMMARY =========== --><A NAME="field_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"><B>Field Summary</B></FONT></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../../../../../com/google/gwt/inject/rebind/util/MemberCollector.MethodFilter.html" title="interface in com.google.gwt.inject.rebind.util">MemberCollector.MethodFilter</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../../com/google/gwt/inject/rebind/util/MemberCollector.html#ALL_METHOD_FILTER">ALL_METHOD_FILTER</A></B></CODE><BR> </TD></TR></TABLE> <!-- ======== CONSTRUCTOR SUMMARY ======== --><A NAME="constructor_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"><B>Constructor Summary</B></FONT></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../../../../com/google/gwt/inject/rebind/util/MemberCollector.html#MemberCollector(com.google.gwt.core.ext.TreeLogger)">MemberCollector</A></B>(com.google.gwt.core.ext.TreeLogger logger)</CODE><BR> </TD></TR></TABLE> <!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"><B>Method Summary</B></FONT></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.util.Collection<com.google.gwt.core.ext.typeinfo.JField></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../../com/google/gwt/inject/rebind/util/MemberCollector.html#getFields(com.google.gwt.core.ext.typeinfo.JClassType)">getFields</A></B>(com.google.gwt.core.ext.typeinfo.JClassType type)</CODE><BR> Returns all fields in the provided type, including those of the type's(recursive) super classes.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.util.Collection<com.google.gwt.core.ext.typeinfo.JMethod></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../../com/google/gwt/inject/rebind/util/MemberCollector.html#getMethods(com.google.gwt.core.ext.typeinfo.JClassType)">getMethods</A></B>(com.google.gwt.core.ext.typeinfo.JClassType type)</CODE><BR> Returns all methods in the provided type, including those of the type's(recursive) super classes and interfaces.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../../com/google/gwt/inject/rebind/util/MemberCollector.html#setFieldFilter(com.google.gwt.inject.rebind.util.MemberCollector.FieldFilter)">setFieldFilter</A></B>(<A HREF="../../../../../../com/google/gwt/inject/rebind/util/MemberCollector.FieldFilter.html" title="interface in com.google.gwt.inject.rebind.util">MemberCollector.FieldFilter</A> filter)</CODE><BR> Sets this collector's field filter.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../../com/google/gwt/inject/rebind/util/MemberCollector.html#setMethodFilter(com.google.gwt.inject.rebind.util.MemberCollector.MethodFilter)">setMethodFilter</A></B>(<A HREF="../../../../../../com/google/gwt/inject/rebind/util/MemberCollector.MethodFilter.html" title="interface in com.google.gwt.inject.rebind.util">MemberCollector.MethodFilter</A> filter)</CODE><BR> Sets this collector's method filter.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Field Detail</B></FONT></TH></TR></TABLE><A NAME="ALL_METHOD_FILTER"><!-- --></A><H3>ALL_METHOD_FILTER</H3><PRE>public static final <A HREF="../../../../../../com/google/gwt/inject/rebind/util/MemberCollector.MethodFilter.html" title="interface in com.google.gwt.inject.rebind.util">MemberCollector.MethodFilter</A> <B>ALL_METHOD_FILTER</B></PRE><DL><DL></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="MemberCollector(com.google.gwt.core.ext.TreeLogger)"><!-- --></A><H3>MemberCollector</H3><PRE><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></FONT>public <B>MemberCollector</B>(com.google.gwt.core.ext.TreeLogger logger)</PRE><DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="setMethodFilter(com.google.gwt.inject.rebind.util.MemberCollector.MethodFilter)"><!-- --></A><H3>setMethodFilter</H3><PRE>public void <B>setMethodFilter</B>(<A HREF="../../../../../../com/google/gwt/inject/rebind/util/MemberCollector.MethodFilter.html" title="interface in com.google.gwt.inject.rebind.util">MemberCollector.MethodFilter</A> filter)throws java.lang.IllegalStateException</PRE><DL><DD>Sets this collector's method filter. This method can only be calledbefore members are requested.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>filter</CODE> - new method filter for this collector<DT><B>Throws:</B><DD><CODE>java.lang.IllegalStateException</CODE> - if the filter is set after members have beenrequested</DL></DD></DL><HR><A NAME="setFieldFilter(com.google.gwt.inject.rebind.util.MemberCollector.FieldFilter)"><!-- --></A><H3>setFieldFilter</H3><PRE>public void <B>setFieldFilter</B>(<A HREF="../../../../../../com/google/gwt/inject/rebind/util/MemberCollector.FieldFilter.html" title="interface in com.google.gwt.inject.rebind.util">MemberCollector.FieldFilter</A> filter)throws java.lang.IllegalStateException</PRE><DL><DD>Sets this collector's field filter. This method can only be called beforemembers are requested.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>filter</CODE> - new field filter for this collector<DT><B>Throws:</B><DD><CODE>java.lang.IllegalStateException</CODE> - if the filter is set after members have beenrequested</DL></DD></DL><HR><A NAME="getMethods(com.google.gwt.core.ext.typeinfo.JClassType)"><!-- --></A><H3>getMethods</H3><PRE>public java.util.Collection<com.google.gwt.core.ext.typeinfo.JMethod> <B>getMethods</B>(com.google.gwt.core.ext.typeinfo.JClassType type)</PRE><DL><DD>Returns all methods in the provided type, including those of the type's(recursive) super classes and interfaces. Treats overloads correctly. Ifno method filter is set will return an empty set.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>type</CODE> - type for which methods are collected<DT><B>Returns:</B><DD>all methods for the given type</DL></DD></DL><HR><A NAME="getFields(com.google.gwt.core.ext.typeinfo.JClassType)"><!-- --></A><H3>getFields</H3><PRE>public java.util.Collection<com.google.gwt.core.ext.typeinfo.JField> <B>getFields</B>(com.google.gwt.core.ext.typeinfo.JClassType type)</PRE><DL><DD>Returns all fields in the provided type, including those of the type's(recursive) super classes. If no field filter is set will return an emptyset.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>type</CODE> - type for which fields are collected<DT><B>Returns:</B><DD>all fields for the given type</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""><TR ALIGN="center" VALIGN="top"><TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD><TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD><TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD><TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD><TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD><TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD><TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD></TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../../com/google/gwt/inject/rebind/util/KeyUtil.html" title="class in com.google.gwt.inject.rebind.util"><B>PREV CLASS</B></A> <A HREF="../../../../../../com/google/gwt/inject/rebind/util/MemberCollector.FieldFilter.html" title="interface in com.google.gwt.inject.rebind.util"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"><A HREF="../../../../../../index.html?com/google/gwt/inject/rebind/util/MemberCollector.html" target="_top"><B>FRAMES</B></A> <A HREF="MemberCollector.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"><!--if(window==top) {document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');}//--></SCRIPT><NOSCRIPT><A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>