IElementType () { if (myIndex >= myBufferEnd) return null; else if (Character.isLetter(myBuffer.charAt(myIndex))) return LETTER; else if (Character.isDigit(myBuffer.charAt(myIndex))) return DIGIT; else if (Character.isWhitespace(myBuffer.charAt(myIndex))) return TokenType.WHITE_SPACE; else if (myBuffer.charAt(myIndex) == '#') return COMMENT; else return OTHER; }