Class TokenLookup
java.lang.Object
com.oracle.js.parser.TokenLookup
-
Method Summary
Modifier and TypeMethodDescriptionstatic TokenTypelookupKeyword(String content, int position, int length) Lookup keyword.static TokenTypelookupOperator(char ch0, char ch1, char ch2, char ch3, int ecmaScriptVersion) Lookup operator.
-
Method Details
-
lookupKeyword
-
lookupOperator
public static TokenType lookupOperator(char ch0, char ch1, char ch2, char ch3, int ecmaScriptVersion) Lookup operator.- Parameters:
ch0- 0th char in streamch1- 1st char in streamch2- 2nd char in streamch3- 3rd char in stream- Returns:
- the token type for the operator
-