
public class PresenterInspector extends Object
init(JClassType) before any other method can be called.| Constructor and Description |
|---|
PresenterInspector(TypeOracle oracle,
TreeLogger logger,
ClassCollection classCollection,
GinjectorInspector ginjectorInspector) |
| Modifier and Type | Method and Description |
|---|---|
void |
collectProxyEvents(List<ProxyEventMethod> proxyEventMethods)
Collect all the
ProxyEventMethod of methods annotated with
@ProxyEvent and contained in the presenter or its super classes. |
PresenterTitleMethod |
findPresenterTitleMethod()
Look in the presenter and any superclass for a method annotated with
TitleFunction. |
TabInfoMethod |
findTabInfoMethod()
Retrieves the static
TabInfoMethod defined in the presenter. |
JClassType |
getPresenterClass() |
String |
getPresenterClassName() |
boolean |
init(JClassType proxyInterface)
Initializes the presenter inspector given the annotation present on a proxy interface.
|
void |
writeContentSlotHandlerRegistration(com.google.gwt.user.rebind.SourceWriter writer)
Register a
RevealContentHandler
for each @ContentSlot defined in the presenter. |
void |
writeProviderAssignation(com.google.gwt.user.rebind.SourceWriter writer)
Writes the assignation into the
provider field of
ProxyImpl. |
public PresenterInspector(TypeOracle oracle, TreeLogger logger, ClassCollection classCollection, GinjectorInspector ginjectorInspector)
public boolean init(JClassType proxyInterface) throws UnableToCompleteException
ProxyStandard, ProxyCodeSplit or
ProxyCodeSplitBundle. If none are present the method returns false and no code
should be generated.proxyInterface - The annotated interface inheriting from proxy and that should be
annotated.true if the presenter provider was built, false if the interface wasn't
annotated indicating that no proxy should be generated.UnableToCompleteException - When more than one annotation is present on the proxy
interface.public JClassType getPresenterClass()
PresenterInspector provides.public String getPresenterClassName()
PresenterInspector provides.public void writeProviderAssignation(com.google.gwt.user.rebind.SourceWriter writer)
provider field of
ProxyImpl.public void writeContentSlotHandlerRegistration(com.google.gwt.user.rebind.SourceWriter writer)
RevealContentHandler
for each @ContentSlot defined in the presenter.public PresenterTitleMethod findPresenterTitleMethod() throws UnableToCompleteException
TitleFunction.UnableToCompleteExceptionpublic void collectProxyEvents(List<ProxyEventMethod> proxyEventMethods) throws UnableToCompleteException
ProxyEventMethod of methods annotated with
@ProxyEvent and contained in the presenter or its super classes.proxyEventMethods - The list into which to collect the proxy events.UnableToCompleteException - If something goes wrong. An error will be logged.public TabInfoMethod findTabInfoMethod() throws UnableToCompleteException
TabInfoMethod defined in the presenter.TabInfoMethod, or null if none is found.UnableToCompleteException - If something goes wrong. An error will be logged.Copyright © 2010-2014 ArcBees. All Rights Reserved.