org.jibx.binding.def
Class NestedCollection.CollectionBase

java.lang.Object
  extended by org.jibx.binding.def.NestedCollection.CollectionBase
Direct Known Subclasses:
NestedCollection.CollectionLoad, NestedCollection.CollectionStore
Enclosing class:
NestedCollection

abstract static class NestedCollection.CollectionBase
extends java.lang.Object

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
private  boolean m_isDoubleWord
          Double word value flag.
 
Constructor Summary
protected NestedCollection.CollectionBase(boolean doubword)
          Constructor.
 
Method Summary
protected  void appendPOP(MethodBuilder mb)
          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 appendSWAP(MethodBuilder mb)
          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).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_isDoubleWord

private final boolean m_isDoubleWord
Double word value flag.

Constructor Detail

NestedCollection.CollectionBase

protected NestedCollection.CollectionBase(boolean doubword)
Constructor.

Parameters:
doubword - double word value flag
Method Detail

appendSWAP

protected void appendSWAP(MethodBuilder mb)
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

protected void appendPOP(MethodBuilder mb)
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


Project Web Site