Java Iterator from getSigLinePastOtherAnnotations(String selfCmprurrentLine, Iterator line_itr)

Here you can find the source of getSigLinePastOtherAnnotations(String selfCmprurrentLine, Iterator line_itr)

Description

get Sig Line Past Other Annotations

License

LGPL

Declaration

private static final String getSigLinePastOtherAnnotations(String selfCmprurrentLine,
            Iterator<String> line_itr) 

Method Source Code


//package com.java2s;
//License from project: LGPL 

import java.util.Iterator;

public class Main {
    private static final String getSigLinePastOtherAnnotations(String selfCmprurrentLine,
            Iterator<String> line_itr) {
        while (selfCmprurrentLine.trim().startsWith("@")) { //The 1st call to trim is redundant
            //This passes through other annotation-only lines
            //that are between @Composition* and the signature
            selfCmprurrentLine = line_itr.next(); //CI !hasNext()
        }/*from w  w  w.j av a2 s  . c om*/
        return selfCmprurrentLine;
    }
}

Related

  1. getLast(Iterator iterator)
  2. getList(Iterator iterator)
  3. getMaxLength(Iterator i)
  4. getPerplexity(Iterator probStream)
  5. getPersistentKeysIterator(HashMap hashMap)
  6. getSomeElements(Iterator iterator, int limit)
  7. getSubList(Iterator iterator, int startIndex, int numberOfItems)
  8. getTypedIterator(Iterator it, Class clz)
  9. toIterator(Enumeration enumeration)