157
// in src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/EcmascriptParser.java
protected AstRoot parseEcmascript(final Reader reader) throws ParseException {
final CompilerEnvirons compilerEnvirons = new CompilerEnvirons();
compilerEnvirons.setRecordingComments(parserOptions.isRecordingComments());
compilerEnvirons.setRecordingLocalJsDocComments(parserOptions.isRecordingLocalJsDocComments());
compilerEnvirons.setLanguageVersion(parserOptions.getRhinoLanguageVersion().getVersion());
compilerEnvirons.setIdeMode(true); // Scope's don't appear to get set right without this
// TODO Fix hardcode
final ErrorReporter errorReporter = new ErrorCollector();
final Parser parser = new Parser(compilerEnvirons, errorReporter);
nodeCache.clear();
try {
// TODO Fix hardcode
final String sourceURI = "unknown";
// TODO Fix hardcode
final int lineno = 0;
return parser.parse(reader, sourceURI, lineno);
} catch (final IOException e) {
throw new ParseException(e);
}
}
// in src/main/java/net/sourceforge/pmd/lang/ecmascript/Ecmascript3Parser.java
public Node parse(String fileName, Reader source) throws ParseException {
return new net.sourceforge.pmd.lang.ecmascript.ast.EcmascriptParser((EcmascriptParserOptions)parserOptions).parse(source);
}
// in src/main/java/net/sourceforge/pmd/lang/xml/ast/XmlParser.java
protected Document parseDocument(Reader reader) throws ParseException {
nodeCache.clear();
try {
DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();
documentBuilderFactory.setCoalescing(parserOptions.isCoalescing());
documentBuilderFactory.setExpandEntityReferences(parserOptions.isExpandEntityReferences());
documentBuilderFactory.setIgnoringComments(parserOptions.isIgnoringComments());
documentBuilderFactory.setIgnoringElementContentWhitespace(parserOptions.isIgnoringElementContentWhitespace());
documentBuilderFactory.setNamespaceAware(parserOptions.isNamespaceAware());
documentBuilderFactory.setValidating(parserOptions.isValidating());
documentBuilderFactory.setXIncludeAware(parserOptions.isXincludeAware());
DocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder();
Document document = documentBuilder.parse(new InputSource(reader));
return document;
} catch (ParserConfigurationException e) {
throw new ParseException(e);
} catch (SAXException e) {
throw new ParseException(e);
} catch (IOException e) {
throw new ParseException(e);
}
}
// in src/main/java/net/sourceforge/pmd/lang/xml/XmlParser.java
public Node parse(String fileName, Reader source) throws ParseException {
return new net.sourceforge.pmd.lang.xml.ast.XmlParser((XmlParserOptions) parserOptions).parse(source);
}
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
final public ASTCompilationUnit CompilationUnit() throws ParseException {
/*@bgen(jjtree) CompilationUnit */
ASTCompilationUnit jjtn000 = new ASTCompilationUnit(this, JJTCOMPILATIONUNIT);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
Prolog();
Content();
jj_consume_token(0);
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
{if (true) return jjtn000;}
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
throw new RuntimeException("Missing return statement in function");
}
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
final public void Prolog() throws ParseException {
if (jj_2_1(2147483647)) {
label_1:
while (true) {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case COMMENT_START:
case JSP_COMMENT_START:
;
break;
default:
jj_la1[0] = jj_gen;
break label_1;
}
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case COMMENT_START:
CommentTag();
break;
case JSP_COMMENT_START:
JspComment();
break;
default:
jj_la1[1] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
}
Declaration();
} else {
;
}
if (jj_2_2(2147483647)) {
label_2:
while (true) {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case COMMENT_START:
case JSP_COMMENT_START:
;
break;
default:
jj_la1[2] = jj_gen;
break label_2;
}
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case COMMENT_START:
CommentTag();
break;
case JSP_COMMENT_START:
JspComment();
break;
default:
jj_la1[3] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
}
DoctypeDeclaration();
} else {
;
}
}
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
final public void Content() throws ParseException {
/*@bgen(jjtree) Content */
ASTContent jjtn000 = new ASTContent(this, JJTCONTENT);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case EL_EXPRESSION:
case UNPARSED_TEXT:
Text();
break;
case TAG_START:
case COMMENT_START:
case CDATA_START:
case JSP_COMMENT_START:
case JSP_DECLARATION_START:
case JSP_EXPRESSION_START:
case JSP_SCRIPTLET_START:
case JSP_DIRECTIVE_START:
ContentElementPossiblyWithText();
break;
default:
jj_la1[4] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
label_3:
while (true) {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case TAG_START:
case COMMENT_START:
case CDATA_START:
case JSP_COMMENT_START:
case JSP_DECLARATION_START:
case JSP_EXPRESSION_START:
case JSP_SCRIPTLET_START:
case JSP_DIRECTIVE_START:
;
break;
default:
jj_la1[5] = jj_gen;
break label_3;
}
ContentElementPossiblyWithText();
}
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
final public void ContentElementPossiblyWithText() throws ParseException {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case COMMENT_START:
CommentTag();
break;
case TAG_START:
Element();
break;
case CDATA_START:
CData();
break;
case JSP_COMMENT_START:
JspComment();
break;
case JSP_DECLARATION_START:
JspDeclaration();
break;
case JSP_EXPRESSION_START:
JspExpression();
break;
case JSP_SCRIPTLET_START:
JspScriptlet();
break;
case JSP_DIRECTIVE_START:
JspDirective();
break;
default:
jj_la1[6] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case EL_EXPRESSION:
case UNPARSED_TEXT:
Text();
break;
default:
jj_la1[7] = jj_gen;
;
}
}
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
final public void JspDirective() throws ParseException {
/*@bgen(jjtree) JspDirective */
ASTJspDirective jjtn000 = new ASTJspDirective(this, JJTJSPDIRECTIVE);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);Token t;
try {
jj_consume_token(JSP_DIRECTIVE_START);
t = jj_consume_token(JSP_DIRECTIVE_NAME);
jjtn000.setName(t.image);
label_4:
while (true) {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case JSP_DIRECTIVE_ATTRIBUTE_NAME:
;
break;
default:
jj_la1[8] = jj_gen;
break label_4;
}
JspDirectiveAttribute();
}
jj_consume_token(JSP_DIRECTIVE_END);
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
final public void JspDirectiveAttribute() throws ParseException {
/*@bgen(jjtree) JspDirectiveAttribute */
ASTJspDirectiveAttribute jjtn000 = new ASTJspDirectiveAttribute(this, JJTJSPDIRECTIVEATTRIBUTE);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);Token t;
try {
t = jj_consume_token(JSP_DIRECTIVE_ATTRIBUTE_NAME);
jjtn000.setName(t.image);
jj_consume_token(JSP_DIRECTIVE_ATTRIBUTE_EQUALS);
t = jj_consume_token(JSP_DIRECTIVE_ATTRIBUTE_VALUE);
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
jjtn000.setValue(quoteContent(t.image));
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
final public void JspScriptlet() throws ParseException {
/*@bgen(jjtree) JspScriptlet */
ASTJspScriptlet jjtn000 = new ASTJspScriptlet(this, JJTJSPSCRIPTLET);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);Token t;
try {
jj_consume_token(JSP_SCRIPTLET_START);
t = jj_consume_token(JSP_SCRIPTLET);
jjtn000.setImage(t.image.trim());
jj_consume_token(JSP_SCRIPTLET_END);
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
final public void JspExpression() throws ParseException {
/*@bgen(jjtree) JspExpression */
ASTJspExpression jjtn000 = new ASTJspExpression(this, JJTJSPEXPRESSION);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);Token t;
try {
jj_consume_token(JSP_EXPRESSION_START);
t = jj_consume_token(JSP_EXPRESSION);
jjtn000.setImage(t.image.trim());
jj_consume_token(JSP_EXPRESSION_END);
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
final public void JspDeclaration() throws ParseException {
/*@bgen(jjtree) JspDeclaration */
ASTJspDeclaration jjtn000 = new ASTJspDeclaration(this, JJTJSPDECLARATION);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);Token t;
try {
jj_consume_token(JSP_DECLARATION_START);
t = jj_consume_token(JSP_DECLARATION);
jjtn000.setImage(t.image.trim());
jj_consume_token(JSP_DECLARATION_END);
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
final public void JspComment() throws ParseException {
/*@bgen(jjtree) JspComment */
ASTJspComment jjtn000 = new ASTJspComment(this, JJTJSPCOMMENT);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);Token t;
try {
jj_consume_token(JSP_COMMENT_START);
t = jj_consume_token(JSP_COMMENT_CONTENT);
jjtn000.setImage(t.image.trim());
jj_consume_token(JSP_COMMENT_END);
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
final public void Text() throws ParseException {
/*@bgen(jjtree) Text */
ASTText jjtn000 = new ASTText(this, JJTTEXT);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);StringBuffer content = new StringBuffer();
String tmp;
try {
label_5:
while (true) {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case UNPARSED_TEXT:
tmp = UnparsedText();
content.append(tmp);
break;
case EL_EXPRESSION:
tmp = ElExpression();
content.append(tmp);
break;
default:
jj_la1[9] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case EL_EXPRESSION:
case UNPARSED_TEXT:
;
break;
default:
jj_la1[10] = jj_gen;
break label_5;
}
}
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
jjtn000.setImage(content.toString());
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
final public String UnparsedText() throws ParseException {
/*@bgen(jjtree) UnparsedText */
ASTUnparsedText jjtn000 = new ASTUnparsedText(this, JJTUNPARSEDTEXT);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);Token t;
try {
t = jj_consume_token(UNPARSED_TEXT);
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
jjtn000.setImage(t.image);
{if (true) return t.image;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
throw new RuntimeException("Missing return statement in function");
}
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
final public String UnparsedTextNoSingleQuotes() throws ParseException {
/*@bgen(jjtree) UnparsedText */
ASTUnparsedText jjtn000 = new ASTUnparsedText(this, JJTUNPARSEDTEXT);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);Token t;
try {
t = jj_consume_token(UNPARSED_TEXT_NO_SINGLE_QUOTES);
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
jjtn000.setImage(t.image);
{if (true) return t.image;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
throw new RuntimeException("Missing return statement in function");
}
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
final public String UnparsedTextNoDoubleQuotes() throws ParseException {
/*@bgen(jjtree) UnparsedText */
ASTUnparsedText jjtn000 = new ASTUnparsedText(this, JJTUNPARSEDTEXT);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);Token t;
try {
t = jj_consume_token(UNPARSED_TEXT_NO_DOUBLE_QUOTES);
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
jjtn000.setImage(t.image);
{if (true) return t.image;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
throw new RuntimeException("Missing return statement in function");
}
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
final public String ElExpression() throws ParseException {
/*@bgen(jjtree) ElExpression */
ASTElExpression jjtn000 = new ASTElExpression(this, JJTELEXPRESSION);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);Token t;
try {
t = jj_consume_token(EL_EXPRESSION);
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
jjtn000.setImage(expressionContent(t.image));
{if (true) return t.image;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
throw new RuntimeException("Missing return statement in function");
}
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
final public String ValueBindingInAttribute() throws ParseException {
/*@bgen(jjtree) ValueBinding */
ASTValueBinding jjtn000 = new ASTValueBinding(this, JJTVALUEBINDING);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);Token t;
try {
t = jj_consume_token(VALUE_BINDING_IN_ATTRIBUTE);
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
jjtn000.setImage(expressionContent(t.image));
{if (true) return t.image;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
throw new RuntimeException("Missing return statement in function");
}
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
final public String ElExpressionInAttribute() throws ParseException {
/*@bgen(jjtree) ElExpression */
ASTElExpression jjtn000 = new ASTElExpression(this, JJTELEXPRESSION);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);Token t;
try {
t = jj_consume_token(EL_EXPRESSION_IN_ATTRIBUTE);
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
jjtn000.setImage(expressionContent(t.image));
{if (true) return t.image;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
throw new RuntimeException("Missing return statement in function");
}
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
final public void CData() throws ParseException {
/*@bgen(jjtree) CData */
ASTCData jjtn000 = new ASTCData(this, JJTCDATA);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);StringBuffer content = new StringBuffer();
Token t;
try {
jj_consume_token(CDATA_START);
label_6:
while (true) {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case UNPARSED:
;
break;
default:
jj_la1[11] = jj_gen;
break label_6;
}
t = jj_consume_token(UNPARSED);
content.append(t.image);
}
jj_consume_token(CDATA_END);
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
jjtn000.setImage(content.toString());
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
final public void Element() throws ParseException {
/*@bgen(jjtree) Element */
ASTElement jjtn000 = new ASTElement(this, JJTELEMENT);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);Token startTagName;
Token endTagName;
String tagName;
try {
jj_consume_token(TAG_START);
startTagName = jj_consume_token(TAG_NAME);
tagName = startTagName.image; jjtn000.setName(tagName);
label_7:
while (true) {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case ATTR_NAME:
;
break;
default:
jj_la1[12] = jj_gen;
break label_7;
}
Attribute();
}
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case TAG_END:
jj_consume_token(TAG_END);
jjtn000.setEmpty(false);
// Content in a <script> element needs special treatment (like a comment or CDataSection).
// Tell the TokenManager to start looking for the body of a script element. In this
// state all text will be consumed by the next token up to the closing </script> tag.
// This is a context sensitive switch for the token manager, not something one can
// express using normal JavaCC syntax. Hence the hoop jumping.
if ("script".equalsIgnoreCase(startTagName.image)) {
token_source.SwitchTo(HtmlScriptContentState);
}
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case TAG_START:
case COMMENT_START:
case CDATA_START:
case JSP_COMMENT_START:
case JSP_DECLARATION_START:
case JSP_EXPRESSION_START:
case JSP_SCRIPTLET_START:
case JSP_DIRECTIVE_START:
case EL_EXPRESSION:
case UNPARSED_TEXT:
case HTML_SCRIPT_CONTENT:
case HTML_SCRIPT_END_TAG:
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case HTML_SCRIPT_CONTENT:
case HTML_SCRIPT_END_TAG:
HtmlScript();
break;
case TAG_START:
case COMMENT_START:
case CDATA_START:
case JSP_COMMENT_START:
case JSP_DECLARATION_START:
case JSP_EXPRESSION_START:
case JSP_SCRIPTLET_START:
case JSP_DIRECTIVE_START:
case EL_EXPRESSION:
case UNPARSED_TEXT:
Content();
break;
default:
jj_la1[13] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
break;
default:
jj_la1[14] = jj_gen;
;
}
jj_consume_token(ENDTAG_START);
endTagName = jj_consume_token(TAG_NAME);
if (! tagName.equalsIgnoreCase(endTagName.image)) {
{if (true) throw new StartAndEndTagMismatchException(
startTagName.beginLine, startTagName.beginColumn,
startTagName.image,
endTagName.beginLine, endTagName.beginColumn,
endTagName.image );}
}
jj_consume_token(TAG_END);
break;
case TAG_SLASHEND:
jj_consume_token(TAG_SLASHEND);
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
jjtn000.setEmpty(true);
break;
default:
jj_la1[15] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
final public void Attribute() throws ParseException {
/*@bgen(jjtree) Attribute */
ASTAttribute jjtn000 = new ASTAttribute(this, JJTATTRIBUTE);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);Token t;
try {
t = jj_consume_token(ATTR_NAME);
jjtn000.setName(t.image);
jj_consume_token(ATTR_EQ);
AttributeValue();
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
final public void AttributeValue() throws ParseException {
/*@bgen(jjtree) AttributeValue */
ASTAttributeValue jjtn000 = new ASTAttributeValue(this, JJTATTRIBUTEVALUE);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);StringBuffer content = new StringBuffer();
String tmp;
Token t;
try {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case DOUBLE_QUOTE:
jj_consume_token(DOUBLE_QUOTE);
label_8:
while (true) {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case EL_EXPRESSION_IN_ATTRIBUTE:
case VALUE_BINDING_IN_ATTRIBUTE:
case JSP_EXPRESSION_IN_ATTRIBUTE:
case UNPARSED_TEXT_NO_DOUBLE_QUOTES:
;
break;
default:
jj_la1[16] = jj_gen;
break label_8;
}
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case UNPARSED_TEXT_NO_DOUBLE_QUOTES:
tmp = UnparsedTextNoDoubleQuotes();
break;
case EL_EXPRESSION_IN_ATTRIBUTE:
case VALUE_BINDING_IN_ATTRIBUTE:
case JSP_EXPRESSION_IN_ATTRIBUTE:
tmp = QuoteIndependentAttributeValueContent();
break;
default:
jj_la1[17] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
content.append(tmp);
}
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case ENDING_DOUBLE_QUOTE:
jj_consume_token(ENDING_DOUBLE_QUOTE);
break;
case DOLLAR_OR_HASH_DOUBLE_QUOTE:
t = jj_consume_token(DOLLAR_OR_HASH_DOUBLE_QUOTE);
content.append(t.image.substring(0, 1));
break;
default:
jj_la1[18] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
break;
case SINGLE_QUOTE:
jj_consume_token(SINGLE_QUOTE);
label_9:
while (true) {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case EL_EXPRESSION_IN_ATTRIBUTE:
case VALUE_BINDING_IN_ATTRIBUTE:
case JSP_EXPRESSION_IN_ATTRIBUTE:
case UNPARSED_TEXT_NO_SINGLE_QUOTES:
;
break;
default:
jj_la1[19] = jj_gen;
break label_9;
}
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case UNPARSED_TEXT_NO_SINGLE_QUOTES:
tmp = UnparsedTextNoSingleQuotes();
break;
case EL_EXPRESSION_IN_ATTRIBUTE:
case VALUE_BINDING_IN_ATTRIBUTE:
case JSP_EXPRESSION_IN_ATTRIBUTE:
tmp = QuoteIndependentAttributeValueContent();
break;
default:
jj_la1[20] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
content.append(tmp);
}
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case ENDING_SINGLE_QUOTE:
jj_consume_token(ENDING_SINGLE_QUOTE);
break;
case DOLLAR_OR_HASH_SINGLE_QUOTE:
t = jj_consume_token(DOLLAR_OR_HASH_SINGLE_QUOTE);
content.append(t.image.substring(0, 1));
break;
default:
jj_la1[21] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
break;
default:
jj_la1[22] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
jjtn000.setImage( content.toString() );
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
final public String QuoteIndependentAttributeValueContent() throws ParseException {
String tmp;
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case EL_EXPRESSION_IN_ATTRIBUTE:
tmp = ElExpressionInAttribute();
break;
case VALUE_BINDING_IN_ATTRIBUTE:
tmp = ValueBindingInAttribute();
break;
case JSP_EXPRESSION_IN_ATTRIBUTE:
tmp = JspExpressionInAttribute();
break;
default:
jj_la1[23] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
{if (true) return tmp;}
throw new RuntimeException("Missing return statement in function");
}
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
final public String JspExpressionInAttribute() throws ParseException {
/*@bgen(jjtree) JspExpressionInAttribute */
ASTJspExpressionInAttribute jjtn000 = new ASTJspExpressionInAttribute(this, JJTJSPEXPRESSIONINATTRIBUTE);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);Token t;
try {
t = jj_consume_token(JSP_EXPRESSION_IN_ATTRIBUTE);
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
jjtn000.setImage(t.image.substring(3, t.image.length()-2).trim()); // without <% and %>
{if (true) return t.image;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
throw new RuntimeException("Missing return statement in function");
}
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
final public void CommentTag() throws ParseException {
/*@bgen(jjtree) CommentTag */
ASTCommentTag jjtn000 = new ASTCommentTag(this, JJTCOMMENTTAG);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);StringBuffer content = new StringBuffer();
Token t;
try {
jj_consume_token(COMMENT_START);
label_10:
while (true) {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case COMMENT_TEXT:
;
break;
default:
jj_la1[24] = jj_gen;
break label_10;
}
t = jj_consume_token(COMMENT_TEXT);
content.append(t.image);
}
jj_consume_token(COMMENT_END);
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
jjtn000.setImage(content.toString().trim());
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
final public void Declaration() throws ParseException {
/*@bgen(jjtree) Declaration */
ASTDeclaration jjtn000 = new ASTDeclaration(this, JJTDECLARATION);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);Token t;
try {
jj_consume_token(DECL_START);
t = jj_consume_token(TAG_NAME);
jjtn000.setName(t.image);
label_11:
while (true) {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case ATTR_NAME:
;
break;
default:
jj_la1[25] = jj_gen;
break label_11;
}
Attribute();
}
jj_consume_token(DECL_END);
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
final public void DoctypeDeclaration() throws ParseException {
/*@bgen(jjtree) DoctypeDeclaration */
ASTDoctypeDeclaration jjtn000 = new ASTDoctypeDeclaration(this, JJTDOCTYPEDECLARATION);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);Token t;
try {
jj_consume_token(DOCTYPE_DECL_START);
jj_consume_token(WHITESPACES);
t = jj_consume_token(NAME);
jjtn000.setName(t.image);
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case WHITESPACES:
jj_consume_token(WHITESPACES);
break;
default:
jj_la1[26] = jj_gen;
;
}
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case PUBLIC:
case SYSTEM:
DoctypeExternalId();
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case WHITESPACES:
jj_consume_token(WHITESPACES);
break;
default:
jj_la1[27] = jj_gen;
;
}
break;
default:
jj_la1[28] = jj_gen;
;
}
jj_consume_token(DOCTYPE_DECL_END);
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
final public void DoctypeExternalId() throws ParseException {
/*@bgen(jjtree) DoctypeExternalId */
ASTDoctypeExternalId jjtn000 = new ASTDoctypeExternalId(this, JJTDOCTYPEEXTERNALID);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);Token systemLiteral;
Token pubIdLiteral;
try {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case SYSTEM:
jj_consume_token(SYSTEM);
jj_consume_token(WHITESPACES);
systemLiteral = jj_consume_token(QUOTED_LITERAL);
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
jjtn000.setUri(quoteContent(systemLiteral.image));
break;
case PUBLIC:
jj_consume_token(PUBLIC);
jj_consume_token(WHITESPACES);
pubIdLiteral = jj_consume_token(QUOTED_LITERAL);
jjtn000.setPublicId(quoteContent(pubIdLiteral.image));
jj_consume_token(WHITESPACES);
systemLiteral = jj_consume_token(QUOTED_LITERAL);
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
jjtn000.setUri(quoteContent(systemLiteral.image));
break;
default:
jj_la1[29] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
final public void HtmlScript() throws ParseException {
/*@bgen(jjtree) HtmlScript */
ASTHtmlScript jjtn000 = new ASTHtmlScript(this, JJTHTMLSCRIPT);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);StringBuffer content = new StringBuffer();
Token t;
try {
label_12:
while (true) {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case HTML_SCRIPT_CONTENT:
;
break;
default:
jj_la1[30] = jj_gen;
break label_12;
}
t = jj_consume_token(HTML_SCRIPT_CONTENT);
content.append(t.image);
}
jj_consume_token(HTML_SCRIPT_END_TAG);
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
jjtn000.setImage(content.toString().trim());
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
private Token jj_consume_token(int kind) throws ParseException {
Token oldToken;
if ((oldToken = token).next != null) token = token.next;
else token = token.next = token_source.getNextToken();
jj_ntk = -1;
if (token.kind == kind) {
jj_gen++;
if (++jj_gc > 100) {
jj_gc = 0;
for (int i = 0; i < jj_2_rtns.length; i++) {
JJCalls c = jj_2_rtns[i];
while (c != null) {
if (c.gen < jj_gen) c.first = null;
c = c.next;
}
}
}
return token;
}
token = oldToken;
jj_kind = kind;
throw generateParseException();
}
// in src/main/java/net/sourceforge/pmd/lang/jsp/JspParser.java
public Node parse(String fileName, Reader source) throws ParseException {
AbstractTokenManager.setFileName(fileName);
return new net.sourceforge.pmd.lang.jsp.ast.JspParser(new SimpleCharStream(source)).CompilationUnit();
}
// in src/main/java/net/sourceforge/pmd/lang/java/Java13Parser.java
Override
protected JavaParser createJavaParser(Reader source) throws ParseException {
JavaParser javaParser = super.createJavaParser(source);
javaParser.setJdkVersion(3);
return javaParser;
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public ASTCompilationUnit CompilationUnit() throws ParseException {
/*@bgen(jjtree) CompilationUnit */
ASTCompilationUnit jjtn000 = new ASTCompilationUnit(this, JJTCOMPILATIONUNIT);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
if (jj_2_1(2147483647)) {
PackageDeclaration();
} else {
;
}
label_1:
while (true) {
switch (jj_nt.kind) {
case IMPORT:
;
break;
default:
jj_la1[0] = jj_gen;
break label_1;
}
ImportDeclaration();
}
label_2:
while (true) {
switch (jj_nt.kind) {
case ABSTRACT:
case CLASS:
case FINAL:
case INTERFACE:
case NATIVE:
case PRIVATE:
case PROTECTED:
case PUBLIC:
case STATIC:
case SYNCHRONIZED:
case TRANSIENT:
case VOLATILE:
case STRICTFP:
case IDENTIFIER:
case SEMICOLON:
case AT:
;
break;
default:
jj_la1[1] = jj_gen;
break label_2;
}
TypeDeclaration();
}
switch (jj_nt.kind) {
case 124:
jj_consume_token(124);
break;
default:
jj_la1[2] = jj_gen;
;
}
switch (jj_nt.kind) {
case 125:
jj_consume_token(125);
break;
default:
jj_la1[3] = jj_gen;
;
}
jj_consume_token(0);
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
jjtn000.setComments(token_source.comments);
{if (true) return jjtn000;}
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
throw new RuntimeException("Missing return statement in function");
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void PackageDeclaration() throws ParseException {
/*@bgen(jjtree) PackageDeclaration */
ASTPackageDeclaration jjtn000 = new ASTPackageDeclaration(this, JJTPACKAGEDECLARATION);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
label_3:
while (true) {
switch (jj_nt.kind) {
case AT:
;
break;
default:
jj_la1[4] = jj_gen;
break label_3;
}
Annotation();
}
jj_consume_token(PACKAGE);
Name();
jj_consume_token(SEMICOLON);
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void ImportDeclaration() throws ParseException {
/*@bgen(jjtree) ImportDeclaration */
ASTImportDeclaration jjtn000 = new ASTImportDeclaration(this, JJTIMPORTDECLARATION);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
jj_consume_token(IMPORT);
switch (jj_nt.kind) {
case STATIC:
jj_consume_token(STATIC);
checkForBadStaticImportUsage();jjtn000.setStatic();
break;
default:
jj_la1[5] = jj_gen;
;
}
Name();
switch (jj_nt.kind) {
case DOT:
jj_consume_token(DOT);
jj_consume_token(STAR);
jjtn000.setImportOnDemand();
break;
default:
jj_la1[6] = jj_gen;
;
}
jj_consume_token(SEMICOLON);
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public int Modifiers() throws ParseException {
int modifiers = 0;
label_4:
while (true) {
if (jj_2_2(2)) {
;
} else {
break label_4;
}
switch (jj_nt.kind) {
case PUBLIC:
jj_consume_token(PUBLIC);
modifiers |= AccessNode.PUBLIC;
break;
case STATIC:
jj_consume_token(STATIC);
modifiers |= AccessNode.STATIC;
break;
case PROTECTED:
jj_consume_token(PROTECTED);
modifiers |= AccessNode.PROTECTED;
break;
case PRIVATE:
jj_consume_token(PRIVATE);
modifiers |= AccessNode.PRIVATE;
break;
case FINAL:
jj_consume_token(FINAL);
modifiers |= AccessNode.FINAL;
break;
case ABSTRACT:
jj_consume_token(ABSTRACT);
modifiers |= AccessNode.ABSTRACT;
break;
case SYNCHRONIZED:
jj_consume_token(SYNCHRONIZED);
modifiers |= AccessNode.SYNCHRONIZED;
break;
case NATIVE:
jj_consume_token(NATIVE);
modifiers |= AccessNode.NATIVE;
break;
case TRANSIENT:
jj_consume_token(TRANSIENT);
modifiers |= AccessNode.TRANSIENT;
break;
case VOLATILE:
jj_consume_token(VOLATILE);
modifiers |= AccessNode.VOLATILE;
break;
case STRICTFP:
jj_consume_token(STRICTFP);
modifiers |= AccessNode.STRICTFP;
break;
case AT:
Annotation();
break;
default:
jj_la1[7] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
}
{if (true) return modifiers;}
throw new RuntimeException("Missing return statement in function");
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void TypeDeclaration() throws ParseException {
/*@bgen(jjtree) TypeDeclaration */
ASTTypeDeclaration jjtn000 = new ASTTypeDeclaration(this, JJTTYPEDECLARATION);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);int modifiers;
try {
switch (jj_nt.kind) {
case SEMICOLON:
jj_consume_token(SEMICOLON);
break;
case ABSTRACT:
case CLASS:
case FINAL:
case INTERFACE:
case NATIVE:
case PRIVATE:
case PROTECTED:
case PUBLIC:
case STATIC:
case SYNCHRONIZED:
case TRANSIENT:
case VOLATILE:
case STRICTFP:
case IDENTIFIER:
case AT:
modifiers = Modifiers();
switch (jj_nt.kind) {
case ABSTRACT:
case CLASS:
case FINAL:
case INTERFACE:
ClassOrInterfaceDeclaration(modifiers);
break;
case IDENTIFIER:
EnumDeclaration(modifiers);
break;
case AT:
AnnotationTypeDeclaration(modifiers);
break;
default:
jj_la1[8] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
break;
default:
jj_la1[9] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void ClassOrInterfaceDeclaration(int modifiers) throws ParseException {
/*@bgen(jjtree) ClassOrInterfaceDeclaration */
ASTClassOrInterfaceDeclaration jjtn000 = new ASTClassOrInterfaceDeclaration(this, JJTCLASSORINTERFACEDECLARATION);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);Token t = null;
jjtn000.setModifiers(modifiers);
try {
switch (jj_nt.kind) {
case ABSTRACT:
case CLASS:
case FINAL:
switch (jj_nt.kind) {
case ABSTRACT:
case FINAL:
switch (jj_nt.kind) {
case FINAL:
jj_consume_token(FINAL);
break;
case ABSTRACT:
jj_consume_token(ABSTRACT);
break;
default:
jj_la1[10] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
break;
default:
jj_la1[11] = jj_gen;
;
}
jj_consume_token(CLASS);
break;
case INTERFACE:
jj_consume_token(INTERFACE);
jjtn000.setInterface();
break;
default:
jj_la1[12] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
t = jj_consume_token(IDENTIFIER);
jjtn000.setImage(t.image);
switch (jj_nt.kind) {
case LT:
TypeParameters();
break;
default:
jj_la1[13] = jj_gen;
;
}
switch (jj_nt.kind) {
case EXTENDS:
ExtendsList();
break;
default:
jj_la1[14] = jj_gen;
;
}
switch (jj_nt.kind) {
case IMPLEMENTS:
ImplementsList();
break;
default:
jj_la1[15] = jj_gen;
;
}
ClassOrInterfaceBody();
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void ExtendsList() throws ParseException {
/*@bgen(jjtree) ExtendsList */
ASTExtendsList jjtn000 = new ASTExtendsList(this, JJTEXTENDSLIST);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);boolean extendsMoreThanOne = false;
try {
jj_consume_token(EXTENDS);
ClassOrInterfaceType();
label_5:
while (true) {
switch (jj_nt.kind) {
case COMMA:
;
break;
default:
jj_la1[16] = jj_gen;
break label_5;
}
jj_consume_token(COMMA);
ClassOrInterfaceType();
extendsMoreThanOne = true;
}
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void ImplementsList() throws ParseException {
/*@bgen(jjtree) ImplementsList */
ASTImplementsList jjtn000 = new ASTImplementsList(this, JJTIMPLEMENTSLIST);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
jj_consume_token(IMPLEMENTS);
ClassOrInterfaceType();
label_6:
while (true) {
switch (jj_nt.kind) {
case COMMA:
;
break;
default:
jj_la1[17] = jj_gen;
break label_6;
}
jj_consume_token(COMMA);
ClassOrInterfaceType();
}
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void EnumDeclaration(int modifiers) throws ParseException {
/*@bgen(jjtree) EnumDeclaration */
ASTEnumDeclaration jjtn000 = new ASTEnumDeclaration(this, JJTENUMDECLARATION);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);Token t;
jjtn000.setModifiers(modifiers);
try {
t = jj_consume_token(IDENTIFIER);
if (!t.image.equals("enum")) {
{if (true) throw new ParseException("ERROR: expecting enum");}
}
if (jdkVersion < 5) {
{if (true) throw new ParseException("ERROR: Can't use enum as a keyword in pre-JDK 1.5 target");}
}
t = jj_consume_token(IDENTIFIER);
jjtn000.setImage(t.image);
switch (jj_nt.kind) {
case IMPLEMENTS:
ImplementsList();
break;
default:
jj_la1[18] = jj_gen;
;
}
EnumBody();
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void EnumBody() throws ParseException {
/*@bgen(jjtree) EnumBody */
ASTEnumBody jjtn000 = new ASTEnumBody(this, JJTENUMBODY);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
jj_consume_token(LBRACE);
switch (jj_nt.kind) {
case IDENTIFIER:
case AT:
label_7:
while (true) {
switch (jj_nt.kind) {
case AT:
;
break;
default:
jj_la1[19] = jj_gen;
break label_7;
}
Annotation();
}
EnumConstant();
label_8:
while (true) {
if (jj_2_3(2)) {
;
} else {
break label_8;
}
jj_consume_token(COMMA);
label_9:
while (true) {
switch (jj_nt.kind) {
case AT:
;
break;
default:
jj_la1[20] = jj_gen;
break label_9;
}
Annotation();
}
EnumConstant();
}
break;
default:
jj_la1[21] = jj_gen;
;
}
switch (jj_nt.kind) {
case COMMA:
jj_consume_token(COMMA);
break;
default:
jj_la1[22] = jj_gen;
;
}
switch (jj_nt.kind) {
case SEMICOLON:
jj_consume_token(SEMICOLON);
label_10:
while (true) {
switch (jj_nt.kind) {
case ABSTRACT:
case BOOLEAN:
case BYTE:
case CHAR:
case CLASS:
case DOUBLE:
case FINAL:
case FLOAT:
case INT:
case INTERFACE:
case LONG:
case NATIVE:
case PRIVATE:
case PROTECTED:
case PUBLIC:
case SHORT:
case STATIC:
case SYNCHRONIZED:
case TRANSIENT:
case VOID:
case VOLATILE:
case STRICTFP:
case IDENTIFIER:
case LBRACE:
case SEMICOLON:
case AT:
case LT:
;
break;
default:
jj_la1[23] = jj_gen;
break label_10;
}
ClassOrInterfaceBodyDeclaration();
}
break;
default:
jj_la1[24] = jj_gen;
;
}
jj_consume_token(RBRACE);
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void EnumConstant() throws ParseException {
/*@bgen(jjtree) EnumConstant */
ASTEnumConstant jjtn000 = new ASTEnumConstant(this, JJTENUMCONSTANT);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);Token t;
try {
t = jj_consume_token(IDENTIFIER);
jjtn000.setImage(t.image);
switch (jj_nt.kind) {
case LPAREN:
Arguments();
break;
default:
jj_la1[25] = jj_gen;
;
}
switch (jj_nt.kind) {
case LBRACE:
ClassOrInterfaceBody();
break;
default:
jj_la1[26] = jj_gen;
;
}
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void TypeParameters() throws ParseException {
/*@bgen(jjtree) TypeParameters */
ASTTypeParameters jjtn000 = new ASTTypeParameters(this, JJTTYPEPARAMETERS);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
jj_consume_token(LT);
checkForBadGenericsUsage();
TypeParameter();
label_11:
while (true) {
switch (jj_nt.kind) {
case COMMA:
;
break;
default:
jj_la1[27] = jj_gen;
break label_11;
}
jj_consume_token(COMMA);
TypeParameter();
}
jj_consume_token(GT);
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void TypeParameter() throws ParseException {
/*@bgen(jjtree) TypeParameter */
ASTTypeParameter jjtn000 = new ASTTypeParameter(this, JJTTYPEPARAMETER);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);Token t;
try {
t = jj_consume_token(IDENTIFIER);
jjtn000.setImage(t.image);
switch (jj_nt.kind) {
case EXTENDS:
TypeBound();
break;
default:
jj_la1[28] = jj_gen;
;
}
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void TypeBound() throws ParseException {
/*@bgen(jjtree) TypeBound */
ASTTypeBound jjtn000 = new ASTTypeBound(this, JJTTYPEBOUND);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
jj_consume_token(EXTENDS);
ClassOrInterfaceType();
label_12:
while (true) {
switch (jj_nt.kind) {
case BIT_AND:
;
break;
default:
jj_la1[29] = jj_gen;
break label_12;
}
jj_consume_token(BIT_AND);
ClassOrInterfaceType();
}
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void ClassOrInterfaceBody() throws ParseException {
/*@bgen(jjtree) ClassOrInterfaceBody */
ASTClassOrInterfaceBody jjtn000 = new ASTClassOrInterfaceBody(this, JJTCLASSORINTERFACEBODY);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
jj_consume_token(LBRACE);
label_13:
while (true) {
switch (jj_nt.kind) {
case ABSTRACT:
case BOOLEAN:
case BYTE:
case CHAR:
case CLASS:
case DOUBLE:
case FINAL:
case FLOAT:
case INT:
case INTERFACE:
case LONG:
case NATIVE:
case PRIVATE:
case PROTECTED:
case PUBLIC:
case SHORT:
case STATIC:
case SYNCHRONIZED:
case TRANSIENT:
case VOID:
case VOLATILE:
case STRICTFP:
case IDENTIFIER:
case LBRACE:
case SEMICOLON:
case AT:
case LT:
;
break;
default:
jj_la1[30] = jj_gen;
break label_13;
}
ClassOrInterfaceBodyDeclaration();
}
jj_consume_token(RBRACE);
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void ClassOrInterfaceBodyDeclaration() throws ParseException {
/*@bgen(jjtree) ClassOrInterfaceBodyDeclaration */
ASTClassOrInterfaceBodyDeclaration jjtn000 = new ASTClassOrInterfaceBodyDeclaration(this, JJTCLASSORINTERFACEBODYDECLARATION);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);int modifiers;
try {
if (jj_2_8(2147483647)) {
Initializer();
} else {
switch (jj_nt.kind) {
case ABSTRACT:
case BOOLEAN:
case BYTE:
case CHAR:
case CLASS:
case DOUBLE:
case FINAL:
case FLOAT:
case INT:
case INTERFACE:
case LONG:
case NATIVE:
case PRIVATE:
case PROTECTED:
case PUBLIC:
case SHORT:
case STATIC:
case SYNCHRONIZED:
case TRANSIENT:
case VOID:
case VOLATILE:
case STRICTFP:
case IDENTIFIER:
case AT:
case LT:
modifiers = Modifiers();
if (jj_2_4(3)) {
ClassOrInterfaceDeclaration(modifiers);
} else if (jj_2_5(3)) {
EnumDeclaration(modifiers);
} else if (jj_2_6(2147483647)) {
ConstructorDeclaration(modifiers);
} else if (jj_2_7(2147483647)) {
FieldDeclaration(modifiers);
} else {
switch (jj_nt.kind) {
case BOOLEAN:
case BYTE:
case CHAR:
case DOUBLE:
case FLOAT:
case INT:
case LONG:
case SHORT:
case VOID:
case IDENTIFIER:
case LT:
MethodDeclaration(modifiers);
break;
case AT:
AnnotationTypeDeclaration(modifiers);
break;
default:
jj_la1[31] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
}
break;
case SEMICOLON:
jj_consume_token(SEMICOLON);
break;
default:
jj_la1[32] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
}
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void FieldDeclaration(int modifiers) throws ParseException {
/*@bgen(jjtree) FieldDeclaration */
ASTFieldDeclaration jjtn000 = new ASTFieldDeclaration(this, JJTFIELDDECLARATION);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);jjtn000.setModifiers(modifiers);
try {
Type();
VariableDeclarator();
label_14:
while (true) {
switch (jj_nt.kind) {
case COMMA:
;
break;
default:
jj_la1[33] = jj_gen;
break label_14;
}
jj_consume_token(COMMA);
VariableDeclarator();
}
jj_consume_token(SEMICOLON);
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void VariableDeclarator() throws ParseException {
/*@bgen(jjtree) VariableDeclarator */
ASTVariableDeclarator jjtn000 = new ASTVariableDeclarator(this, JJTVARIABLEDECLARATOR);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
VariableDeclaratorId();
switch (jj_nt.kind) {
case ASSIGN:
jj_consume_token(ASSIGN);
VariableInitializer();
break;
default:
jj_la1[34] = jj_gen;
;
}
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void VariableDeclaratorId() throws ParseException {
/*@bgen(jjtree) VariableDeclaratorId */
ASTVariableDeclaratorId jjtn000 = new ASTVariableDeclaratorId(this, JJTVARIABLEDECLARATORID);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);Token t;
try {
t = jj_consume_token(IDENTIFIER);
label_15:
while (true) {
switch (jj_nt.kind) {
case LBRACKET:
;
break;
default:
jj_la1[35] = jj_gen;
break label_15;
}
jj_consume_token(LBRACKET);
jj_consume_token(RBRACKET);
jjtn000.bumpArrayDepth();
}
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
checkForBadAssertUsage(t.image, "a variable name");
checkForBadEnumUsage(t.image, "a variable name");
jjtn000.setImage( t.image );
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void VariableInitializer() throws ParseException {
/*@bgen(jjtree) VariableInitializer */
ASTVariableInitializer jjtn000 = new ASTVariableInitializer(this, JJTVARIABLEINITIALIZER);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
switch (jj_nt.kind) {
case LBRACE:
ArrayInitializer();
break;
case BOOLEAN:
case BYTE:
case CHAR:
case DOUBLE:
case FALSE:
case FLOAT:
case INT:
case LONG:
case NEW:
case NULL:
case SHORT:
case SUPER:
case THIS:
case TRUE:
case VOID:
case INTEGER_LITERAL:
case FLOATING_POINT_LITERAL:
case HEX_FLOATING_POINT_LITERAL:
case CHARACTER_LITERAL:
case STRING_LITERAL:
case IDENTIFIER:
case LPAREN:
case BANG:
case TILDE:
case INCR:
case DECR:
case PLUS:
case MINUS:
Expression();
break;
default:
jj_la1[36] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void ArrayInitializer() throws ParseException {
/*@bgen(jjtree) ArrayInitializer */
ASTArrayInitializer jjtn000 = new ASTArrayInitializer(this, JJTARRAYINITIALIZER);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
jj_consume_token(LBRACE);
switch (jj_nt.kind) {
case BOOLEAN:
case BYTE:
case CHAR:
case DOUBLE:
case FALSE:
case FLOAT:
case INT:
case LONG:
case NEW:
case NULL:
case SHORT:
case SUPER:
case THIS:
case TRUE:
case VOID:
case INTEGER_LITERAL:
case FLOATING_POINT_LITERAL:
case HEX_FLOATING_POINT_LITERAL:
case CHARACTER_LITERAL:
case STRING_LITERAL:
case IDENTIFIER:
case LPAREN:
case LBRACE:
case BANG:
case TILDE:
case INCR:
case DECR:
case PLUS:
case MINUS:
VariableInitializer();
label_16:
while (true) {
if (jj_2_9(2)) {
;
} else {
break label_16;
}
jj_consume_token(COMMA);
VariableInitializer();
}
break;
default:
jj_la1[37] = jj_gen;
;
}
switch (jj_nt.kind) {
case COMMA:
jj_consume_token(COMMA);
break;
default:
jj_la1[38] = jj_gen;
;
}
jj_consume_token(RBRACE);
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void MethodDeclaration(int modifiers) throws ParseException {
/*@bgen(jjtree) MethodDeclaration */
ASTMethodDeclaration jjtn000 = new ASTMethodDeclaration(this, JJTMETHODDECLARATION);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);jjtn000.setModifiers(modifiers);
try {
switch (jj_nt.kind) {
case LT:
TypeParameters();
break;
default:
jj_la1[39] = jj_gen;
;
}
ResultType();
MethodDeclarator();
switch (jj_nt.kind) {
case THROWS:
jj_consume_token(THROWS);
NameList();
break;
default:
jj_la1[40] = jj_gen;
;
}
switch (jj_nt.kind) {
case LBRACE:
Block();
break;
case SEMICOLON:
jj_consume_token(SEMICOLON);
break;
default:
jj_la1[41] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void MethodDeclarator() throws ParseException {
/*@bgen(jjtree) MethodDeclarator */
ASTMethodDeclarator jjtn000 = new ASTMethodDeclarator(this, JJTMETHODDECLARATOR);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);Token t;
try {
t = jj_consume_token(IDENTIFIER);
checkForBadAssertUsage(t.image, "a method name");
checkForBadEnumUsage(t.image, "a method name");
jjtn000.setImage( t.image );
FormalParameters();
label_17:
while (true) {
switch (jj_nt.kind) {
case LBRACKET:
;
break;
default:
jj_la1[42] = jj_gen;
break label_17;
}
jj_consume_token(LBRACKET);
jj_consume_token(RBRACKET);
}
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void FormalParameters() throws ParseException {
/*@bgen(jjtree) FormalParameters */
ASTFormalParameters jjtn000 = new ASTFormalParameters(this, JJTFORMALPARAMETERS);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
jj_consume_token(LPAREN);
switch (jj_nt.kind) {
case BOOLEAN:
case BYTE:
case CHAR:
case DOUBLE:
case FINAL:
case FLOAT:
case INT:
case LONG:
case SHORT:
case IDENTIFIER:
case AT:
FormalParameter();
label_18:
while (true) {
switch (jj_nt.kind) {
case COMMA:
;
break;
default:
jj_la1[43] = jj_gen;
break label_18;
}
jj_consume_token(COMMA);
FormalParameter();
}
break;
default:
jj_la1[44] = jj_gen;
;
}
jj_consume_token(RPAREN);
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void FormalParameter() throws ParseException {
/*@bgen(jjtree) FormalParameter */
ASTFormalParameter jjtn000 = new ASTFormalParameter(this, JJTFORMALPARAMETER);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
label_19:
while (true) {
switch (jj_nt.kind) {
case FINAL:
case AT:
;
break;
default:
jj_la1[45] = jj_gen;
break label_19;
}
switch (jj_nt.kind) {
case FINAL:
jj_consume_token(FINAL);
jjtn000.setFinal(true);
break;
case AT:
Annotation();
break;
default:
jj_la1[46] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
}
Type();
label_20:
while (true) {
switch (jj_nt.kind) {
case BIT_OR:
;
break;
default:
jj_la1[47] = jj_gen;
break label_20;
}
jj_consume_token(BIT_OR);
Type();
}
switch (jj_nt.kind) {
case ELLIPSIS:
jj_consume_token(ELLIPSIS);
checkForBadVariableArgumentsUsage();
jjtn000.setVarargs();
break;
default:
jj_la1[48] = jj_gen;
;
}
VariableDeclaratorId();
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void ConstructorDeclaration(int modifiers) throws ParseException {
/*@bgen(jjtree) ConstructorDeclaration */
ASTConstructorDeclaration jjtn000 = new ASTConstructorDeclaration(this, JJTCONSTRUCTORDECLARATION);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);jjtn000.setModifiers(modifiers);
Token t;
try {
switch (jj_nt.kind) {
case LT:
TypeParameters();
break;
default:
jj_la1[49] = jj_gen;
;
}
jj_consume_token(IDENTIFIER);
FormalParameters();
switch (jj_nt.kind) {
case THROWS:
jj_consume_token(THROWS);
NameList();
break;
default:
jj_la1[50] = jj_gen;
;
}
jj_consume_token(LBRACE);
if (jj_2_10(2147483647)) {
ExplicitConstructorInvocation();
} else {
;
}
label_21:
while (true) {
if (jj_2_11(1)) {
;
} else {
break label_21;
}
BlockStatement();
}
t = jj_consume_token(RBRACE);
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
if (isPrecededByComment(t)) { jjtn000.setContainsComment(); }
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void ExplicitConstructorInvocation() throws ParseException {
/*@bgen(jjtree) ExplicitConstructorInvocation */
ASTExplicitConstructorInvocation jjtn000 = new ASTExplicitConstructorInvocation(this, JJTEXPLICITCONSTRUCTORINVOCATION);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
if (jj_2_13(2147483647)) {
jj_consume_token(THIS);
jjtn000.setIsThis();
Arguments();
jj_consume_token(SEMICOLON);
} else if (jj_2_14(2147483647)) {
TypeArguments();
jj_consume_token(THIS);
jjtn000.setIsThis();
Arguments();
jj_consume_token(SEMICOLON);
} else {
switch (jj_nt.kind) {
case BOOLEAN:
case BYTE:
case CHAR:
case DOUBLE:
case FALSE:
case FLOAT:
case INT:
case LONG:
case NEW:
case NULL:
case SHORT:
case SUPER:
case THIS:
case TRUE:
case VOID:
case INTEGER_LITERAL:
case FLOATING_POINT_LITERAL:
case HEX_FLOATING_POINT_LITERAL:
case CHARACTER_LITERAL:
case STRING_LITERAL:
case IDENTIFIER:
case LPAREN:
case LT:
if (jj_2_12(2147483647)) {
PrimaryExpression();
jj_consume_token(DOT);
} else {
;
}
switch (jj_nt.kind) {
case LT:
TypeArguments();
break;
default:
jj_la1[51] = jj_gen;
;
}
jj_consume_token(SUPER);
jjtn000.setIsSuper();
Arguments();
jj_consume_token(SEMICOLON);
break;
default:
jj_la1[52] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
}
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void Initializer() throws ParseException {
/*@bgen(jjtree) Initializer */
ASTInitializer jjtn000 = new ASTInitializer(this, JJTINITIALIZER);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
switch (jj_nt.kind) {
case STATIC:
jj_consume_token(STATIC);
jjtn000.setStatic();
break;
default:
jj_la1[53] = jj_gen;
;
}
Block();
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void Type() throws ParseException {
/*@bgen(jjtree) Type */
ASTType jjtn000 = new ASTType(this, JJTTYPE);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
if (jj_2_15(2)) {
ReferenceType();
} else {
switch (jj_nt.kind) {
case BOOLEAN:
case BYTE:
case CHAR:
case DOUBLE:
case FLOAT:
case INT:
case LONG:
case SHORT:
PrimitiveType();
break;
default:
jj_la1[54] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
}
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void ReferenceType() throws ParseException {
/*@bgen(jjtree) ReferenceType */
ASTReferenceType jjtn000 = new ASTReferenceType(this, JJTREFERENCETYPE);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
switch (jj_nt.kind) {
case BOOLEAN:
case BYTE:
case CHAR:
case DOUBLE:
case FLOAT:
case INT:
case LONG:
case SHORT:
PrimitiveType();
label_22:
while (true) {
jj_consume_token(LBRACKET);
jj_consume_token(RBRACKET);
jjtn000.bumpArrayDepth();
if (jj_2_16(2)) {
;
} else {
break label_22;
}
}
break;
case IDENTIFIER:
ClassOrInterfaceType();
label_23:
while (true) {
if (jj_2_17(2)) {
;
} else {
break label_23;
}
jj_consume_token(LBRACKET);
jj_consume_token(RBRACKET);
jjtn000.bumpArrayDepth();
}
break;
default:
jj_la1[55] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void ClassOrInterfaceType() throws ParseException {
/*@bgen(jjtree) ClassOrInterfaceType */
ASTClassOrInterfaceType jjtn000 = new ASTClassOrInterfaceType(this, JJTCLASSORINTERFACETYPE);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);StringBuffer s = new StringBuffer();
Token t;
try {
t = jj_consume_token(IDENTIFIER);
s.append(t.image);
if (jj_2_18(2)) {
TypeArguments();
} else {
;
}
label_24:
while (true) {
if (jj_2_19(2)) {
;
} else {
break label_24;
}
jj_consume_token(DOT);
t = jj_consume_token(IDENTIFIER);
s.append('.').append(t.image);
if (jj_2_20(2)) {
TypeArguments();
} else {
;
}
}
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
jjtn000.setImage(s.toString());
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void TypeArguments() throws ParseException {
/*@bgen(jjtree) TypeArguments */
ASTTypeArguments jjtn000 = new ASTTypeArguments(this, JJTTYPEARGUMENTS);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
if (jj_2_21(2)) {
jj_consume_token(LT);
checkForBadGenericsUsage();
TypeArgument();
label_25:
while (true) {
switch (jj_nt.kind) {
case COMMA:
;
break;
default:
jj_la1[56] = jj_gen;
break label_25;
}
jj_consume_token(COMMA);
TypeArgument();
}
jj_consume_token(GT);
} else {
switch (jj_nt.kind) {
case LT:
jj_consume_token(LT);
checkForBadDiamondUsage();
jj_consume_token(GT);
break;
default:
jj_la1[57] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
}
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void TypeArgument() throws ParseException {
/*@bgen(jjtree) TypeArgument */
ASTTypeArgument jjtn000 = new ASTTypeArgument(this, JJTTYPEARGUMENT);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
switch (jj_nt.kind) {
case BOOLEAN:
case BYTE:
case CHAR:
case DOUBLE:
case FLOAT:
case INT:
case LONG:
case SHORT:
case IDENTIFIER:
ReferenceType();
break;
case HOOK:
jj_consume_token(HOOK);
switch (jj_nt.kind) {
case EXTENDS:
case SUPER:
WildcardBounds();
break;
default:
jj_la1[58] = jj_gen;
;
}
break;
default:
jj_la1[59] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void WildcardBounds() throws ParseException {
/*@bgen(jjtree) WildcardBounds */
ASTWildcardBounds jjtn000 = new ASTWildcardBounds(this, JJTWILDCARDBOUNDS);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
switch (jj_nt.kind) {
case EXTENDS:
jj_consume_token(EXTENDS);
ReferenceType();
break;
case SUPER:
jj_consume_token(SUPER);
ReferenceType();
break;
default:
jj_la1[60] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void PrimitiveType() throws ParseException {
/*@bgen(jjtree) PrimitiveType */
ASTPrimitiveType jjtn000 = new ASTPrimitiveType(this, JJTPRIMITIVETYPE);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
switch (jj_nt.kind) {
case BOOLEAN:
jj_consume_token(BOOLEAN);
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
jjtn000.setImage("boolean");
break;
case CHAR:
jj_consume_token(CHAR);
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
jjtn000.setImage("char");
break;
case BYTE:
jj_consume_token(BYTE);
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
jjtn000.setImage("byte");
break;
case SHORT:
jj_consume_token(SHORT);
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
jjtn000.setImage("short");
break;
case INT:
jj_consume_token(INT);
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
jjtn000.setImage("int");
break;
case LONG:
jj_consume_token(LONG);
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
jjtn000.setImage("long");
break;
case FLOAT:
jj_consume_token(FLOAT);
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
jjtn000.setImage("float");
break;
case DOUBLE:
jj_consume_token(DOUBLE);
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
jjtn000.setImage("double");
break;
default:
jj_la1[61] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void ResultType() throws ParseException {
/*@bgen(jjtree) ResultType */
ASTResultType jjtn000 = new ASTResultType(this, JJTRESULTTYPE);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
switch (jj_nt.kind) {
case VOID:
jj_consume_token(VOID);
break;
case BOOLEAN:
case BYTE:
case CHAR:
case DOUBLE:
case FLOAT:
case INT:
case LONG:
case SHORT:
case IDENTIFIER:
Type();
break;
default:
jj_la1[62] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void Name() throws ParseException {
/*@bgen(jjtree) Name */
ASTName jjtn000 = new ASTName(this, JJTNAME);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);StringBuffer s = new StringBuffer();
Token t;
try {
t = jj_consume_token(IDENTIFIER);
jjtn000.testingOnly__setBeginLine( t.beginLine);
jjtn000.testingOnly__setBeginColumn( t.beginColumn);
s.append(t.image);
label_26:
while (true) {
if (jj_2_22(2)) {
;
} else {
break label_26;
}
jj_consume_token(DOT);
t = jj_consume_token(IDENTIFIER);
s.append('.').append(t.image);
}
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
jjtn000.setImage(s.toString());
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void NameList() throws ParseException {
/*@bgen(jjtree) NameList */
ASTNameList jjtn000 = new ASTNameList(this, JJTNAMELIST);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
Name();
label_27:
while (true) {
switch (jj_nt.kind) {
case COMMA:
;
break;
default:
jj_la1[63] = jj_gen;
break label_27;
}
jj_consume_token(COMMA);
Name();
}
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void Expression() throws ParseException {
/*@bgen(jjtree) Expression */
ASTExpression jjtn000 = new ASTExpression(this, JJTEXPRESSION);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
ConditionalExpression();
switch (jj_nt.kind) {
case ASSIGN:
case PLUSASSIGN:
case MINUSASSIGN:
case STARASSIGN:
case SLASHASSIGN:
case ANDASSIGN:
case ORASSIGN:
case XORASSIGN:
case REMASSIGN:
case LSHIFTASSIGN:
case RSIGNEDSHIFTASSIGN:
case RUNSIGNEDSHIFTASSIGN:
AssignmentOperator();
Expression();
break;
default:
jj_la1[64] = jj_gen;
;
}
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void AssignmentOperator() throws ParseException {
/*@bgen(jjtree) AssignmentOperator */
ASTAssignmentOperator jjtn000 = new ASTAssignmentOperator(this, JJTASSIGNMENTOPERATOR);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
switch (jj_nt.kind) {
case ASSIGN:
jj_consume_token(ASSIGN);
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
jjtn000.setImage("=");
break;
case STARASSIGN:
jj_consume_token(STARASSIGN);
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
jjtn000.setImage("*="); jjtn000.setCompound();
break;
case SLASHASSIGN:
jj_consume_token(SLASHASSIGN);
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
jjtn000.setImage("/="); jjtn000.setCompound();
break;
case REMASSIGN:
jj_consume_token(REMASSIGN);
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
jjtn000.setImage("%="); jjtn000.setCompound();
break;
case PLUSASSIGN:
jj_consume_token(PLUSASSIGN);
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
jjtn000.setImage("+="); jjtn000.setCompound();
break;
case MINUSASSIGN:
jj_consume_token(MINUSASSIGN);
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
jjtn000.setImage("-="); jjtn000.setCompound();
break;
case LSHIFTASSIGN:
jj_consume_token(LSHIFTASSIGN);
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
jjtn000.setImage("<<="); jjtn000.setCompound();
break;
case RSIGNEDSHIFTASSIGN:
jj_consume_token(RSIGNEDSHIFTASSIGN);
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
jjtn000.setImage(">>="); jjtn000.setCompound();
break;
case RUNSIGNEDSHIFTASSIGN:
jj_consume_token(RUNSIGNEDSHIFTASSIGN);
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
jjtn000.setImage(">>>="); jjtn000.setCompound();
break;
case ANDASSIGN:
jj_consume_token(ANDASSIGN);
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
jjtn000.setImage("&="); jjtn000.setCompound();
break;
case XORASSIGN:
jj_consume_token(XORASSIGN);
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
jjtn000.setImage("^="); jjtn000.setCompound();
break;
case ORASSIGN:
jj_consume_token(ORASSIGN);
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
jjtn000.setImage("|="); jjtn000.setCompound();
break;
default:
jj_la1[65] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void ConditionalExpression() throws ParseException {
/*@bgen(jjtree) #ConditionalExpression(> 1) */
ASTConditionalExpression jjtn000 = new ASTConditionalExpression(this, JJTCONDITIONALEXPRESSION);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
ConditionalOrExpression();
switch (jj_nt.kind) {
case HOOK:
jj_consume_token(HOOK);
jjtn000.setTernary();
Expression();
jj_consume_token(COLON);
ConditionalExpression();
break;
default:
jj_la1[66] = jj_gen;
;
}
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, jjtree.nodeArity() > 1);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void ConditionalOrExpression() throws ParseException {
/*@bgen(jjtree) #ConditionalOrExpression(> 1) */
ASTConditionalOrExpression jjtn000 = new ASTConditionalOrExpression(this, JJTCONDITIONALOREXPRESSION);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
ConditionalAndExpression();
label_28:
while (true) {
switch (jj_nt.kind) {
case SC_OR:
;
break;
default:
jj_la1[67] = jj_gen;
break label_28;
}
jj_consume_token(SC_OR);
ConditionalAndExpression();
}
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, jjtree.nodeArity() > 1);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void ConditionalAndExpression() throws ParseException {
/*@bgen(jjtree) #ConditionalAndExpression(> 1) */
ASTConditionalAndExpression jjtn000 = new ASTConditionalAndExpression(this, JJTCONDITIONALANDEXPRESSION);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
InclusiveOrExpression();
label_29:
while (true) {
switch (jj_nt.kind) {
case SC_AND:
;
break;
default:
jj_la1[68] = jj_gen;
break label_29;
}
jj_consume_token(SC_AND);
InclusiveOrExpression();
}
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, jjtree.nodeArity() > 1);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void InclusiveOrExpression() throws ParseException {
/*@bgen(jjtree) #InclusiveOrExpression(> 1) */
ASTInclusiveOrExpression jjtn000 = new ASTInclusiveOrExpression(this, JJTINCLUSIVEOREXPRESSION);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
ExclusiveOrExpression();
label_30:
while (true) {
switch (jj_nt.kind) {
case BIT_OR:
;
break;
default:
jj_la1[69] = jj_gen;
break label_30;
}
jj_consume_token(BIT_OR);
ExclusiveOrExpression();
}
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, jjtree.nodeArity() > 1);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void ExclusiveOrExpression() throws ParseException {
/*@bgen(jjtree) #ExclusiveOrExpression(> 1) */
ASTExclusiveOrExpression jjtn000 = new ASTExclusiveOrExpression(this, JJTEXCLUSIVEOREXPRESSION);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
AndExpression();
label_31:
while (true) {
switch (jj_nt.kind) {
case XOR:
;
break;
default:
jj_la1[70] = jj_gen;
break label_31;
}
jj_consume_token(XOR);
AndExpression();
}
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, jjtree.nodeArity() > 1);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void AndExpression() throws ParseException {
/*@bgen(jjtree) #AndExpression(> 1) */
ASTAndExpression jjtn000 = new ASTAndExpression(this, JJTANDEXPRESSION);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
EqualityExpression();
label_32:
while (true) {
switch (jj_nt.kind) {
case BIT_AND:
;
break;
default:
jj_la1[71] = jj_gen;
break label_32;
}
jj_consume_token(BIT_AND);
EqualityExpression();
}
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, jjtree.nodeArity() > 1);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void EqualityExpression() throws ParseException {
/*@bgen(jjtree) #EqualityExpression(> 1) */
ASTEqualityExpression jjtn000 = new ASTEqualityExpression(this, JJTEQUALITYEXPRESSION);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
InstanceOfExpression();
label_33:
while (true) {
switch (jj_nt.kind) {
case EQ:
case NE:
;
break;
default:
jj_la1[72] = jj_gen;
break label_33;
}
switch (jj_nt.kind) {
case EQ:
jj_consume_token(EQ);
jjtn000.setImage("==");
break;
case NE:
jj_consume_token(NE);
jjtn000.setImage("!=");
break;
default:
jj_la1[73] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
InstanceOfExpression();
}
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, jjtree.nodeArity() > 1);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void InstanceOfExpression() throws ParseException {
/*@bgen(jjtree) #InstanceOfExpression(> 1) */
ASTInstanceOfExpression jjtn000 = new ASTInstanceOfExpression(this, JJTINSTANCEOFEXPRESSION);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
RelationalExpression();
switch (jj_nt.kind) {
case INSTANCEOF:
jj_consume_token(INSTANCEOF);
Type();
break;
default:
jj_la1[74] = jj_gen;
;
}
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, jjtree.nodeArity() > 1);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void RelationalExpression() throws ParseException {
/*@bgen(jjtree) #RelationalExpression(> 1) */
ASTRelationalExpression jjtn000 = new ASTRelationalExpression(this, JJTRELATIONALEXPRESSION);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
ShiftExpression();
label_34:
while (true) {
switch (jj_nt.kind) {
case LT:
case LE:
case GE:
case GT:
;
break;
default:
jj_la1[75] = jj_gen;
break label_34;
}
switch (jj_nt.kind) {
case LT:
jj_consume_token(LT);
jjtn000.setImage("<");
break;
case GT:
jj_consume_token(GT);
jjtn000.setImage(">");
break;
case LE:
jj_consume_token(LE);
jjtn000.setImage("<=");
break;
case GE:
jj_consume_token(GE);
jjtn000.setImage(">=");
break;
default:
jj_la1[76] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
ShiftExpression();
}
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, jjtree.nodeArity() > 1);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void ShiftExpression() throws ParseException {
/*@bgen(jjtree) #ShiftExpression(> 1) */
ASTShiftExpression jjtn000 = new ASTShiftExpression(this, JJTSHIFTEXPRESSION);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
AdditiveExpression();
label_35:
while (true) {
if (jj_2_23(1)) {
;
} else {
break label_35;
}
switch (jj_nt.kind) {
case LSHIFT:
jj_consume_token(LSHIFT);
jjtn000.setImage("<<");
break;
default:
jj_la1[77] = jj_gen;
if (jj_2_24(1)) {
RSIGNEDSHIFT();
} else if (jj_2_25(1)) {
RUNSIGNEDSHIFT();
} else {
jj_consume_token(-1);
throw new ParseException();
}
}
AdditiveExpression();
}
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, jjtree.nodeArity() > 1);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void AdditiveExpression() throws ParseException {
/*@bgen(jjtree) #AdditiveExpression(> 1) */
ASTAdditiveExpression jjtn000 = new ASTAdditiveExpression(this, JJTADDITIVEEXPRESSION);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
MultiplicativeExpression();
label_36:
while (true) {
switch (jj_nt.kind) {
case PLUS:
case MINUS:
;
break;
default:
jj_la1[78] = jj_gen;
break label_36;
}
switch (jj_nt.kind) {
case PLUS:
jj_consume_token(PLUS);
jjtn000.setImage("+");
break;
case MINUS:
jj_consume_token(MINUS);
jjtn000.setImage("-");
break;
default:
jj_la1[79] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
MultiplicativeExpression();
}
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, jjtree.nodeArity() > 1);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void MultiplicativeExpression() throws ParseException {
/*@bgen(jjtree) #MultiplicativeExpression(> 1) */
ASTMultiplicativeExpression jjtn000 = new ASTMultiplicativeExpression(this, JJTMULTIPLICATIVEEXPRESSION);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
UnaryExpression();
label_37:
while (true) {
switch (jj_nt.kind) {
case STAR:
case SLASH:
case REM:
;
break;
default:
jj_la1[80] = jj_gen;
break label_37;
}
switch (jj_nt.kind) {
case STAR:
jj_consume_token(STAR);
jjtn000.setImage("*");
break;
case SLASH:
jj_consume_token(SLASH);
jjtn000.setImage("/");
break;
case REM:
jj_consume_token(REM);
jjtn000.setImage("%");
break;
default:
jj_la1[81] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
UnaryExpression();
}
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, jjtree.nodeArity() > 1);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void UnaryExpression() throws ParseException {
/*@bgen(jjtree) #UnaryExpression( ( jjtn000 . getImage ( ) != null )) */
ASTUnaryExpression jjtn000 = new ASTUnaryExpression(this, JJTUNARYEXPRESSION);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
switch (jj_nt.kind) {
case PLUS:
case MINUS:
switch (jj_nt.kind) {
case PLUS:
jj_consume_token(PLUS);
jjtn000.setImage("+");
break;
case MINUS:
jj_consume_token(MINUS);
jjtn000.setImage("-");
break;
default:
jj_la1[82] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
UnaryExpression();
break;
case INCR:
PreIncrementExpression();
break;
case DECR:
PreDecrementExpression();
break;
case BOOLEAN:
case BYTE:
case CHAR:
case DOUBLE:
case FALSE:
case FLOAT:
case INT:
case LONG:
case NEW:
case NULL:
case SHORT:
case SUPER:
case THIS:
case TRUE:
case VOID:
case INTEGER_LITERAL:
case FLOATING_POINT_LITERAL:
case HEX_FLOATING_POINT_LITERAL:
case CHARACTER_LITERAL:
case STRING_LITERAL:
case IDENTIFIER:
case LPAREN:
case BANG:
case TILDE:
UnaryExpressionNotPlusMinus();
break;
default:
jj_la1[83] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, ( jjtn000 . getImage ( ) != null ));
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void PreIncrementExpression() throws ParseException {
/*@bgen(jjtree) PreIncrementExpression */
ASTPreIncrementExpression jjtn000 = new ASTPreIncrementExpression(this, JJTPREINCREMENTEXPRESSION);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
jj_consume_token(INCR);
PrimaryExpression();
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void PreDecrementExpression() throws ParseException {
/*@bgen(jjtree) PreDecrementExpression */
ASTPreDecrementExpression jjtn000 = new ASTPreDecrementExpression(this, JJTPREDECREMENTEXPRESSION);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
jj_consume_token(DECR);
PrimaryExpression();
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void UnaryExpressionNotPlusMinus() throws ParseException {
/*@bgen(jjtree) #UnaryExpressionNotPlusMinus( ( jjtn000 . getImage ( ) != null )) */
ASTUnaryExpressionNotPlusMinus jjtn000 = new ASTUnaryExpressionNotPlusMinus(this, JJTUNARYEXPRESSIONNOTPLUSMINUS);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
switch (jj_nt.kind) {
case BANG:
case TILDE:
switch (jj_nt.kind) {
case TILDE:
jj_consume_token(TILDE);
jjtn000.setImage("~");
break;
case BANG:
jj_consume_token(BANG);
jjtn000.setImage("!");
break;
default:
jj_la1[84] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
UnaryExpression();
break;
default:
jj_la1[85] = jj_gen;
if (jj_2_26(2147483647)) {
CastExpression();
} else {
switch (jj_nt.kind) {
case BOOLEAN:
case BYTE:
case CHAR:
case DOUBLE:
case FALSE:
case FLOAT:
case INT:
case LONG:
case NEW:
case NULL:
case SHORT:
case SUPER:
case THIS:
case TRUE:
case VOID:
case INTEGER_LITERAL:
case FLOATING_POINT_LITERAL:
case HEX_FLOATING_POINT_LITERAL:
case CHARACTER_LITERAL:
case STRING_LITERAL:
case IDENTIFIER:
case LPAREN:
PostfixExpression();
break;
default:
jj_la1[86] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
}
}
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, ( jjtn000 . getImage ( ) != null ));
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void CastLookahead() throws ParseException {
if (jj_2_27(3)) {
jj_consume_token(LPAREN);
PrimitiveType();
jj_consume_token(RPAREN);
} else if (jj_2_28(2147483647)) {
jj_consume_token(LPAREN);
Type();
jj_consume_token(LBRACKET);
jj_consume_token(RBRACKET);
} else {
switch (jj_nt.kind) {
case LPAREN:
jj_consume_token(LPAREN);
Type();
jj_consume_token(RPAREN);
switch (jj_nt.kind) {
case TILDE:
jj_consume_token(TILDE);
break;
case BANG:
jj_consume_token(BANG);
break;
case LPAREN:
jj_consume_token(LPAREN);
break;
case IDENTIFIER:
jj_consume_token(IDENTIFIER);
break;
case THIS:
jj_consume_token(THIS);
break;
case SUPER:
jj_consume_token(SUPER);
break;
case NEW:
jj_consume_token(NEW);
break;
case FALSE:
case NULL:
case TRUE:
case INTEGER_LITERAL:
case FLOATING_POINT_LITERAL:
case HEX_FLOATING_POINT_LITERAL:
case CHARACTER_LITERAL:
case STRING_LITERAL:
Literal();
break;
default:
jj_la1[87] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
break;
default:
jj_la1[88] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void PostfixExpression() throws ParseException {
/*@bgen(jjtree) #PostfixExpression( ( jjtn000 . getImage ( ) != null )) */
ASTPostfixExpression jjtn000 = new ASTPostfixExpression(this, JJTPOSTFIXEXPRESSION);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
PrimaryExpression();
switch (jj_nt.kind) {
case INCR:
case DECR:
switch (jj_nt.kind) {
case INCR:
jj_consume_token(INCR);
jjtn000.setImage("++");
break;
case DECR:
jj_consume_token(DECR);
jjtn000.setImage("--");
break;
default:
jj_la1[89] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
break;
default:
jj_la1[90] = jj_gen;
;
}
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, ( jjtn000 . getImage ( ) != null ));
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void CastExpression() throws ParseException {
/*@bgen(jjtree) #CastExpression(> 1) */
ASTCastExpression jjtn000 = new ASTCastExpression(this, JJTCASTEXPRESSION);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
if (jj_2_29(2147483647)) {
jj_consume_token(LPAREN);
Type();
jj_consume_token(RPAREN);
UnaryExpression();
} else {
switch (jj_nt.kind) {
case LPAREN:
jj_consume_token(LPAREN);
Type();
jj_consume_token(RPAREN);
UnaryExpressionNotPlusMinus();
break;
default:
jj_la1[91] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
}
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, jjtree.nodeArity() > 1);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void PrimaryExpression() throws ParseException {
/*@bgen(jjtree) PrimaryExpression */
ASTPrimaryExpression jjtn000 = new ASTPrimaryExpression(this, JJTPRIMARYEXPRESSION);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
PrimaryPrefix();
label_38:
while (true) {
if (jj_2_30(2)) {
;
} else {
break label_38;
}
PrimarySuffix();
}
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void MemberSelector() throws ParseException {
/*@bgen(jjtree) MemberSelector */
ASTMemberSelector jjtn000 = new ASTMemberSelector(this, JJTMEMBERSELECTOR);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);Token t;
try {
jj_consume_token(DOT);
TypeArguments();
t = jj_consume_token(IDENTIFIER);
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
jjtn000.setImage(t.image);
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void PrimaryPrefix() throws ParseException {
/*@bgen(jjtree) PrimaryPrefix */
ASTPrimaryPrefix jjtn000 = new ASTPrimaryPrefix(this, JJTPRIMARYPREFIX);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);Token t;
try {
switch (jj_nt.kind) {
case FALSE:
case NULL:
case TRUE:
case INTEGER_LITERAL:
case FLOATING_POINT_LITERAL:
case HEX_FLOATING_POINT_LITERAL:
case CHARACTER_LITERAL:
case STRING_LITERAL:
Literal();
break;
case THIS:
jj_consume_token(THIS);
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
jjtn000.setUsesThisModifier();
break;
case SUPER:
jj_consume_token(SUPER);
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
jjtn000.setUsesSuperModifier();
break;
case LPAREN:
jj_consume_token(LPAREN);
Expression();
jj_consume_token(RPAREN);
break;
case NEW:
AllocationExpression();
break;
default:
jj_la1[92] = jj_gen;
if (jj_2_31(2147483647)) {
ResultType();
jj_consume_token(DOT);
jj_consume_token(CLASS);
} else {
switch (jj_nt.kind) {
case IDENTIFIER:
Name();
break;
default:
jj_la1[93] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
}
}
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void PrimarySuffix() throws ParseException {
/*@bgen(jjtree) PrimarySuffix */
ASTPrimarySuffix jjtn000 = new ASTPrimarySuffix(this, JJTPRIMARYSUFFIX);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);Token t;
try {
if (jj_2_32(2)) {
jj_consume_token(DOT);
jj_consume_token(THIS);
} else if (jj_2_33(2)) {
jj_consume_token(DOT);
AllocationExpression();
} else if (jj_2_34(3)) {
MemberSelector();
} else {
switch (jj_nt.kind) {
case LBRACKET:
jj_consume_token(LBRACKET);
Expression();
jj_consume_token(RBRACKET);
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
jjtn000.setIsArrayDereference();
break;
case DOT:
jj_consume_token(DOT);
t = jj_consume_token(IDENTIFIER);
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
jjtn000.setImage(t.image);
break;
case LPAREN:
Arguments();
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
jjtn000.setIsArguments();
break;
default:
jj_la1[94] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
}
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void Literal() throws ParseException {
/*@bgen(jjtree) Literal */
ASTLiteral jjtn000 = new ASTLiteral(this, JJTLITERAL);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
switch (jj_nt.kind) {
case INTEGER_LITERAL:
Token t;
t = jj_consume_token(INTEGER_LITERAL);
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
checkForBadNumericalLiteralslUsage(t); jjtn000.setImage(t.image); jjtn000.setIntLiteral();
break;
case FLOATING_POINT_LITERAL:
t = jj_consume_token(FLOATING_POINT_LITERAL);
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
checkForBadNumericalLiteralslUsage(t); jjtn000.setImage(t.image); jjtn000.setFloatLiteral();
break;
case HEX_FLOATING_POINT_LITERAL:
t = jj_consume_token(HEX_FLOATING_POINT_LITERAL);
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
checkForBadHexFloatingPointLiteral(); checkForBadNumericalLiteralslUsage(t); jjtn000.setImage(t.image); jjtn000.setFloatLiteral();
break;
case CHARACTER_LITERAL:
t = jj_consume_token(CHARACTER_LITERAL);
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
jjtn000.setImage(t.image); jjtn000.setCharLiteral();
break;
case STRING_LITERAL:
t = jj_consume_token(STRING_LITERAL);
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
jjtn000.setImage(t.image); jjtn000.setStringLiteral();
break;
case FALSE:
case TRUE:
BooleanLiteral();
break;
case NULL:
NullLiteral();
break;
default:
jj_la1[95] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void BooleanLiteral() throws ParseException {
/*@bgen(jjtree) BooleanLiteral */
ASTBooleanLiteral jjtn000 = new ASTBooleanLiteral(this, JJTBOOLEANLITERAL);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
switch (jj_nt.kind) {
case TRUE:
jj_consume_token(TRUE);
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
jjtn000.setTrue();
break;
case FALSE:
jj_consume_token(FALSE);
break;
default:
jj_la1[96] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void NullLiteral() throws ParseException {
/*@bgen(jjtree) NullLiteral */
ASTNullLiteral jjtn000 = new ASTNullLiteral(this, JJTNULLLITERAL);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
jj_consume_token(NULL);
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void Arguments() throws ParseException {
/*@bgen(jjtree) Arguments */
ASTArguments jjtn000 = new ASTArguments(this, JJTARGUMENTS);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
jj_consume_token(LPAREN);
switch (jj_nt.kind) {
case BOOLEAN:
case BYTE:
case CHAR:
case DOUBLE:
case FALSE:
case FLOAT:
case INT:
case LONG:
case NEW:
case NULL:
case SHORT:
case SUPER:
case THIS:
case TRUE:
case VOID:
case INTEGER_LITERAL:
case FLOATING_POINT_LITERAL:
case HEX_FLOATING_POINT_LITERAL:
case CHARACTER_LITERAL:
case STRING_LITERAL:
case IDENTIFIER:
case LPAREN:
case BANG:
case TILDE:
case INCR:
case DECR:
case PLUS:
case MINUS:
ArgumentList();
break;
default:
jj_la1[97] = jj_gen;
;
}
jj_consume_token(RPAREN);
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void ArgumentList() throws ParseException {
/*@bgen(jjtree) ArgumentList */
ASTArgumentList jjtn000 = new ASTArgumentList(this, JJTARGUMENTLIST);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
Expression();
label_39:
while (true) {
switch (jj_nt.kind) {
case COMMA:
;
break;
default:
jj_la1[98] = jj_gen;
break label_39;
}
jj_consume_token(COMMA);
Expression();
}
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void AllocationExpression() throws ParseException {
/*@bgen(jjtree) AllocationExpression */
ASTAllocationExpression jjtn000 = new ASTAllocationExpression(this, JJTALLOCATIONEXPRESSION);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
if (jj_2_35(2)) {
jj_consume_token(NEW);
PrimitiveType();
ArrayDimsAndInits();
} else {
switch (jj_nt.kind) {
case NEW:
jj_consume_token(NEW);
ClassOrInterfaceType();
switch (jj_nt.kind) {
case LT:
TypeArguments();
break;
default:
jj_la1[99] = jj_gen;
;
}
switch (jj_nt.kind) {
case LBRACKET:
ArrayDimsAndInits();
break;
case LPAREN:
Arguments();
switch (jj_nt.kind) {
case LBRACE:
ClassOrInterfaceBody();
break;
default:
jj_la1[100] = jj_gen;
;
}
break;
default:
jj_la1[101] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
break;
default:
jj_la1[102] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
}
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void ArrayDimsAndInits() throws ParseException {
/*@bgen(jjtree) ArrayDimsAndInits */
ASTArrayDimsAndInits jjtn000 = new ASTArrayDimsAndInits(this, JJTARRAYDIMSANDINITS);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
if (jj_2_38(2)) {
label_40:
while (true) {
jj_consume_token(LBRACKET);
Expression();
jj_consume_token(RBRACKET);
if (jj_2_36(2)) {
;
} else {
break label_40;
}
}
label_41:
while (true) {
if (jj_2_37(2)) {
;
} else {
break label_41;
}
jj_consume_token(LBRACKET);
jj_consume_token(RBRACKET);
}
} else {
switch (jj_nt.kind) {
case LBRACKET:
label_42:
while (true) {
jj_consume_token(LBRACKET);
jj_consume_token(RBRACKET);
switch (jj_nt.kind) {
case LBRACKET:
;
break;
default:
jj_la1[103] = jj_gen;
break label_42;
}
}
ArrayInitializer();
break;
default:
jj_la1[104] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
}
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void Statement() throws ParseException {
/*@bgen(jjtree) Statement */
ASTStatement jjtn000 = new ASTStatement(this, JJTSTATEMENT);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
if (isNextTokenAnAssert()) {
AssertStatement();
} else if (jj_2_39(2)) {
LabeledStatement();
} else {
switch (jj_nt.kind) {
case LBRACE:
Block();
break;
case SEMICOLON:
EmptyStatement();
break;
case BOOLEAN:
case BYTE:
case CHAR:
case DOUBLE:
case FALSE:
case FLOAT:
case INT:
case LONG:
case NEW:
case NULL:
case SHORT:
case SUPER:
case THIS:
case TRUE:
case VOID:
case INTEGER_LITERAL:
case FLOATING_POINT_LITERAL:
case HEX_FLOATING_POINT_LITERAL:
case CHARACTER_LITERAL:
case STRING_LITERAL:
case IDENTIFIER:
case LPAREN:
case INCR:
case DECR:
StatementExpression();
jj_consume_token(SEMICOLON);
break;
case SWITCH:
SwitchStatement();
break;
case IF:
IfStatement();
break;
case WHILE:
WhileStatement();
break;
case DO:
DoStatement();
break;
case FOR:
ForStatement();
break;
case BREAK:
BreakStatement();
break;
case CONTINUE:
ContinueStatement();
break;
case RETURN:
ReturnStatement();
break;
case THROW:
ThrowStatement();
break;
case SYNCHRONIZED:
SynchronizedStatement();
break;
case TRY:
TryStatement();
break;
default:
jj_la1[105] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
}
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void LabeledStatement() throws ParseException {
/*@bgen(jjtree) LabeledStatement */
ASTLabeledStatement jjtn000 = new ASTLabeledStatement(this, JJTLABELEDSTATEMENT);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);Token t;
try {
t = jj_consume_token(IDENTIFIER);
jjtn000.setImage(t.image);
jj_consume_token(COLON);
Statement();
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void Block() throws ParseException {
/*@bgen(jjtree) Block */
ASTBlock jjtn000 = new ASTBlock(this, JJTBLOCK);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);Token t;
try {
jj_consume_token(LBRACE);
label_43:
while (true) {
if (jj_2_40(1)) {
;
} else {
break label_43;
}
BlockStatement();
}
t = jj_consume_token(RBRACE);
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
if (isPrecededByComment(t)) { jjtn000.setContainsComment(); }
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void BlockStatement() throws ParseException {
/*@bgen(jjtree) BlockStatement */
ASTBlockStatement jjtn000 = new ASTBlockStatement(this, JJTBLOCKSTATEMENT);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
if (isNextTokenAnAssert()) {
AssertStatement();
} else if (jj_2_41(2147483647)) {
LocalVariableDeclaration();
jj_consume_token(SEMICOLON);
} else if (jj_2_42(1)) {
Statement();
} else if (jj_2_43(2147483647)) {
switch (jj_nt.kind) {
case AT:
Annotation();
break;
default:
jj_la1[106] = jj_gen;
;
}
ClassOrInterfaceDeclaration(0);
} else {
jj_consume_token(-1);
throw new ParseException();
}
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void LocalVariableDeclaration() throws ParseException {
/*@bgen(jjtree) LocalVariableDeclaration */
ASTLocalVariableDeclaration jjtn000 = new ASTLocalVariableDeclaration(this, JJTLOCALVARIABLEDECLARATION);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
label_44:
while (true) {
switch (jj_nt.kind) {
case FINAL:
case AT:
;
break;
default:
jj_la1[107] = jj_gen;
break label_44;
}
switch (jj_nt.kind) {
case FINAL:
jj_consume_token(FINAL);
jjtn000.setFinal(true);
break;
case AT:
Annotation();
break;
default:
jj_la1[108] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
}
Type();
VariableDeclarator();
label_45:
while (true) {
switch (jj_nt.kind) {
case COMMA:
;
break;
default:
jj_la1[109] = jj_gen;
break label_45;
}
jj_consume_token(COMMA);
VariableDeclarator();
}
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void EmptyStatement() throws ParseException {
/*@bgen(jjtree) EmptyStatement */
ASTEmptyStatement jjtn000 = new ASTEmptyStatement(this, JJTEMPTYSTATEMENT);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
jj_consume_token(SEMICOLON);
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void StatementExpression() throws ParseException {
/*@bgen(jjtree) StatementExpression */
ASTStatementExpression jjtn000 = new ASTStatementExpression(this, JJTSTATEMENTEXPRESSION);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
switch (jj_nt.kind) {
case INCR:
PreIncrementExpression();
break;
case DECR:
PreDecrementExpression();
break;
default:
jj_la1[111] = jj_gen;
if (jj_2_44(2147483647)) {
PostfixExpression();
} else {
switch (jj_nt.kind) {
case BOOLEAN:
case BYTE:
case CHAR:
case DOUBLE:
case FALSE:
case FLOAT:
case INT:
case LONG:
case NEW:
case NULL:
case SHORT:
case SUPER:
case THIS:
case TRUE:
case VOID:
case INTEGER_LITERAL:
case FLOATING_POINT_LITERAL:
case HEX_FLOATING_POINT_LITERAL:
case CHARACTER_LITERAL:
case STRING_LITERAL:
case IDENTIFIER:
case LPAREN:
PrimaryExpression();
switch (jj_nt.kind) {
case ASSIGN:
case PLUSASSIGN:
case MINUSASSIGN:
case STARASSIGN:
case SLASHASSIGN:
case ANDASSIGN:
case ORASSIGN:
case XORASSIGN:
case REMASSIGN:
case LSHIFTASSIGN:
case RSIGNEDSHIFTASSIGN:
case RUNSIGNEDSHIFTASSIGN:
AssignmentOperator();
Expression();
break;
default:
jj_la1[110] = jj_gen;
;
}
break;
default:
jj_la1[112] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
}
}
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void SwitchStatement() throws ParseException {
/*@bgen(jjtree) SwitchStatement */
ASTSwitchStatement jjtn000 = new ASTSwitchStatement(this, JJTSWITCHSTATEMENT);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
jj_consume_token(SWITCH);
jj_consume_token(LPAREN);
Expression();
jj_consume_token(RPAREN);
jj_consume_token(LBRACE);
label_46:
while (true) {
switch (jj_nt.kind) {
case CASE:
case _DEFAULT:
;
break;
default:
jj_la1[113] = jj_gen;
break label_46;
}
SwitchLabel();
label_47:
while (true) {
if (jj_2_45(1)) {
;
} else {
break label_47;
}
BlockStatement();
}
}
jj_consume_token(RBRACE);
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void SwitchLabel() throws ParseException {
/*@bgen(jjtree) SwitchLabel */
ASTSwitchLabel jjtn000 = new ASTSwitchLabel(this, JJTSWITCHLABEL);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
switch (jj_nt.kind) {
case CASE:
jj_consume_token(CASE);
Expression();
jj_consume_token(COLON);
break;
case _DEFAULT:
jj_consume_token(_DEFAULT);
jjtn000.setDefault();
jj_consume_token(COLON);
break;
default:
jj_la1[114] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void IfStatement() throws ParseException {
/*@bgen(jjtree) IfStatement */
ASTIfStatement jjtn000 = new ASTIfStatement(this, JJTIFSTATEMENT);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
jj_consume_token(IF);
jj_consume_token(LPAREN);
Expression();
jj_consume_token(RPAREN);
Statement();
switch (jj_nt.kind) {
case ELSE:
jj_consume_token(ELSE);
jjtn000.setHasElse();
Statement();
break;
default:
jj_la1[115] = jj_gen;
;
}
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void WhileStatement() throws ParseException {
/*@bgen(jjtree) WhileStatement */
ASTWhileStatement jjtn000 = new ASTWhileStatement(this, JJTWHILESTATEMENT);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
jj_consume_token(WHILE);
jj_consume_token(LPAREN);
Expression();
jj_consume_token(RPAREN);
Statement();
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void DoStatement() throws ParseException {
/*@bgen(jjtree) DoStatement */
ASTDoStatement jjtn000 = new ASTDoStatement(this, JJTDOSTATEMENT);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
jj_consume_token(DO);
Statement();
jj_consume_token(WHILE);
jj_consume_token(LPAREN);
Expression();
jj_consume_token(RPAREN);
jj_consume_token(SEMICOLON);
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void ForStatement() throws ParseException {
/*@bgen(jjtree) ForStatement */
ASTForStatement jjtn000 = new ASTForStatement(this, JJTFORSTATEMENT);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
jj_consume_token(FOR);
jj_consume_token(LPAREN);
if (jj_2_46(2147483647)) {
checkForBadJDK15ForLoopSyntaxArgumentsUsage();
Modifiers();
Type();
jj_consume_token(IDENTIFIER);
jj_consume_token(COLON);
Expression();
} else {
switch (jj_nt.kind) {
case BOOLEAN:
case BYTE:
case CHAR:
case DOUBLE:
case FALSE:
case FINAL:
case FLOAT:
case INT:
case LONG:
case NEW:
case NULL:
case SHORT:
case SUPER:
case THIS:
case TRUE:
case VOID:
case INTEGER_LITERAL:
case FLOATING_POINT_LITERAL:
case HEX_FLOATING_POINT_LITERAL:
case CHARACTER_LITERAL:
case STRING_LITERAL:
case IDENTIFIER:
case LPAREN:
case SEMICOLON:
case AT:
case INCR:
case DECR:
switch (jj_nt.kind) {
case BOOLEAN:
case BYTE:
case CHAR:
case DOUBLE:
case FALSE:
case FINAL:
case FLOAT:
case INT:
case LONG:
case NEW:
case NULL:
case SHORT:
case SUPER:
case THIS:
case TRUE:
case VOID:
case INTEGER_LITERAL:
case FLOATING_POINT_LITERAL:
case HEX_FLOATING_POINT_LITERAL:
case CHARACTER_LITERAL:
case STRING_LITERAL:
case IDENTIFIER:
case LPAREN:
case AT:
case INCR:
case DECR:
ForInit();
break;
default:
jj_la1[116] = jj_gen;
;
}
jj_consume_token(SEMICOLON);
switch (jj_nt.kind) {
case BOOLEAN:
case BYTE:
case CHAR:
case DOUBLE:
case FALSE:
case FLOAT:
case INT:
case LONG:
case NEW:
case NULL:
case SHORT:
case SUPER:
case THIS:
case TRUE:
case VOID:
case INTEGER_LITERAL:
case FLOATING_POINT_LITERAL:
case HEX_FLOATING_POINT_LITERAL:
case CHARACTER_LITERAL:
case STRING_LITERAL:
case IDENTIFIER:
case LPAREN:
case BANG:
case TILDE:
case INCR:
case DECR:
case PLUS:
case MINUS:
Expression();
break;
default:
jj_la1[117] = jj_gen;
;
}
jj_consume_token(SEMICOLON);
switch (jj_nt.kind) {
case BOOLEAN:
case BYTE:
case CHAR:
case DOUBLE:
case FALSE:
case FLOAT:
case INT:
case LONG:
case NEW:
case NULL:
case SHORT:
case SUPER:
case THIS:
case TRUE:
case VOID:
case INTEGER_LITERAL:
case FLOATING_POINT_LITERAL:
case HEX_FLOATING_POINT_LITERAL:
case CHARACTER_LITERAL:
case STRING_LITERAL:
case IDENTIFIER:
case LPAREN:
case INCR:
case DECR:
ForUpdate();
break;
default:
jj_la1[118] = jj_gen;
;
}
break;
default:
jj_la1[119] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
}
jj_consume_token(RPAREN);
Statement();
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void ForInit() throws ParseException {
/*@bgen(jjtree) ForInit */
ASTForInit jjtn000 = new ASTForInit(this, JJTFORINIT);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
if (jj_2_47(2147483647)) {
LocalVariableDeclaration();
} else {
switch (jj_nt.kind) {
case BOOLEAN:
case BYTE:
case CHAR:
case DOUBLE:
case FALSE:
case FLOAT:
case INT:
case LONG:
case NEW:
case NULL:
case SHORT:
case SUPER:
case THIS:
case TRUE:
case VOID:
case INTEGER_LITERAL:
case FLOATING_POINT_LITERAL:
case HEX_FLOATING_POINT_LITERAL:
case CHARACTER_LITERAL:
case STRING_LITERAL:
case IDENTIFIER:
case LPAREN:
case INCR:
case DECR:
StatementExpressionList();
break;
default:
jj_la1[120] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
}
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void StatementExpressionList() throws ParseException {
/*@bgen(jjtree) StatementExpressionList */
ASTStatementExpressionList jjtn000 = new ASTStatementExpressionList(this, JJTSTATEMENTEXPRESSIONLIST);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
StatementExpression();
label_48:
while (true) {
switch (jj_nt.kind) {
case COMMA:
;
break;
default:
jj_la1[121] = jj_gen;
break label_48;
}
jj_consume_token(COMMA);
StatementExpression();
}
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void ForUpdate() throws ParseException {
/*@bgen(jjtree) ForUpdate */
ASTForUpdate jjtn000 = new ASTForUpdate(this, JJTFORUPDATE);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
StatementExpressionList();
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void BreakStatement() throws ParseException {
/*@bgen(jjtree) BreakStatement */
ASTBreakStatement jjtn000 = new ASTBreakStatement(this, JJTBREAKSTATEMENT);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);Token t;
try {
jj_consume_token(BREAK);
switch (jj_nt.kind) {
case IDENTIFIER:
t = jj_consume_token(IDENTIFIER);
jjtn000.setImage(t.image);
break;
default:
jj_la1[122] = jj_gen;
;
}
jj_consume_token(SEMICOLON);
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void ContinueStatement() throws ParseException {
/*@bgen(jjtree) ContinueStatement */
ASTContinueStatement jjtn000 = new ASTContinueStatement(this, JJTCONTINUESTATEMENT);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);Token t;
try {
jj_consume_token(CONTINUE);
switch (jj_nt.kind) {
case IDENTIFIER:
t = jj_consume_token(IDENTIFIER);
jjtn000.setImage(t.image);
break;
default:
jj_la1[123] = jj_gen;
;
}
jj_consume_token(SEMICOLON);
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void ReturnStatement() throws ParseException {
/*@bgen(jjtree) ReturnStatement */
ASTReturnStatement jjtn000 = new ASTReturnStatement(this, JJTRETURNSTATEMENT);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
jj_consume_token(RETURN);
switch (jj_nt.kind) {
case BOOLEAN:
case BYTE:
case CHAR:
case DOUBLE:
case FALSE:
case FLOAT:
case INT:
case LONG:
case NEW:
case NULL:
case SHORT:
case SUPER:
case THIS:
case TRUE:
case VOID:
case INTEGER_LITERAL:
case FLOATING_POINT_LITERAL:
case HEX_FLOATING_POINT_LITERAL:
case CHARACTER_LITERAL:
case STRING_LITERAL:
case IDENTIFIER:
case LPAREN:
case BANG:
case TILDE:
case INCR:
case DECR:
case PLUS:
case MINUS:
Expression();
break;
default:
jj_la1[124] = jj_gen;
;
}
jj_consume_token(SEMICOLON);
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void ThrowStatement() throws ParseException {
/*@bgen(jjtree) ThrowStatement */
ASTThrowStatement jjtn000 = new ASTThrowStatement(this, JJTTHROWSTATEMENT);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
jj_consume_token(THROW);
Expression();
jj_consume_token(SEMICOLON);
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void SynchronizedStatement() throws ParseException {
/*@bgen(jjtree) SynchronizedStatement */
ASTSynchronizedStatement jjtn000 = new ASTSynchronizedStatement(this, JJTSYNCHRONIZEDSTATEMENT);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
jj_consume_token(SYNCHRONIZED);
jj_consume_token(LPAREN);
Expression();
jj_consume_token(RPAREN);
Block();
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void TryStatement() throws ParseException {
/*@bgen(jjtree) TryStatement */
ASTTryStatement jjtn000 = new ASTTryStatement(this, JJTTRYSTATEMENT);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
jj_consume_token(TRY);
switch (jj_nt.kind) {
case LPAREN:
ResourceSpecification();
break;
default:
jj_la1[125] = jj_gen;
;
}
Block();
label_49:
while (true) {
switch (jj_nt.kind) {
case CATCH:
;
break;
default:
jj_la1[126] = jj_gen;
break label_49;
}
CatchStatement();
}
switch (jj_nt.kind) {
case FINALLY:
FinallyStatement();
break;
default:
jj_la1[127] = jj_gen;
;
}
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void ResourceSpecification() throws ParseException {
/*@bgen(jjtree) ResourceSpecification */
ASTResourceSpecification jjtn000 = new ASTResourceSpecification(this, JJTRESOURCESPECIFICATION);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
checkForBadTryWithResourcesUsage();
jj_consume_token(LPAREN);
Resources();
if (jj_2_48(2)) {
jj_consume_token(SEMICOLON);
} else {
;
}
jj_consume_token(RPAREN);
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void Resources() throws ParseException {
/*@bgen(jjtree) Resources */
ASTResources jjtn000 = new ASTResources(this, JJTRESOURCES);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
Resource();
label_50:
while (true) {
if (jj_2_49(2)) {
;
} else {
break label_50;
}
jj_consume_token(SEMICOLON);
Resource();
}
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void Resource() throws ParseException {
/*@bgen(jjtree) Resource */
ASTResource jjtn000 = new ASTResource(this, JJTRESOURCE);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
label_51:
while (true) {
switch (jj_nt.kind) {
case FINAL:
case AT:
;
break;
default:
jj_la1[128] = jj_gen;
break label_51;
}
switch (jj_nt.kind) {
case FINAL:
jj_consume_token(FINAL);
break;
case AT:
Annotation();
break;
default:
jj_la1[129] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
}
Type();
VariableDeclaratorId();
jj_consume_token(ASSIGN);
Expression();
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void CatchStatement() throws ParseException {
/*@bgen(jjtree) CatchStatement */
ASTCatchStatement jjtn000 = new ASTCatchStatement(this, JJTCATCHSTATEMENT);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
jj_consume_token(CATCH);
jj_consume_token(LPAREN);
FormalParameter();
jj_consume_token(RPAREN);
Block();
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void FinallyStatement() throws ParseException {
/*@bgen(jjtree) FinallyStatement */
ASTFinallyStatement jjtn000 = new ASTFinallyStatement(this, JJTFINALLYSTATEMENT);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
jj_consume_token(FINALLY);
Block();
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void AssertStatement() throws ParseException {
/*@bgen(jjtree) AssertStatement */
ASTAssertStatement jjtn000 = new ASTAssertStatement(this, JJTASSERTSTATEMENT);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);if (jdkVersion <= 3) {
throw new ParseException("Can't use 'assert' as a keyword when running in JDK 1.3 mode!");
}
try {
jj_consume_token(IDENTIFIER);
Expression();
switch (jj_nt.kind) {
case COLON:
jj_consume_token(COLON);
Expression();
break;
default:
jj_la1[130] = jj_gen;
;
}
jj_consume_token(SEMICOLON);
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void RUNSIGNEDSHIFT() throws ParseException {
/*@bgen(jjtree) RUNSIGNEDSHIFT */
ASTRUNSIGNEDSHIFT jjtn000 = new ASTRUNSIGNEDSHIFT(this, JJTRUNSIGNEDSHIFT);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
if (getToken(1).kind == GT &&
((Token.GTToken)getToken(1)).realKind == RUNSIGNEDSHIFT) {
} else {
jj_consume_token(-1);
throw new ParseException();
}
jj_consume_token(GT);
jj_consume_token(GT);
jj_consume_token(GT);
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void RSIGNEDSHIFT() throws ParseException {
/*@bgen(jjtree) RSIGNEDSHIFT */
ASTRSIGNEDSHIFT jjtn000 = new ASTRSIGNEDSHIFT(this, JJTRSIGNEDSHIFT);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
if (getToken(1).kind == GT &&
((Token.GTToken)getToken(1)).realKind == RSIGNEDSHIFT) {
} else {
jj_consume_token(-1);
throw new ParseException();
}
jj_consume_token(GT);
jj_consume_token(GT);
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void Annotation() throws ParseException {
/*@bgen(jjtree) Annotation */
ASTAnnotation jjtn000 = new ASTAnnotation(this, JJTANNOTATION);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
if (jj_2_50(2147483647)) {
NormalAnnotation();
} else if (jj_2_51(2147483647)) {
SingleMemberAnnotation();
} else {
switch (jj_nt.kind) {
case AT:
MarkerAnnotation();
break;
default:
jj_la1[131] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
}
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void NormalAnnotation() throws ParseException {
/*@bgen(jjtree) NormalAnnotation */
ASTNormalAnnotation jjtn000 = new ASTNormalAnnotation(this, JJTNORMALANNOTATION);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
jj_consume_token(AT);
Name();
jj_consume_token(LPAREN);
switch (jj_nt.kind) {
case IDENTIFIER:
MemberValuePairs();
break;
default:
jj_la1[132] = jj_gen;
;
}
jj_consume_token(RPAREN);
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
checkForBadAnnotationUsage();
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void MarkerAnnotation() throws ParseException {
/*@bgen(jjtree) MarkerAnnotation */
ASTMarkerAnnotation jjtn000 = new ASTMarkerAnnotation(this, JJTMARKERANNOTATION);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
jj_consume_token(AT);
Name();
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
checkForBadAnnotationUsage();
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void SingleMemberAnnotation() throws ParseException {
/*@bgen(jjtree) SingleMemberAnnotation */
ASTSingleMemberAnnotation jjtn000 = new ASTSingleMemberAnnotation(this, JJTSINGLEMEMBERANNOTATION);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
jj_consume_token(AT);
Name();
jj_consume_token(LPAREN);
MemberValue();
jj_consume_token(RPAREN);
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
checkForBadAnnotationUsage();
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void MemberValuePairs() throws ParseException {
/*@bgen(jjtree) MemberValuePairs */
ASTMemberValuePairs jjtn000 = new ASTMemberValuePairs(this, JJTMEMBERVALUEPAIRS);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
MemberValuePair();
label_52:
while (true) {
switch (jj_nt.kind) {
case COMMA:
;
break;
default:
jj_la1[133] = jj_gen;
break label_52;
}
jj_consume_token(COMMA);
MemberValuePair();
}
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void MemberValuePair() throws ParseException {
/*@bgen(jjtree) MemberValuePair */
ASTMemberValuePair jjtn000 = new ASTMemberValuePair(this, JJTMEMBERVALUEPAIR);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);Token t;
try {
t = jj_consume_token(IDENTIFIER);
jjtn000.setImage(t.image);
jj_consume_token(ASSIGN);
MemberValue();
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void MemberValue() throws ParseException {
/*@bgen(jjtree) MemberValue */
ASTMemberValue jjtn000 = new ASTMemberValue(this, JJTMEMBERVALUE);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
switch (jj_nt.kind) {
case AT:
Annotation();
break;
case LBRACE:
MemberValueArrayInitializer();
break;
case BOOLEAN:
case BYTE:
case CHAR:
case DOUBLE:
case FALSE:
case FLOAT:
case INT:
case LONG:
case NEW:
case NULL:
case SHORT:
case SUPER:
case THIS:
case TRUE:
case VOID:
case INTEGER_LITERAL:
case FLOATING_POINT_LITERAL:
case HEX_FLOATING_POINT_LITERAL:
case CHARACTER_LITERAL:
case STRING_LITERAL:
case IDENTIFIER:
case LPAREN:
case BANG:
case TILDE:
case INCR:
case DECR:
case PLUS:
case MINUS:
ConditionalExpression();
break;
default:
jj_la1[134] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void MemberValueArrayInitializer() throws ParseException {
/*@bgen(jjtree) MemberValueArrayInitializer */
ASTMemberValueArrayInitializer jjtn000 = new ASTMemberValueArrayInitializer(this, JJTMEMBERVALUEARRAYINITIALIZER);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
jj_consume_token(LBRACE);
switch (jj_nt.kind) {
case BOOLEAN:
case BYTE:
case CHAR:
case DOUBLE:
case FALSE:
case FLOAT:
case INT:
case LONG:
case NEW:
case NULL:
case SHORT:
case SUPER:
case THIS:
case TRUE:
case VOID:
case INTEGER_LITERAL:
case FLOATING_POINT_LITERAL:
case HEX_FLOATING_POINT_LITERAL:
case CHARACTER_LITERAL:
case STRING_LITERAL:
case IDENTIFIER:
case LPAREN:
case LBRACE:
case AT:
case BANG:
case TILDE:
case INCR:
case DECR:
case PLUS:
case MINUS:
MemberValue();
label_53:
while (true) {
if (jj_2_52(2)) {
;
} else {
break label_53;
}
jj_consume_token(COMMA);
MemberValue();
}
switch (jj_nt.kind) {
case COMMA:
jj_consume_token(COMMA);
break;
default:
jj_la1[135] = jj_gen;
;
}
break;
default:
jj_la1[136] = jj_gen;
;
}
jj_consume_token(RBRACE);
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void AnnotationTypeDeclaration(int modifiers) throws ParseException {
/*@bgen(jjtree) AnnotationTypeDeclaration */
ASTAnnotationTypeDeclaration jjtn000 = new ASTAnnotationTypeDeclaration(this, JJTANNOTATIONTYPEDECLARATION);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);Token t;
jjtn000.setModifiers(modifiers);
try {
jj_consume_token(AT);
jj_consume_token(INTERFACE);
t = jj_consume_token(IDENTIFIER);
checkForBadAnnotationUsage();jjtn000.setImage(t.image);
AnnotationTypeBody();
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void AnnotationTypeBody() throws ParseException {
/*@bgen(jjtree) AnnotationTypeBody */
ASTAnnotationTypeBody jjtn000 = new ASTAnnotationTypeBody(this, JJTANNOTATIONTYPEBODY);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
jj_consume_token(LBRACE);
label_54:
while (true) {
switch (jj_nt.kind) {
case ABSTRACT:
case BOOLEAN:
case BYTE:
case CHAR:
case CLASS:
case DOUBLE:
case FINAL:
case FLOAT:
case INT:
case INTERFACE:
case LONG:
case NATIVE:
case PRIVATE:
case PROTECTED:
case PUBLIC:
case SHORT:
case STATIC:
case SYNCHRONIZED:
case TRANSIENT:
case VOLATILE:
case STRICTFP:
case IDENTIFIER:
case SEMICOLON:
case AT:
;
break;
default:
jj_la1[137] = jj_gen;
break label_54;
}
AnnotationTypeMemberDeclaration();
}
jj_consume_token(RBRACE);
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void AnnotationTypeMemberDeclaration() throws ParseException {
/*@bgen(jjtree) AnnotationTypeMemberDeclaration */
ASTAnnotationTypeMemberDeclaration jjtn000 = new ASTAnnotationTypeMemberDeclaration(this, JJTANNOTATIONTYPEMEMBERDECLARATION);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);int modifiers;
try {
switch (jj_nt.kind) {
case ABSTRACT:
case BOOLEAN:
case BYTE:
case CHAR:
case CLASS:
case DOUBLE:
case FINAL:
case FLOAT:
case INT:
case INTERFACE:
case LONG:
case NATIVE:
case PRIVATE:
case PROTECTED:
case PUBLIC:
case SHORT:
case STATIC:
case SYNCHRONIZED:
case TRANSIENT:
case VOLATILE:
case STRICTFP:
case IDENTIFIER:
case AT:
modifiers = Modifiers();
if (jj_2_53(3)) {
AnnotationMethodDeclaration(modifiers);
} else {
switch (jj_nt.kind) {
case ABSTRACT:
case CLASS:
case FINAL:
case INTERFACE:
ClassOrInterfaceDeclaration(modifiers);
break;
default:
jj_la1[138] = jj_gen;
if (jj_2_54(3)) {
EnumDeclaration(modifiers);
} else {
switch (jj_nt.kind) {
case AT:
AnnotationTypeDeclaration(modifiers);
break;
case BOOLEAN:
case BYTE:
case CHAR:
case DOUBLE:
case FLOAT:
case INT:
case LONG:
case SHORT:
case IDENTIFIER:
FieldDeclaration(modifiers);
break;
default:
jj_la1[139] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
}
}
}
break;
case SEMICOLON:
jj_consume_token(SEMICOLON);
break;
default:
jj_la1[140] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void AnnotationMethodDeclaration(int modifiers) throws ParseException {
/*@bgen(jjtree) AnnotationMethodDeclaration */
ASTAnnotationMethodDeclaration jjtn000 = new ASTAnnotationMethodDeclaration(this, JJTANNOTATIONMETHODDECLARATION);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);Token t;
jjtn000.setModifiers(modifiers);
try {
Type();
t = jj_consume_token(IDENTIFIER);
jj_consume_token(LPAREN);
jj_consume_token(RPAREN);
switch (jj_nt.kind) {
case _DEFAULT:
DefaultValue();
break;
default:
jj_la1[141] = jj_gen;
;
}
jj_consume_token(SEMICOLON);
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
jjtn000.setImage(t.image);
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
final public void DefaultValue() throws ParseException {
/*@bgen(jjtree) DefaultValue */
ASTDefaultValue jjtn000 = new ASTDefaultValue(this, JJTDEFAULTVALUE);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
try {
jj_consume_token(_DEFAULT);
MemberValue();
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{if (true) throw (RuntimeException)jjte000;}
}
if (jjte000 instanceof ParseException) {
{if (true) throw (ParseException)jjte000;}
}
{if (true) throw (Error)jjte000;}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
}
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
private Token jj_consume_token(int kind) throws ParseException {
Token oldToken = token;
if ((token = jj_nt).next != null) jj_nt = jj_nt.next;
else jj_nt = jj_nt.next = token_source.getNextToken();
if (token.kind == kind) {
jj_gen++;
if (++jj_gc > 100) {
jj_gc = 0;
for (int i = 0; i < jj_2_rtns.length; i++) {
JJCalls c = jj_2_rtns[i];
while (c != null) {
if (c.gen < jj_gen) c.first = null;
c = c.next;
}
}
}
return token;
}
jj_nt = token;
token = oldToken;
jj_kind = kind;
throw generateParseException();
}
// in src/main/java/net/sourceforge/pmd/lang/java/Java14Parser.java
Override
protected JavaParser createJavaParser(Reader source) throws ParseException {
JavaParser javaParser = super.createJavaParser(source);
javaParser.setJdkVersion(4);
return javaParser;
}
// in src/main/java/net/sourceforge/pmd/lang/java/Java17Parser.java
Override
protected JavaParser createJavaParser(Reader source) throws ParseException {
JavaParser javaParser = super.createJavaParser(source);
javaParser.setJdkVersion(7);
return javaParser;
}
// in src/main/java/net/sourceforge/pmd/lang/java/Java16Parser.java
Override
protected JavaParser createJavaParser(Reader source) throws ParseException {
JavaParser javaParser = super.createJavaParser(source);
javaParser.setJdkVersion(6);
return javaParser;
}
// in src/main/java/net/sourceforge/pmd/lang/java/AbstractJavaParser.java
protected JavaParser createJavaParser(Reader source) throws ParseException {
parser = new JavaParser(new JavaCharStream(source));
String suppressMarker = getParserOptions().getSuppressMarker();
if (suppressMarker != null) {
parser.setSuppressMarker(suppressMarker);
}
return parser;
}
// in src/main/java/net/sourceforge/pmd/lang/java/AbstractJavaParser.java
public Node parse(String fileName, Reader source) throws ParseException {
AbstractTokenManager.setFileName(fileName);
return createJavaParser(source).CompilationUnit();
}
// in src/main/java/net/sourceforge/pmd/lang/java/Java15Parser.java
Override
protected JavaParser createJavaParser(Reader source) throws ParseException {
JavaParser javaParser = super.createJavaParser(source);
javaParser.setJdkVersion(5);
return javaParser;
}
// in src/main/java/net/sourceforge/pmd/lang/cpp/CppParser.java
public Node parse(String fileName, Reader source) throws ParseException {
AbstractTokenManager.setFileName(fileName);
throw new UnsupportedOperationException("parse(Reader) is not supported for C++");
}
// in src/main/java/net/sourceforge/pmd/util/viewer/model/ViewerModel.java
public void evaluateXPathExpression(String xPath, Object evaluator) throws ParseException, JaxenException {
XPath xpath = new BaseXPath(xPath, new DocumentNavigator());
evaluationResults = xpath.selectNodes(rootNode);
fireViewerModelEvent(new ViewerModelEvent(evaluator, ViewerModelEvent.PATH_EXPRESSION_EVALUATED));
}