Package org.jibx.binding.def
Class NestedCollection.CollectionBase
java.lang.Object
org.jibx.binding.def.NestedCollection.CollectionBase
- Direct Known Subclasses:
NestedCollection.CollectionLoad
,NestedCollection.CollectionStore
- Enclosing class:
NestedCollection
Base class for collection item load strategy. The implementation class
must handle the appropriate form of code generation for the type of
collection being used.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Append the appropriate instruction to pop the item value (which may be one or two words, as configured for this collection) from the top of the stack.protected void
Append the appropriate instruction to swap the top of the stack (which must be a single-word value) with an item value (which may be one or two words, as configured for this collection).
-
Field Details
-
m_isDoubleWord
private final boolean m_isDoubleWordDouble word value flag.
-
-
Constructor Details
-
CollectionBase
protected CollectionBase(boolean doubword) Constructor.- Parameters:
doubword
- double word value flag
-
-
Method Details
-
appendSWAP
Append the appropriate instruction to swap the top of the stack (which must be a single-word value) with an item value (which may be one or two words, as configured for this collection).- Parameters:
mb
- method
-
appendPOP
Append the appropriate instruction to pop the item value (which may be one or two words, as configured for this collection) from the top of the stack.- Parameters:
mb
- method
-