Package java.lang

Examples of java.lang.Integer$BoxedValues


        list.ensureCapacity(minCapacity);

        int needToAdd = minCapacity - list.size();
        if (needToAdd > 0) {
            for (int i = 0; i < needToAdd; i++) {
                list.add(new Integer(fillValue));
            }
        }
    }
View Full Code Here


     *                 we wish to set.
     *  @param  value  The integer value that we assign to the
     *                 selected element of the list.
     */
    public void set(int index, int value) {
        list.set(index, new Integer(value));
    }
View Full Code Here

     *
     *  @param  value  The integer value that we assign to the
     *                 element that we are appending to the list.
     */
    public void add(int value) {
        list.add(new Integer(value));
    }
View Full Code Here

        list.ensureCapacity(minCapacity);

        int needToAdd = minCapacity - list.size();
        if (needToAdd > 0) {
            for (int i = 0; i < needToAdd; i++) {
                list.add(new Integer(fillValue));
            }
        }
    }
View Full Code Here

     *                 we wish to set.
     *  @param  value  The integer value that we assign to the
     *                 selected element of the list.
     */
    public void set(int index, int value) {
        list.set(index, new Integer(value));
    }
View Full Code Here

     *
     *  @param  value  The integer value that we assign to the
     *                 element that we are appending to the list.
     */
    public void add(int value) {
        list.add(new Integer(value));
    }
View Full Code Here

    public boolean isEmpty() {
  return _resultStack.empty();
    }

    public void pushResult(int c) {
  _resultStack.push(new Integer(c));
    }
View Full Code Here

      h.clear(); // h will map old to new class name
      for (int i=0; i<ccls.length; i++)
  if (clsA.get(ccls[i])) // a split class
    if (nfa.m_edge==i ||
        nfa.m_edge==CNfa.CCL && nfa.m_set.contains(i)) { // on A side
      Integer split = new Integer(ccls[i]);
      if (!h.containsKey(split))
        h.put(split, new Integer(nextcls++)); // make new class
      ccls[i] = ((Integer)h.get(split)).intValue();
    }
    }
    System.out.println();
    System.out.println("NFA has "+nextcls+" distinct character classes.");
View Full Code Here

  m_in_quote = false;
  m_in_ccl = false;

  /* Initialize hashtable for lexer states. */
  m_states = new Hashtable();
  m_states.put(new String("YYINITIAL"),new Integer(m_states.size()));

  /* Initialize hashtable for lexical macros. */
  m_macros = new Hashtable();

  /* Initialize variables for lexer options. */
 
View Full Code Here

  /* Create input buffer class. */
  m_input = new CInput(m_instream);

  /* Initialize character hash table. */
  m_tokens = new Hashtable();
  m_tokens.put(new Character('$'),new Integer(AT_EOL));
  m_tokens.put(new Character('('),new Integer(OPEN_PAREN));
  m_tokens.put(new Character(')'),new Integer(CLOSE_PAREN));
  m_tokens.put(new Character('*'),new Integer(CLOSURE));
  m_tokens.put(new Character('+'),new Integer(PLUS_CLOSE));
  m_tokens.put(new Character('-'),new Integer(DASH));
  m_tokens.put(new Character('.'),new Integer(ANY));
  m_tokens.put(new Character('?'),new Integer(OPTIONAL));
  m_tokens.put(new Character('['),new Integer(CCL_START));
  m_tokens.put(new Character(']'),new Integer(CCL_END));
  m_tokens.put(new Character('^'),new Integer(AT_BOL));
  m_tokens.put(new Character('{'),new Integer(OPEN_CURLY));
  m_tokens.put(new Character('|'),new Integer(OR));
  m_tokens.put(new Character('}'),new Integer(CLOSE_CURLY));
     
  /* Initialize spec structure. */
  m_spec = new CSpec(this);
 
  /* Nfa to dfa converter. */
 
View Full Code Here

TOP

Related Classes of java.lang.Integer$BoxedValues

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.