Package java.util

Examples of java.util.IdentityHashMap


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


        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

   */
  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

    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

    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

    }

    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

    private static Object recursionCheck = new Object();

    public CopyState(TypeRepository rep) {
        this.rep = rep;
        this.copied = new IdentityHashMap();
        this.recursionResolverMap = new IdentityHashMap();
    }
View Full Code Here

     * Create a new BeanValidationContext instance.
     * @param listener
     */
    @SuppressWarnings("unchecked")
    public BeanValidationContext(T listener) {
        this(listener, new IdentityHashMap());
    }
View Full Code Here

    /**
     * @see org.apache.derby.iapi.sql.conn.LanguageConnectionContext#getPrintedObjectsMap
     */
    public Map getPrintedObjectsMap() {
        if (printedObjectsMap == null) {
            printedObjectsMap = new IdentityHashMap();
        }
        return printedObjectsMap;
    }
View Full Code Here

    public DependencyTreeResolutionListener( Logger logger )
    {
        this.logger = logger;

        parentNodes = new Stack();
        nodesByArtifact = new IdentityHashMap();
        rootNode = null;
        currentNode = null;
    }
View Full Code Here

TOP

Related Classes of java.util.IdentityHashMap

Copyright © 2018 www.massapicom. 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.