Package org.jibx.binding.def
Class NestedCollection.AddStore
java.lang.Object
org.jibx.binding.def.NestedCollection.CollectionBase
org.jibx.binding.def.NestedCollection.CollectionStore
org.jibx.binding.def.NestedCollection.AddStore
- Enclosing class:
NestedCollection
Collection item store strategy for collection with add method.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ClassItem
Method used to add item to collection.private final boolean
Flag for method returns result. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Generate code to store next item to collection.Methods inherited from class org.jibx.binding.def.NestedCollection.CollectionStore
genStoreDone, genStoreInit
Methods inherited from class org.jibx.binding.def.NestedCollection.CollectionBase
appendPOP, appendSWAP
-
Field Details
-
m_addMethod
Method used to add item to collection. -
m_isReturned
private final boolean m_isReturnedFlag for method returns result.
-
-
Constructor Details
-
AddStore
AddStore(ClassItem add, boolean doubword, boolean ret) Constructor.- Parameters:
add
- method used to add item to collectiondoubword
- double word value flagret
- value returned by add flag
-
-
Method Details
-
genStoreItem
Description copied from class:NestedCollection.CollectionStore
Generate code to store next item to collection. This generates the necessary code for handling the store operation, removing the item from the stack. TheNestedCollection.CollectionStore.genStoreInit(org.jibx.binding.classes.ContextMethodBuilder)
method must be called before calling this method, and theNestedCollection.CollectionStore.genStoreDone(org.jibx.binding.classes.ContextMethodBuilder)
method must be called after the last call to this method. This method must be overridden by each subclass.- Specified by:
genStoreItem
in classNestedCollection.CollectionStore
- Parameters:
mb
- method builder- Throws:
JiBXException
- if error in configuration
-