lojix/logic/src/main/com/thesett/aima/logic/fol/isoprologparser/TokenSource.java
public Token peek()
    {
        if (token.next == null)
        {
            token.next = tokenManager.getNextToken();
        }

        return token.next;
    }
public Token peek()
    {
        if (token.next == null)
        {
            token.next = tokenManager.getNextToken();
        }

        return token.next;
    }
public Token peek ( ) { if ( token . next == null ) { token . next = tokenManager . getNextToken ( ) ; } return token . next ; }
Retrieves, but does not remove, the head token, returning <tt>null</tt> if there are no more tokens.

@return The head token, returning <tt>null</tt> if there are no more tokens.
Retrieves but does not remove the head token returning <tt > null< / tt > if there are no more tokens .