public abstract class ProxyOutputterBase extends Object implements ProxyOutputter
ProxyOutputter
implementation.Modifier and Type | Field and Description |
---|---|
protected ClassCollection |
classCollection |
protected GinjectorInspector |
ginjectorInspector |
protected TreeLogger |
logger |
protected TypeOracle |
oracle |
protected PresenterInspector |
presenterInspector |
Modifier and Type | Method and Description |
---|---|
void |
findProxyEvents() |
void |
init(JClassType proxyInterface)
Initializes this proxy outputter given the specified proxy interface.
|
void |
initComposerFactory(com.google.gwt.user.rebind.ClassSourceFileComposerFactory composerFactory)
Initializes the composer factory, adding all the imports, setting the
implemented interfaces and extending the correct superclass.
|
void |
writeConstructor(com.google.gwt.user.rebind.SourceWriter writer,
String className,
boolean registerDelayedBind)
Write all the empty constructor of the proxy.
|
void |
writeFields(com.google.gwt.user.rebind.SourceWriter writer)
Write all the fields of the proxy.
|
void |
writeMethods(com.google.gwt.user.rebind.SourceWriter writer)
Write all the methods of the proxy, not including the constructor.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
writeInnerClasses
protected final TypeOracle oracle
protected final TreeLogger logger
protected final ClassCollection classCollection
protected final GinjectorInspector ginjectorInspector
protected final PresenterInspector presenterInspector
public void init(JClassType proxyInterface) throws UnableToCompleteException
findProxyEvents()
after that if you
want this outputter to forward any proxy event.UnableToCompleteException
public void findProxyEvents() throws UnableToCompleteException
UnableToCompleteException
public void initComposerFactory(com.google.gwt.user.rebind.ClassSourceFileComposerFactory composerFactory)
ProxyOutputter
initComposerFactory
in interface ProxyOutputter
composerFactory
- The composer factory used to generate to proxy.public final void writeFields(com.google.gwt.user.rebind.SourceWriter writer)
ProxyOutputter
writeFields
in interface ProxyOutputter
writer
- The SourceWriter
.public final void writeConstructor(com.google.gwt.user.rebind.SourceWriter writer, String className, boolean registerDelayedBind)
ProxyOutputter
writeConstructor
in interface ProxyOutputter
writer
- The SourceWriter
.className
- The class name, which will be the name of the constructor method.registerDelayedBind
- true
if the constructor should register this class towards the
DelayedBindRegistry
,
false
otherwise.public final void writeMethods(com.google.gwt.user.rebind.SourceWriter writer) throws UnableToCompleteException
ProxyOutputter
writeMethods
in interface ProxyOutputter
writer
- The SourceWriter
.UnableToCompleteException
Copyright © 2010-2014 ArcBees. All Rights Reserved.