@@ -0,0 +1,1006 @@
+package org.ojlang.models;%0A%0Aimport org.ojlang.models.contracts.Dictionary;%0Aimport org.ojlang.models.contracts.Memory;%0Aimport org.ojlang.models.contracts.ParamStack;%0Aimport org.ojlang.models.contracts.ReturnStack;%0A%0A/**%0A * A collection of factory methods to create Oj runtime models.%0A *%0A * @author Bahman Movaqar %5BBahman AT BahmanM.com%5D%0A */%0Afinal public class ModelFactory %7B%0A%0A  /**%0A   * Creates a new memory.%0A   *%0A   * @return a new memory%0A   */%0A  static public Memory createMem() %7B%0A    return new MemoryImpl();%0A  %7D%0A%0A  /**%0A   * Creates a new parameter stack.%0A   *%0A   * @return a new parameter stack.%0A   */%0A  static public ParamStack createPS() %7B%0A    return new ParamStackImpl();%0A  %7D%0A%0A  /**%0A   * Creates a new return stack.%0A   *%0A   * @return a new return stack.%0A   */%0A  static public ReturnStack createRS() %7B%0A    return new ReturnStackImpl();%0A  %7D%0A%0A  /**%0A   * Creates a new dictionary.%0A   *%0A   * @return a new dictionary.%0A   */%0A  static public Dictionary createDict() %7B%0A    return new DictionaryImpl();%0A  %7D%0A%0A%7D%0A

create a model factory class