MCPcopy Index your code
hub / github.com/beanshell/beanshell / CastLookahead

Method CastLookahead

src/bsh/Parser.java:1986–2040  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1984
1985// This production is to determine lookahead only.
1986 final public void CastLookahead() throws ParseException {
1987 if (jj_2_10(2)) {
1988 jj_consume_token(LPAREN);
1989 PrimitiveType();
1990 } else if (jj_2_11(2147483647)) {
1991 jj_consume_token(LPAREN);
1992 AmbiguousName();
1993 jj_consume_token(LBRACKET);
1994 jj_consume_token(RBRACKET);
1995 } else {
1996 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1997 case LPAREN:
1998 jj_consume_token(LPAREN);
1999 AmbiguousName();
2000 jj_consume_token(RPAREN);
2001 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2002 case TILDE:
2003 jj_consume_token(TILDE);
2004 break;
2005 case BANG:
2006 jj_consume_token(BANG);
2007 break;
2008 case LPAREN:
2009 jj_consume_token(LPAREN);
2010 break;
2011 case IDENTIFIER:
2012 jj_consume_token(IDENTIFIER);
2013 break;
2014 case NEW:
2015 jj_consume_token(NEW);
2016 break;
2017 case FALSE:
2018 case NULL:
2019 case TRUE:
2020 case VOID:
2021 case INTEGER_LITERAL:
2022 case FLOATING_POINT_LITERAL:
2023 case CHARACTER_LITERAL:
2024 case STRING_LITERAL:
2025 case LONG_STRING_LITERAL:
2026 Literal();
2027 break;
2028 default:
2029 jj_la1[54] = jj_gen;
2030 jj_consume_token(-1);
2031 throw new ParseException();
2032 }
2033 break;
2034 default:
2035 jj_la1[55] = jj_gen;
2036 jj_consume_token(-1);
2037 throw new ParseException();
2038 }
2039 }
2040 }
2041
2042 final public void PostfixExpression() throws ParseException {
2043 Token t = null;

Callers

nothing calls this directly

Calls 7

jj_2_10Method · 0.95
jj_consume_tokenMethod · 0.95
PrimitiveTypeMethod · 0.95
jj_2_11Method · 0.95
AmbiguousNameMethod · 0.95
jj_ntkMethod · 0.95
LiteralMethod · 0.95

Tested by

no test coverage detected