public class PropertyImplementation
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private PropertyDeclaration |
decl |
private PropertyImplementation |
delegate |
private int |
delegateType |
static int |
DELEGATETYPE_ENCRYPTION |
static int |
DELEGATETYPE_NONE |
static java.lang.String |
encryptedDelegateSuffix |
private BeanField |
field |
private boolean |
implementedBySuperClass |
private java.lang.String |
initializer |
private PropertyMethodDeclaration[] |
syntheticMethods |
Constructor and Description |
---|
PropertyImplementation(PropertyDeclaration decl,
BeanCustomizer customizer) |
PropertyImplementation(PropertyDeclaration decl,
BeanCustomizer customizer,
int delegateType) |
Modifier and Type | Method and Description |
---|---|
private void |
checkIfCustom()
Ensure that if getter is customized, setter is also customized
|
private java.lang.String |
computeInitializer(PropertyDeclaration decl,
java.lang.String dflt) |
private java.lang.String |
computeInitializer(PropertyDeclaration decl,
java.lang.String dflt,
boolean isIntfInitializer)
Returns initializer for field of the given type.
|
java.util.List |
getAnnotationListenerCode(java.lang.String classVar,
java.lang.String currentAnnotationVar) |
private java.lang.String |
getClassName(java.lang.String typeName) |
PropertyDeclaration |
getDeclaration() |
java.lang.String |
getDeferredInitializer(PropertyDeclaration decl) |
PropertyImplementation |
getDelegate() |
int |
getDelegateType() |
BeanField |
getField() |
java.lang.String |
getInitializer() |
protected java.lang.String |
getInitializer(PropertyDeclaration decl) |
protected java.lang.String |
getInitializer(PropertyDeclaration decl,
boolean isIntfInitializer)
Returns initializer for field of the given type.
|
java.lang.String |
getIntfInitializer() |
PropertyMethodDeclaration[] |
getSyntheticMethods() |
boolean |
hasDelegate() |
void |
implementDelegate(PropertyDeclaration delegateDeclaration)
Checks to see if the property needs to delegate and creates the
property that fits the needs of the delegate
|
protected PropertyMethodDeclaration[] |
implementSyntheticMethods(BeanCustomizer customizer) |
boolean |
isDelegate() |
boolean |
isEncryptionDelegate() |
boolean |
isImplementedBySuperClass() |
boolean |
isMarshalledAsString() |
private java.lang.String |
replaceExpressions(java.lang.String exp,
java.lang.String classVar,
java.lang.String annotationVar) |
(package private) void |
setDelegate(PropertyImplementation delegate) |
private PropertyDeclaration decl
private PropertyImplementation delegate
private boolean implementedBySuperClass
private BeanField field
private PropertyMethodDeclaration[] syntheticMethods
private java.lang.String initializer
public static final int DELEGATETYPE_NONE
public static final int DELEGATETYPE_ENCRYPTION
private int delegateType
public static final java.lang.String encryptedDelegateSuffix
public PropertyImplementation(PropertyDeclaration decl, BeanCustomizer customizer)
public PropertyImplementation(PropertyDeclaration decl, BeanCustomizer customizer, int delegateType)
public java.lang.String getInitializer()
public java.lang.String getIntfInitializer()
public boolean isImplementedBySuperClass()
public boolean isMarshalledAsString()
public BeanField getField()
public PropertyMethodDeclaration[] getSyntheticMethods()
protected PropertyMethodDeclaration[] implementSyntheticMethods(BeanCustomizer customizer)
protected java.lang.String getInitializer(PropertyDeclaration decl)
protected java.lang.String getInitializer(PropertyDeclaration decl, boolean isIntfInitializer)
public java.lang.String getDeferredInitializer(PropertyDeclaration decl)
private java.lang.String computeInitializer(PropertyDeclaration decl, java.lang.String dflt)
private java.lang.String computeInitializer(PropertyDeclaration decl, java.lang.String dflt, boolean isIntfInitializer)
private void checkIfCustom()
public PropertyImplementation getDelegate()
void setDelegate(PropertyImplementation delegate)
delegate
- public void implementDelegate(PropertyDeclaration delegateDeclaration)
public PropertyDeclaration getDeclaration()
public int getDelegateType()
public boolean isDelegate()
public boolean isEncryptionDelegate()
public boolean hasDelegate()
private java.lang.String getClassName(java.lang.String typeName)
public java.util.List getAnnotationListenerCode(java.lang.String classVar, java.lang.String currentAnnotationVar)
private java.lang.String replaceExpressions(java.lang.String exp, java.lang.String classVar, java.lang.String annotationVar)