diff --git a/pmd/etc/changelog.txt b/pmd/etc/changelog.txt index 1e6a00b952..7dc4bb0070 100644 --- a/pmd/etc/changelog.txt +++ b/pmd/etc/changelog.txt @@ -9,6 +9,7 @@ Tweaked CPD time display field Made CPD text fields uneditable Added more error checking to CPD GUI input Added "dialog cancelled" check to CPD "Save" function +ASTType now has an isArray() method. TODO - fix it so tests and rules don't duplicate the xpath expressions August 1, 2003 - 1.2.1: diff --git a/pmd/etc/grammar/Java1.4-c.jjt b/pmd/etc/grammar/Java1.4-c.jjt index 157c71ff6f..3f0d6a24d1 100644 --- a/pmd/etc/grammar/Java1.4-c.jjt +++ b/pmd/etc/grammar/Java1.4-c.jjt @@ -610,27 +610,20 @@ void Initializer() : void Type() : {} { - ( PrimitiveType() | Name() ) ( "[" "]" )* + ( PrimitiveType() | Name() ) ( "[" "]" {jjtThis.setIsArray();} )* } void PrimitiveType() : {} { "boolean" {jjtThis.setImage("boolean");} -| - "char" {jjtThis.setImage("char");} -| - "byte" {jjtThis.setImage("byte");} -| - "short" {jjtThis.setImage("short");} -| - "int" {jjtThis.setImage("int");} -| - "long" {jjtThis.setImage("long");} -| - "float" {jjtThis.setImage("float");} -| - "double" {jjtThis.setImage("double");} +| "char" {jjtThis.setImage("char");} +| "byte" {jjtThis.setImage("byte");} +| "short" {jjtThis.setImage("short");} +| "int" {jjtThis.setImage("int");} +| "long" {jjtThis.setImage("long");} +| "float" {jjtThis.setImage("float");} +| "double" {jjtThis.setImage("double");} } @@ -638,8 +631,7 @@ void ResultType() : {} { "void" -| - Type() +| Type() } void Name() : diff --git a/pmd/src/net/sourceforge/pmd/ast/ASTType.java b/pmd/src/net/sourceforge/pmd/ast/ASTType.java index feec9b75d4..a799c5e3bf 100644 --- a/pmd/src/net/sourceforge/pmd/ast/ASTType.java +++ b/pmd/src/net/sourceforge/pmd/ast/ASTType.java @@ -11,9 +11,26 @@ public class ASTType extends SimpleNode { super(p, id); } + private boolean isArray; + + public boolean isArray() { + return this.isArray; + } + + public void setIsArray() { + this.isArray = true; + } /** Accept the visitor. **/ public Object jjtAccept(JavaParserVisitor visitor, Object data) { return visitor.visit(this, data); } + + public void dump(String prefix) { + String out = toString(prefix) + ":"; + if (isArray()) {out += "(array)";} + System.out.println(out); + dumpChildren(prefix); + } + } diff --git a/pmd/src/net/sourceforge/pmd/ast/JavaParser.java b/pmd/src/net/sourceforge/pmd/ast/JavaParser.java index 5cdaf745bc..00263fc5f7 100644 --- a/pmd/src/net/sourceforge/pmd/ast/JavaParser.java +++ b/pmd/src/net/sourceforge/pmd/ast/JavaParser.java @@ -1704,6 +1704,7 @@ public class JavaParser/*@bgen(jjtree)*/implements JavaParserTreeConstants, Java } jj_consume_token(LBRACKET); jj_consume_token(RBRACKET); + jjtn000.setIsArray(); } } catch (Throwable jjte000) { if (jjtc000) { @@ -4671,6 +4672,43 @@ jjtree.openNodeScope(jjtn000);boolean hasElse = false; return retval; } + final private boolean jj_3R_256() { + if (jj_scan_token(EQ)) return true; + if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; + return false; + } + + final private boolean jj_3R_252() { + Token xsp; + xsp = jj_scanpos; + if (jj_3R_256()) { + jj_scanpos = xsp; + if (jj_3R_257()) return true; + if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; + } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; + if (jj_3R_238()) return true; + if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; + return false; + } + + final private boolean jj_3R_211() { + if (jj_scan_token(ANDASSIGN)) return true; + if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; + return false; + } + + final private boolean jj_3R_253() { + if (jj_3R_258()) return true; + if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; + Token xsp; + while (true) { + xsp = jj_scanpos; + if (jj_3R_296()) { jj_scanpos = xsp; break; } + if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; + } + return false; + } + final private boolean jj_3R_248() { if (jj_3R_253()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; @@ -5006,6 +5044,12 @@ jjtree.openNodeScope(jjtn000);boolean hasElse = false; return false; } + final private boolean jj_3R_127() { + if (jj_3R_47()) return true; + if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; + return false; + } + final private boolean jj_3R_122() { if (jj_scan_token(VOID)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; @@ -5023,12 +5067,6 @@ jjtree.openNodeScope(jjtn000);boolean hasElse = false; return false; } - final private boolean jj_3R_127() { - if (jj_3R_47()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - final private boolean jj_3R_118() { if (jj_scan_token(DOUBLE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; @@ -6121,14 +6159,6 @@ jjtree.openNodeScope(jjtn000);boolean hasElse = false; return false; } - final private boolean jj_3R_390() { - if (jj_scan_token(COLON)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_60()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - final private boolean jj_3R_268() { Token xsp; while (true) { @@ -6185,6 +6215,14 @@ jjtree.openNodeScope(jjtn000);boolean hasElse = false; return false; } + final private boolean jj_3R_390() { + if (jj_scan_token(COLON)) return true; + if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; + if (jj_3R_60()) return true; + if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; + return false; + } + final private boolean jj_3R_79() { if (jj_scan_token(ABSTRACT)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; @@ -6389,6 +6427,24 @@ jjtree.openNodeScope(jjtn000);boolean hasElse = false; return false; } + final private boolean jj_3R_262() { + if (jj_3R_270()) return true; + if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; + return false; + } + + final private boolean jj_3R_261() { + if (jj_3R_269()) return true; + if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; + return false; + } + + final private boolean jj_3R_260() { + if (jj_3R_268()) return true; + if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; + return false; + } + final private boolean jj_3R_228() { if (jj_scan_token(ASSERT)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; @@ -6403,8 +6459,8 @@ jjtree.openNodeScope(jjtn000);boolean hasElse = false; return false; } - final private boolean jj_3R_262() { - if (jj_3R_270()) return true; + final private boolean jj_3R_259() { + if (jj_3R_267()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } @@ -6417,12 +6473,6 @@ jjtree.openNodeScope(jjtn000);boolean hasElse = false; return false; } - final private boolean jj_3R_261() { - if (jj_3R_269()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - final private boolean jj_3R_388() { if (jj_scan_token(CATCH)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; @@ -6437,35 +6487,6 @@ jjtree.openNodeScope(jjtn000);boolean hasElse = false; return false; } - final private boolean jj_3R_260() { - if (jj_3R_268()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - final private boolean jj_3R_227() { - if (jj_scan_token(TRY)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_70()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - while (true) { - xsp = jj_scanpos; - if (jj_3R_388()) { jj_scanpos = xsp; break; } - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } - xsp = jj_scanpos; - if (jj_3R_389()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - final private boolean jj_3R_259() { - if (jj_3R_267()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - final private boolean jj_3_2() { if (jj_3R_43()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; @@ -6498,6 +6519,23 @@ jjtree.openNodeScope(jjtn000);boolean hasElse = false; return false; } + final private boolean jj_3R_227() { + if (jj_scan_token(TRY)) return true; + if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; + if (jj_3R_70()) return true; + if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; + Token xsp; + while (true) { + xsp = jj_scanpos; + if (jj_3R_388()) { jj_scanpos = xsp; break; } + if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; + } + xsp = jj_scanpos; + if (jj_3R_389()) jj_scanpos = xsp; + else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; + return false; + } + final private boolean jj_3R_311() { if (jj_scan_token(IMPLEMENTS)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; @@ -6506,32 +6544,6 @@ jjtree.openNodeScope(jjtn000);boolean hasElse = false; return false; } - final private boolean jj_3R_384() { - if (jj_3R_403()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - final private boolean jj_3R_226() { - if (jj_scan_token(SYNCHRONIZED)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(LPAREN)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_60()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(RPAREN)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_70()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - final private boolean jj_3R_387() { - if (jj_3R_60()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - final private boolean jj_3R_309() { if (jj_scan_token(STRICTFP)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; @@ -6556,12 +6568,6 @@ jjtree.openNodeScope(jjtn000);boolean hasElse = false; return false; } - final private boolean jj_3R_386() { - if (jj_scan_token(IDENTIFIER)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - final private boolean jj_3R_305() { if (jj_scan_token(FINAL)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; @@ -6580,12 +6586,8 @@ jjtree.openNodeScope(jjtn000);boolean hasElse = false; return false; } - final private boolean jj_3R_225() { - if (jj_scan_token(THROW)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_60()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(SEMICOLON)) return true; + final private boolean jj_3R_384() { + if (jj_3R_403()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } @@ -6622,6 +6624,26 @@ jjtree.openNodeScope(jjtn000);boolean hasElse = false; return false; } + final private boolean jj_3R_226() { + if (jj_scan_token(SYNCHRONIZED)) return true; + if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; + if (jj_scan_token(LPAREN)) return true; + if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; + if (jj_3R_60()) return true; + if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; + if (jj_scan_token(RPAREN)) return true; + if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; + if (jj_3R_70()) return true; + if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; + return false; + } + + final private boolean jj_3R_387() { + if (jj_3R_60()) return true; + if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; + return false; + } + final private boolean jj_3R_251() { if (jj_3R_254()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; @@ -6640,32 +6662,22 @@ jjtree.openNodeScope(jjtn000);boolean hasElse = false; return false; } - final private boolean jj_3R_414() { - if (jj_scan_token(COMMA)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_216()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - final private boolean jj_3R_224() { - if (jj_scan_token(RETURN)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - xsp = jj_scanpos; - if (jj_3R_387()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(SEMICOLON)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - final private boolean jj_3R_385() { + final private boolean jj_3R_386() { if (jj_scan_token(IDENTIFIER)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } + final private boolean jj_3R_225() { + if (jj_scan_token(THROW)) return true; + if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; + if (jj_3R_60()) return true; + if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; + if (jj_scan_token(SEMICOLON)) return true; + if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; + return false; + } + final private boolean jj_3R_246() { if (jj_scan_token(LBRACE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; @@ -6686,14 +6698,10 @@ jjtree.openNodeScope(jjtn000);boolean hasElse = false; return false; } - final private boolean jj_3R_223() { - if (jj_scan_token(CONTINUE)) return true; + final private boolean jj_3R_414() { + if (jj_scan_token(COMMA)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - xsp = jj_scanpos; - if (jj_3R_386()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(SEMICOLON)) return true; + if (jj_3R_216()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } @@ -6706,20 +6714,20 @@ jjtree.openNodeScope(jjtn000);boolean hasElse = false; return false; } - final private boolean jj_3R_383() { - if (jj_3R_60()) return true; + final private boolean jj_3R_224() { + if (jj_scan_token(RETURN)) return true; + if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; + Token xsp; + xsp = jj_scanpos; + if (jj_3R_387()) jj_scanpos = xsp; + else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; + if (jj_scan_token(SEMICOLON)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } - final private boolean jj_3R_222() { - if (jj_scan_token(BREAK)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - xsp = jj_scanpos; - if (jj_3R_385()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(SEMICOLON)) return true; + final private boolean jj_3R_385() { + if (jj_scan_token(IDENTIFIER)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } @@ -6741,14 +6749,26 @@ jjtree.openNodeScope(jjtn000);boolean hasElse = false; return false; } + final private boolean jj_3R_223() { + if (jj_scan_token(CONTINUE)) return true; + if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; + Token xsp; + xsp = jj_scanpos; + if (jj_3R_386()) jj_scanpos = xsp; + else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; + if (jj_scan_token(SEMICOLON)) return true; + if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; + return false; + } + final private boolean jj_3R_66() { if (jj_scan_token(FINAL)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } - final private boolean jj_3R_403() { - if (jj_3R_413()) return true; + final private boolean jj_3R_383() { + if (jj_3R_60()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } @@ -6759,8 +6779,14 @@ jjtree.openNodeScope(jjtn000);boolean hasElse = false; return false; } - final private boolean jj_3R_64() { - if (jj_scan_token(FINAL)) return true; + final private boolean jj_3R_222() { + if (jj_scan_token(BREAK)) return true; + if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; + Token xsp; + xsp = jj_scanpos; + if (jj_3R_385()) jj_scanpos = xsp; + else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; + if (jj_scan_token(SEMICOLON)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } @@ -6777,26 +6803,6 @@ jjtree.openNodeScope(jjtn000);boolean hasElse = false; return false; } - final private boolean jj_3R_381() { - if (jj_scan_token(ELSE)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_175()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - final private boolean jj_3_30() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_64()) jj_scanpos = xsp; - else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_63()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_scan_token(IDENTIFIER)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - final private boolean jj_3R_392() { if (jj_scan_token(ABSTRACT)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; @@ -6820,18 +6826,6 @@ jjtree.openNodeScope(jjtn000);boolean hasElse = false; return false; } - final private boolean jj_3R_413() { - if (jj_3R_216()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - while (true) { - xsp = jj_scanpos; - if (jj_3R_414()) { jj_scanpos = xsp; break; } - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } - return false; - } - final private boolean jj_3R_376() { Token xsp; while (true) { @@ -6844,8 +6838,8 @@ jjtree.openNodeScope(jjtn000);boolean hasElse = false; return false; } - final private boolean jj_3R_382() { - if (jj_3R_402()) return true; + final private boolean jj_3R_403() { + if (jj_3R_413()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } @@ -6873,8 +6867,16 @@ jjtree.openNodeScope(jjtn000);boolean hasElse = false; return false; } - final private boolean jj_3R_412() { - if (jj_3R_413()) return true; + final private boolean jj_3R_64() { + if (jj_scan_token(FINAL)) return true; + if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; + return false; + } + + final private boolean jj_3R_381() { + if (jj_scan_token(ELSE)) return true; + if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; + if (jj_3R_175()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } @@ -6891,6 +6893,54 @@ jjtree.openNodeScope(jjtn000);boolean hasElse = false; return false; } + final private boolean jj_3_30() { + Token xsp; + xsp = jj_scanpos; + if (jj_3R_64()) jj_scanpos = xsp; + else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; + if (jj_3R_63()) return true; + if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; + if (jj_scan_token(IDENTIFIER)) return true; + if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; + return false; + } + + final private boolean jj_3R_413() { + if (jj_3R_216()) return true; + if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; + Token xsp; + while (true) { + xsp = jj_scanpos; + if (jj_3R_414()) { jj_scanpos = xsp; break; } + if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; + } + return false; + } + + final private boolean jj_3R_382() { + if (jj_3R_402()) return true; + if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; + return false; + } + + final private boolean jj_3R_375() { + if (jj_scan_token(SEMICOLON)) return true; + if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; + return false; + } + + final private boolean jj_3R_412() { + if (jj_3R_413()) return true; + if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; + return false; + } + + final private boolean jj_3R_374() { + if (jj_3R_377()) return true; + if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; + return false; + } + final private boolean jj_3R_411() { if (jj_3R_174()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; @@ -6908,15 +6958,23 @@ jjtree.openNodeScope(jjtn000);boolean hasElse = false; return false; } - final private boolean jj_3R_375() { - if (jj_scan_token(SEMICOLON)) return true; + final private boolean jj_3R_373() { + if (jj_3R_376()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } - final private boolean jj_3R_374() { - if (jj_3R_377()) return true; + final private boolean jj_3R_369() { + Token xsp; + xsp = jj_scanpos; + if (jj_3R_373()) { + jj_scanpos = xsp; + if (jj_3R_374()) { + jj_scanpos = xsp; + if (jj_3R_375()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; + } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; + } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } @@ -6946,26 +7004,6 @@ jjtree.openNodeScope(jjtn000);boolean hasElse = false; return false; } - final private boolean jj_3R_373() { - if (jj_3R_376()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - final private boolean jj_3R_369() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_373()) { - jj_scanpos = xsp; - if (jj_3R_374()) { - jj_scanpos = xsp; - if (jj_3R_375()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - final private boolean jj_3R_220() { if (jj_scan_token(DO)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; @@ -8386,43 +8424,6 @@ jjtree.openNodeScope(jjtn000);boolean hasElse = false; return false; } - final private boolean jj_3R_256() { - if (jj_scan_token(EQ)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - final private boolean jj_3R_252() { - Token xsp; - xsp = jj_scanpos; - if (jj_3R_256()) { - jj_scanpos = xsp; - if (jj_3R_257()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - if (jj_3R_238()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - final private boolean jj_3R_211() { - if (jj_scan_token(ANDASSIGN)) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - return false; - } - - final private boolean jj_3R_253() { - if (jj_3R_258()) return true; - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - Token xsp; - while (true) { - xsp = jj_scanpos; - if (jj_3R_296()) { jj_scanpos = xsp; break; } - if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; - } - return false; - } - public JavaParserTokenManager token_source; JavaCharStream jj_input_stream; public Token token, jj_nt;