static class NestedCollection.IndexedLoad extends NestedCollection.CollectionLoad
Modifier and Type | Field and Description |
---|---|
private ClassItem |
m_getMethod
Method used to get items by index from collection.
|
private ClassItem |
m_sizeMethod
Method used to get count of items in collection.
|
Constructor and Description |
---|
IndexedLoad(ClassItem size,
boolean doubword,
ClassItem get)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
genLoadDone(ContextMethodBuilder mb)
Generate code to clean up after loading items from collection.
|
protected void |
genLoadInit(ContextMethodBuilder mb)
Generate code to initialize collection for loading items.
|
protected BranchWrapper |
genLoadItem(ContextMethodBuilder mb)
Generate code to load next item from collection.
|
appendPOP, appendSWAP
private final ClassItem m_sizeMethod
private final ClassItem m_getMethod
protected void genLoadInit(ContextMethodBuilder mb) throws JiBXException
NestedCollection.CollectionLoad
NestedCollection.CollectionLoad.genLoadItem(org.jibx.binding.classes.ContextMethodBuilder)
method. The base class implementation does nothing.genLoadInit
in class NestedCollection.CollectionLoad
mb
- method builderJiBXException
- if error in configurationprotected BranchWrapper genLoadItem(ContextMethodBuilder mb) throws JiBXException
NestedCollection.CollectionLoad
NestedCollection.CollectionLoad.genLoadInit(org.jibx.binding.classes.ContextMethodBuilder)
method must be called before
calling this method, and the NestedCollection.CollectionLoad.genLoadDone(org.jibx.binding.classes.ContextMethodBuilder)
method must be
called after the last call to this method. This method must be
overridden by each subclass.genLoadItem
in class NestedCollection.CollectionLoad
mb
- method builderJiBXException
- if error in configurationprotected void genLoadDone(ContextMethodBuilder mb) throws JiBXException
NestedCollection.CollectionLoad
NestedCollection.CollectionLoad.genLoadItem(org.jibx.binding.classes.ContextMethodBuilder)
. The base class
implementation does nothing.genLoadDone
in class NestedCollection.CollectionLoad
mb
- method builderJiBXException
- if error in configuration