Examples of IdentityHashMap


Examples of com.sleepycat.je.utilint.IdentityHashMap

        Format proxiedFormat = format.getProxiedFormat();
        if (proxiedFormat != null) {
            format = proxiedFormat;
        }
        if (converted == null) {
            converted = new IdentityHashMap();
        }
        return format.convertRawObject(this, false, o, converted);
    }
View Full Code Here

Examples of com.sleepycat.je.utilint.IdentityHashMap

                Object o2 = null;
                if (!rawAccess) {
                    if (converted != null) {
                        o2 = converted.get(o);
                    } else {
                        converted = new IdentityHashMap();
                    }
                }
                if (o2 != null) {
                    o = o2;
                } else {
View Full Code Here

Examples of freemarker.ext.util.IdentityHashMap

                    if(retval != null) {
                        return retval;
                    }
                } else {
                    recursionStops =
                        new IdentityHashMap();
                }
                TemplateSequenceModel seq = (TemplateSequenceModel)model;
                Class componentType = hint.getComponentType();
                Object array = Array.newInstance(componentType, seq.size());
                recursionStops.put(model, array);
View Full Code Here

Examples of freemarker.ext.util.IdentityHashMap

                    if(retval != null) {
                        return retval;
                    }
                } else {
                    recursionStops =
                        new IdentityHashMap();
                }
                TemplateSequenceModel seq = (TemplateSequenceModel)model;
                Class componentType = hint.getComponentType();
                Object array = Array.newInstance(componentType, seq.size());
                recursionStops.put(model, array);
View Full Code Here

Examples of java.util.IdentityHashMap

    private Map valueToName;
    private Map nameToCount;
   
    public NameGenerator() {
        valueToName = new IdentityHashMap();
        nameToCount = new HashMap();
    }
View Full Code Here

Examples of java.util.IdentityHashMap

        public AnonymClassComparator(IType javaElement,
            SourceOffsetComparator sourceComparator) {
            this.sourceComparator = sourceComparator;
            is50OrHigher = is50OrHigher(javaElement);
            topAncestorType = (IType) getLastAncestor(javaElement, IJavaElement.TYPE);
            map = new IdentityHashMap();
        }
View Full Code Here

Examples of java.util.IdentityHashMap

   */
  public boolean addRef(Object object)
    throws IOException
  {
    if (_refs == null)
      _refs = new IdentityHashMap();

    Integer ref = (Integer) _refs.get(object);

    if (ref != null) {
      int value = ref.intValue();
View Full Code Here

Examples of java.util.IdentityHashMap

    this.content= content;
    this.lineInfo= lineInfo;
    this.nodeInfos= nodeInfos;
    this.tokenScanner= null;
    this.currentEdit= rootEdit;
    this.sourceCopyInfoToEdit= new IdentityHashMap();
    this.sourceCopyEndNodes= new Stack();
   
    this.formatter= new ASTRewriteFormatter(nodeInfos, eventStore, options, lineDelim);
   
    this.extendedSourceRangeComputer = extendedSourceRangeComputer;
View Full Code Here

Examples of java.util.IdentityHashMap

    return null
  }
 
  private void setPlaceholderData(ASTNode node, PlaceholderData data) {
    if (this.placeholderNodes == null) {
      this.placeholderNodes= new IdentityHashMap();
    }
    this.placeholderNodes.put(node, data);   
  }
View Full Code Here

Examples of java.util.IdentityHashMap

    }

    public YARVMachine.InstructionSequence getInstructionSequence(String name, String filename, String level) {
        iseq = new YARVMachine.InstructionSequence(runtime, name, filename, level);
        List l = new ArrayList();
        Map jumps = new IdentityHashMap();
        Map labels = new IdentityHashMap();
        int real=0;
        for (LinkElement elm = current_iseq; elm != null; elm = elm.next) {
            if (elm instanceof Insn) {
                Insn i = (Insn)elm;
                if (isJump(i.i.bytecode)) jumps.put(i, i.i._tmp);

                l.add(i.i);
                real++;
            } else if (elm instanceof Label) {
                labels.put(elm, new Integer(real+1));
            }
        }
        for(Iterator iter = jumps.keySet().iterator();iter.hasNext();) {
            Insn k = (Insn)iter.next();
            k.i.l_op0 = ((Integer)labels.get(jumps.get(k))).intValue() - 1;
            k.i._tmp = null;
        }

        debugs("instructions: " + l);
        iseq.body = (YARVMachine.Instruction[])l.toArray(new YARVMachine.Instruction[l.size()]);
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.