Class NestedCollection.CollectionBase

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

abstract static class NestedCollection.CollectionBase extends 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

    Fields
    Modifier and Type
    Field
    Description
    private final boolean
    Double word value flag.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    CollectionBase(boolean doubword)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected 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).

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • m_isDoubleWord

      private final boolean m_isDoubleWord
      Double word value flag.
  • Constructor Details

    • CollectionBase

      protected CollectionBase(boolean doubword)
      Constructor.
      Parameters:
      doubword - double word value flag
  • Method Details

    • 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