Examples of Slots


Examples of macromedia.asc.util.Slots

        IntList param_values = null;
        ByteList param_kinds = null;

        {
            ObjectValue obj = cx.scope();
            Slots slots = obj.slots;

            if (slots != null)
            {
                param_types = new IntList(slots.size());
                param_values = new IntList(slots.size()); // default values
                param_kinds = new ByteList(slots.size());
   
                Iterator<Slot> it = slots.iterator();
                //it.next(); // first one is this
                boolean value_required = false;
                for (int i = 1; it.hasNext() && i < max_params; ++i)
                {
                    Slot slot = it.next();
View Full Code Here

Examples of macromedia.asc.util.Slots

     */

    final public int addVariableSlot(Context cx, TypeValue type, int var_index)
    {
        if (slots == null) {
            slots = new Slots();
            // reserve first slot
            //slots.put(nullSlot.id,nullSlot);
        }
        Slot newSlot = new VariableSlot(type, nextSlotID(cx), var_index);
        newSlot.declaredBy = this;
View Full Code Here

Examples of macromedia.asc.util.Slots

    }

    final public int addMethodSlot(Context cx, TypeValue type)
    {
        if (slots == null) {
            slots = new Slots();
            // reserve first slot
            //slots.put(nullSlot.id,nullSlot);
        }
        Slot newSlot = new MethodSlot(type, nextSlotID(cx));
        newSlot.declaredBy = this;
View Full Code Here

Examples of macromedia.asc.util.Slots

   
    final public void addSlot(Slot slot)
    {
        if (slots == null)
        {
            slots = new Slots();
        }
        slots.put(slot);
    }
View Full Code Here

Examples of macromedia.asc.util.Slots

        {
            // clear this map because it points to AST nodes.
            ov.getDeferredClassMap().clear();
           
            // clean slots in the ObjectValue
            final Slots ovSlots = ov.slots;
            if (ovSlots != null)
            {
                for (int i = 0, length = ovSlots.size(); i < length; i++)
                {
                    final Slot slot = ovSlots.get(i);
                   
                    // the following block should be relatively in sync with ContextStatics.cleanSlot()
                    if (slot != null)
                    {
                        slot.setImplNode(null);
                    }
                }
            }
        }

        // for each QName definition, clean each slot in TypeValue slot and its prototype
        if (cx != null && definitions != null)
        {
        for (int i = 0, size = definitions.size(); i < size; i++)
        {
          final TypeValue value = cx.userDefined((definitions.get(i)).toString());
          if (value != null)
          {
                    final Slots valueSlots = value.slots;
                    if (valueSlots != null)
                    {
                        for (int j = 0, length = valueSlots.size(); j < length; j++)
                        {
                            ContextStatics.cleanSlot(valueSlots.get(j));
                        }
                    }
                   
                    final ObjectValue proto = value.prototype;
                    if (proto != null)
                    {
                        final Slots protoSlots = proto.slots;
                        if (protoSlots != null)
                        {
                            for (int j = 0, length = protoSlots.size(); j < length; j++)
                            {
                                ContextStatics.cleanSlot(protoSlots.get(j));
                            }
                        }
                    }
          }
            }
View Full Code Here

Examples of macromedia.asc.util.Slots

     */

    final public int addVariableSlot(Context cx, TypeValue type, int var_index)
    {
        if (slots == null) {
            slots = new Slots();
            // reserve first slot
            //slots.put(nullSlot.id,nullSlot);
        }
        Slot newSlot = new VariableSlot(type, nextSlotID(cx), var_index);
        newSlot.declaredBy = this;
View Full Code Here

Examples of macromedia.asc.util.Slots

    }

    final public int addMethodSlot(Context cx, TypeValue type)
    {
        if (slots == null) {
            slots = new Slots();
            // reserve first slot
            //slots.put(nullSlot.id,nullSlot);
        }
        Slot newSlot = new MethodSlot(type, nextSlotID(cx));
        newSlot.declaredBy = this;
View Full Code Here

Examples of macromedia.asc.util.Slots

   
    final public void addSlot(Slot slot)
    {
        if (slots == null)
        {
            slots = new Slots();
        }
        slots.put(slot);
    }
View Full Code Here

Examples of macromedia.asc.util.Slots

        IntList param_values = null;
        ByteList param_kinds = null;

        {
            ObjectValue obj = cx.scope();
            Slots slots = obj.slots;

            if (slots != null)
            {
                param_types = new IntList(slots.size());
                param_values = new IntList(slots.size()); // default values
                param_kinds = new ByteList(slots.size());
   
                Iterator<Slot> it = slots.iterator();
                //it.next(); // first one is this
                boolean value_required = false;
                for (int i = 1; it.hasNext() && i < max_params; ++i)
                {
                    Slot slot = it.next();
View Full Code Here

Examples of org.infoglue.deliver.util.Slots

  {
    try
    {
      if(elements != null && visibleElementsId != null)
      {
        Slots slots = new Slots(elements, currentSlot, slotSize, slotCount);
        setResultAttribute(visibleElementsId, slots.getVisibleElements());
        setResultAttribute(visibleSlotsId, slots.getVisibleSlots());
        setResultAttribute(lastSlotId, slots.getLastSlot());
      }
      else if(maxSlots > 0)
      {
        Slots slots = new Slots(currentSlot, slotSize, slotCount, maxSlots);
        setResultAttribute(visibleSlotsId, slots.getVisibleSlots());
        setResultAttribute(lastSlotId, slots.getLastSlot());
      }
      else
        throw new JspTagException("Either elements/visibleElementsId or maxSlots must be specified.");
    }
    catch(Exception e)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.