protected static class PojoDescriptorGenerator.StatefulPropertyGenerator extends Object
generate a
PojoPropertyDescriptor.| Modifier and Type | Field and Description |
|---|---|
private com.google.gwt.user.rebind.SourceWriter |
sourceWriter |
private PojoDescriptor<?> |
superDescriptor |
private boolean |
superDescriptorBlockGenerated |
private boolean |
superPropertyDescriptorBlockGenerated |
private boolean |
superPropertyVariableDeclated |
private com.google.gwt.core.ext.typeinfo.JClassType |
superType |
| Constructor and Description |
|---|
StatefulPropertyGenerator(com.google.gwt.user.rebind.SourceWriter sourceWriter,
com.google.gwt.core.ext.typeinfo.JClassType superType)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
generateAccessorRegistrationStatement(PojoPropertyAccessor accessor)
Generates the source-code of the statement to register a
PojoPropertyAccessor. |
protected void |
generateAccessorStatement(PojoPropertyDescriptor propertyDescriptor,
PojoPropertyAccessorMode<?> mode,
PojoPropertyDescriptor superPropertyDescriptor)
Generates the source-code of the statement to register a
PojoPropertyAccessor. |
void |
generatePropertyDescriptorBlock(PojoPropertyDescriptor propertyDescriptor)
Generates the source-code to rebuild the given
PojoPropertyDescriptor. |
protected void |
generateSuperDescriptorBlockIfNotAlreadyDone()
This method generates the source-code block to get the
PojoDescriptor for the
superType so things can be reused from super-classes to reduce memory consumption. |
protected void |
generateSuperPropertyDescriptorBlockIfNotAlreadyDone(PojoPropertyDescriptor propertyDescriptor)
This method generates the source-code block to get the
PojoPropertyDescriptor for the
superType so things can be reused from super-classes to reduce memory consumption. |
private final com.google.gwt.user.rebind.SourceWriter sourceWriter
private final com.google.gwt.core.ext.typeinfo.JClassType superType
private final PojoDescriptor<?> superDescriptor
private boolean superDescriptorBlockGenerated
private boolean superPropertyVariableDeclated
private boolean superPropertyDescriptorBlockGenerated
public StatefulPropertyGenerator(com.google.gwt.user.rebind.SourceWriter sourceWriter,
com.google.gwt.core.ext.typeinfo.JClassType superType)
sourceWriter - is the SourceWriter where to write the
source code to.superType - is the supported super-type for which the descriptor may be reused in the generated
code or null for none.protected void generateSuperDescriptorBlockIfNotAlreadyDone()
PojoDescriptor for the
superType so things can be reused from super-classes to reduce memory consumption.protected void generateSuperPropertyDescriptorBlockIfNotAlreadyDone(PojoPropertyDescriptor propertyDescriptor)
PojoPropertyDescriptor for the
superType so things can be reused from super-classes to reduce memory consumption.propertyDescriptor - is the PojoPropertyDescriptor.public void generatePropertyDescriptorBlock(PojoPropertyDescriptor propertyDescriptor)
PojoPropertyDescriptor.propertyDescriptor - is the PojoPropertyDescriptor.protected void generateAccessorStatement(PojoPropertyDescriptor propertyDescriptor, PojoPropertyAccessorMode<?> mode, PojoPropertyDescriptor superPropertyDescriptor)
PojoPropertyAccessor.propertyDescriptor - is the PojoPropertyDescriptor to generate in the source.superPropertyDescriptor - is the PojoPropertyDescriptor of the super-type or
null if NOT available.mode - is the PojoPropertyAccessorMode - either PojoPropertyAccessorNonArgMode.GET
or PojoPropertyAccessorOneArgMode.SET.protected void generateAccessorRegistrationStatement(PojoPropertyAccessor accessor)
PojoPropertyAccessor.accessor - is the PojoPropertyAccessor.Copyright © 2001–2015 mmm-Team. All rights reserved.