Package jaxx.compiler.binding.writers
Class SimpleJAXXObjectBindingWriter
java.lang.Object
jaxx.compiler.binding.writers.AbstractJAXXBindingWriter<SimpleJAXXObjectBinding>
jaxx.compiler.binding.writers.SimpleJAXXObjectBindingWriter
- All Implemented Interfaces:
JAXXBindingWriter<SimpleJAXXObjectBinding>
public class SimpleJAXXObjectBindingWriter extends AbstractJAXXBindingWriter<SimpleJAXXObjectBinding>
Created: 5 déc. 2009
- Version:
- $Revision$ Mise a jour: $Date$ par : $Author$
- Author:
- Tony Chemit - chemit@codelutin.com
-
Field Summary
Fields Modifier and Type Field Description protected booleanused -
Constructor Summary
Constructors Constructor Description SimpleJAXXObjectBindingWriter() -
Method Summary
Modifier and Type Method Description booleanaccept(DataBinding binding)Test if a binding can be treated by the writer.protected java.lang.StringgetConstructorParams(DataBinding binding, DataListener[] trackers)voidwrite(DataBinding binding, JavaFileGenerator generator, java.lang.StringBuilder buffer)Generate the creation code of the givenbindingand push it in the givenbuffer.Methods inherited from class jaxx.compiler.binding.writers.AbstractJAXXBindingWriter
getType, isUsed, reset, writeInvocationMethodMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
used
protected boolean used
-
-
Constructor Details
-
SimpleJAXXObjectBindingWriter
public SimpleJAXXObjectBindingWriter()
-
-
Method Details
-
accept
Description copied from interface:JAXXBindingWriterTest if a binding can be treated by the writer.- Parameters:
binding- the binding to test- Returns:
trueif this writer can be used to generate binding creation code,falseotherwise.
-
getConstructorParams
- Specified by:
getConstructorParamsin classAbstractJAXXBindingWriter<SimpleJAXXObjectBinding>
-
write
public void write(DataBinding binding, JavaFileGenerator generator, java.lang.StringBuilder buffer)Description copied from interface:JAXXBindingWriterGenerate the creation code of the givenbindingand push it in the givenbuffer. Note: after beean in this method, theJAXXBindingWriter.isUsed()should always returntrue.- Parameters:
binding- the binding to usegenerator- common generator to build creation codebuffer- where to push creation code
-