Class TokenList
java.lang.Object
org.apache.olingo.odata2.core.uri.expression.TokenList
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendEdmTypedToken(int position, TokenKind kind, String uriLiteral, EdmLiteral javaLiteral) Append UriLiteral Token to tokens parametervoidappendToken(int position, TokenKind kind, char charValue) Append CharValue Token to tokens parametervoidappendToken(int position, TokenKind kind, String uriLiteral) Append StringValue Token to tokens parameterelementAt(int index) expectToken(String literal) expectToken(String literal, boolean throwInternal) expectToken(TokenKind comma) expectToken(TokenKind comma, boolean throwFilterExpression) booleanhasNext()booleannext()voidremove()voidskip()intMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
TokenList
public TokenList()
-
-
Method Details
-
appendToken
Append StringValue Token to tokens parameter- Parameters:
position- Position of parsed tokenkind- Kind of parsed tokenuriLiteral- String value of parsed token
-
appendToken
Append CharValue Token to tokens parameter- Parameters:
position- Position of parsed tokenkind- Kind of parsed tokencharValue- Char value of parsed token
-
appendEdmTypedToken
public void appendEdmTypedToken(int position, TokenKind kind, String uriLiteral, EdmLiteral javaLiteral) Append UriLiteral Token to tokens parameter- Parameters:
position- Position of parsed tokenkind- Kind of parsed tokenuriLiteral- URI literaljavaLiteral- EdmLiteral of parsed token containing type and value of UriLiteral
-
lookToken
-
lookPrevToken
-
hasTokens
public boolean hasTokens() -
tokenCount
public int tokenCount() -
expectToken
- Throws:
TokenizerExpectError
-
expectToken
public Token expectToken(TokenKind comma, boolean throwFilterExpression) throws ExpressionParserInternalError - Throws:
ExpressionParserInternalError
-
expectToken
- Throws:
TokenizerExpectError
-
expectToken
public Token expectToken(String literal, boolean throwInternal) throws ExpressionParserInternalError - Throws:
ExpressionParserInternalError
-
skip
public void skip() -
hasNext
public boolean hasNext() -
next
-
remove
public void remove() -
elementAt
-