public interface JAXXBindingWriter<B extends JAXXBinding>
JAXXBinding creation code from a
DataBinding.
Created: 5 déc. 2009| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(DataBinding binding)
Test if a binding can be treated by the writer.
|
Class<B> |
getType() |
boolean |
isUsed()
Test if the writer was at least used once (says that the method
write(DataBinding, JavaFileGenerator, StringBuilder) was at least invoked once). |
void |
reset()
Reset internal states.
|
void |
write(DataBinding binding,
JavaFileGenerator generator,
StringBuilder buffer)
Generate the creation code of the given
binding and push it in the given buffer. |
boolean accept(DataBinding binding)
binding - the binding to testtrue if this writer can be used to generate binding creation code, false otherwise.boolean isUsed()
write(DataBinding, JavaFileGenerator, StringBuilder) was at least invoked once).true if this writer was usedClass<B> getType()
JAXXBinding to generatevoid write(DataBinding binding, JavaFileGenerator generator, StringBuilder buffer)
binding and push it in the given buffer.
Note: after beean in this method, the isUsed() should always return true.binding - the binding to usegenerator - common generator to build creation codebuffer - where to push creation codevoid reset()
used property which is
internal and must be reset to false for each compiler in order
to know if a type of writer is used for the file.Copyright © 2008–2017 Ultreia.io. All rights reserved.