Exception Fact Sheet for "pmd"

The goal of an Exception Fact Sheet is to reveal the design of exception handling in an application.

--Maxence, Martin

For feedback, please contact Martin

Table of contents

Basic Statistics

Number of Classes 925
Number of Domain Exception Types (Thrown or Caught) 11
Number of Domain Checked Exception Types 6
Number of Domain Runtime Exception Types 2
Number of Domain Unknown Exception Types 0
nTh = Number of Throw 700
nTh = Number of Throw in Catch 400
Number of Catch-Rethrow (may not be correct) 329
nC = Number of Catch 426
nCTh = Number of Catch with Throw 180
Number of Empty Catch (really Empty) 15
Number of Empty Catch (with comments) 15
Number of Empty Catch 30
nM = Number of Methods 5657
nbFunctionWithCatch = Number of Methods with Catch 360 / 5657
nbFunctionWithThrow = Number of Methods with Throw 358 / 5657
nbFunctionWithThrowS = Number of Methods with ThrowS 299 / 5657
nbFunctionTransmitting = Number of Methods with "Throws" but NO catch, NO throw (only transmitting) 128 / 5657
P1 = nCTh / nC 42.3% (0.423)
P2 = nMC / nM 6.4% (0.064)
P3 = nbFunctionWithThrow / nbFunction 6.3% (0.063)
P4 = nbFunctionTransmitting / nbFunction 2.3% (0.023)
P5 = nbThrowInCatch / nbThrow 57.1% (0.571)
R2 = nCatch / nThrow 0.609
A1 = Number of Caught Exception Types From External Libraries 34
A2 = Number of Reused Exception Types From External Libraries (thrown from application code) 13

W1 is a rough estimation of the richness of the exception model. It does not take into account the inheritance relationships between domain exceptions.

Proportion P1 measures the overall exception flow. According to our experience, it varies from 5% to 70%. Early-catch design generally yields a low P1, libraries that must warn clients about errors (e.g. databases) generally have a high P1.

Proportion P2 measures the dispersion of catch blocks in the application. According to our experience, it varies from 2% to 15%. A small P2 indicates a rather centralized management of errors.

R1 shows how many exceptions types from libraries (incl. JDK) are thrown from application code. For instance, IllegalArgumentException comes from the JDK but is used in many applications.

A1 measures the awareness of the application to library exceptions. A high value of A1 means either that the application is polluted with checked exceptions or that it is able to apply specific recovery depending on the library exception.

Exception Hierachy

Exception Map

Each exception that is used at least once in the project is a dot. A orange dot represents a domain exception that is defined in the application. A blue dot exception is defined in the JDK or in a library. The x-axis represents the number of times an exception is caught, the y-axis the number of times an exception is thrown.

Exceptions With State

State means fields. Number of exceptions with state: 5
StartAndEndTagMismatchException
              package net.sourceforge.pmd.lang.jsp.ast;public class StartAndEndTagMismatchException extends SyntaxErrorException {

    public static final String START_END_TAG_MISMATCH_RULE_NAME
            = "Start and End Tags of an XML Element must match.";

    private int startLine, endLine, startColumn, endColumn;
    private String startTagName, endTagName;

    /**
     * Public constructor.
     *
     * @param startLine
     * @param startColumn
     * @param startTagName
     * @param endLine
     * @param endColumn
     * @param endTagName
     */
    public StartAndEndTagMismatchException(int startLine, int startColumn, String startTagName,
                                           int endLine, int endColumn, String endTagName) {
        super(endLine, START_END_TAG_MISMATCH_RULE_NAME);
        this.startLine = startLine;
        this.startColumn = startColumn;
        this.startTagName = startTagName;

        this.endLine = endLine;
        this.endColumn = endColumn;
        this.endTagName = endTagName;
    }


    /**
     * @return Returns the endColumn.
     */
    public int getEndColumn() {
        return endColumn;
    }

    /**
     * @return Returns the endLine.
     */
    public int getEndLine() {
        return endLine;
    }

    /**
     * @return Returns the startColumn.
     */
    public int getStartColumn() {
        return startColumn;
    }

    /**
     * @return Returns the startLine.
     */
    public int getStartLine() {
        return startLine;
    }

    /* (non-Javadoc)
     * @see java.lang.Throwable#getMessage()
     */
    public String getMessage() {
        return "The start-tag of element \"" + startTagName + "\" (line "
                + startLine + ", column " + startColumn
                + ") does not correspond to the end-tag found: \""
                + endTagName + "\" (line " + endLine
                + ", column " + endColumn + ").";
    }
}
            
SyntaxErrorException
              package net.sourceforge.pmd.lang.jsp.ast;public abstract class SyntaxErrorException extends ParseException {
    private int line;
    private String ruleName;

    /**
     * @param line
     * @param ruleName
     */
    public SyntaxErrorException(int line, String ruleName) {
        super();
        this.line = line;
        this.ruleName = ruleName;
    }

    /**
     * @return Returns the line.
     */
    public int getLine() {
        return line;
    }

    /**
     * @return Returns the ruleName.
     */
    public String getRuleName() {
        return ruleName;
    }
}
            
TokenMgrError
              package net.sourceforge.pmd.lang.ast;public class TokenMgrError extends RuntimeException
{

   /*
    * Ordinals for various reasons why an Error of this type can be thrown.
    */

   /**
    * Lexical error occurred.
    */
   public static final int LEXICAL_ERROR = 0;

   /**
    * An attempt was made to create a second instance of a static token manager.
    */
   public static final int STATIC_LEXER_ERROR = 1;

   /**
    * Tried to change to an invalid lexical state.
    */
   public static final int INVALID_LEXICAL_STATE = 2;

   /**
    * Detected (and bailed out of) an infinite loop in the token manager.
    */
   public static final int LOOP_DETECTED = 3;

   /**
    * Indicates the reason why the exception is thrown. It will have
    * one of the above 4 values.
    */
   int errorCode;

   /**
    * Replaces unprintable characters by their escaped (or unicode escaped)
    * equivalents in the given string
    */
   protected static final String addEscapes(String str) {
      StringBuffer retval = new StringBuffer();
      char ch;
      for (int i = 0; i < str.length(); i++) {
        switch (str.charAt(i))
        {
           case 0 :
              continue;
           case '\b':
              retval.append("\\b");
              continue;
           case '\t':
              retval.append("\\t");
              continue;
           case '\n':
              retval.append("\\n");
              continue;
           case '\f':
              retval.append("\\f");
              continue;
           case '\r':
              retval.append("\\r");
              continue;
           case '\"':
              retval.append("\\\"");
              continue;
           case '\'':
              retval.append("\\\'");
              continue;
           case '\\':
              retval.append("\\\\");
              continue;
           default:
              if ((ch = str.charAt(i)) < 0x20 || ch > 0x7e) {
                 String s = "0000" + Integer.toString(ch, 16);
                 retval.append("\\u" + s.substring(s.length() - 4, s.length()));
              } else {
                 retval.append(ch);
              }
              continue;
        }
      }
      return retval.toString();
   }

   /**
    * Returns a detailed message for the Error when it is thrown by the
    * token manager to indicate a lexical error.
    * Parameters :
    *    EOFSeen     : indicates if EOF caused the lexical error
    *    curLexState : lexical state in which this error occurred
    *    errorLine   : line number when the error occurred
    *    errorColumn : column number when the error occurred
    *    errorAfter  : prefix that was seen before this error occurred
    *    curchar     : the offending character
    * Note: You can customize the lexical error message by modifying this method.
    */
   protected static String LexicalError(boolean EOFSeen, int lexState, int errorLine, int errorColumn, String errorAfter, char curChar) {
      return("Lexical error in file " + AbstractTokenManager.getFileName() + " at line " +
           errorLine + ", column " +
           errorColumn + ".  Encountered: " +
           (EOFSeen ? "<EOF> " : ("\"" + addEscapes(String.valueOf(curChar)) + "\"") + " (" + (int)curChar + "), ") +
           "after : \"" + addEscapes(errorAfter) + "\"");
   }

   /**
    * You can also modify the body of this method to customize your error messages.
    * For example, cases like LOOP_DETECTED and INVALID_LEXICAL_STATE are not
    * of end-users concern, so you can return something like :
    *
    *     "Internal Error : Please file a bug report .... "
    *
    * from this method for such cases in the release version of your parser.
    */
   public String getMessage() {
      return super.getMessage();
   }

   /*
    * Constructors of various flavors follow.
    */

   /** No arg constructor. */
   public TokenMgrError() {
   }

   /** Constructor with message and reason. */
   public TokenMgrError(String message, int reason) {
      super(message);
      errorCode = reason;
   }

   /** Full Constructor. */
   public TokenMgrError(boolean EOFSeen, int lexState, int errorLine, int errorColumn, String errorAfter, char curChar, int reason) {
      this(LexicalError(EOFSeen, lexState, errorLine, errorColumn, errorAfter, curChar), reason);
   }
}
            
ParseException
              package net.sourceforge.pmd.lang.jsp.ast;public class ParseException extends net.sourceforge.pmd.lang.ast.ParseException {

  /**
   * This constructor is used by the method "generateParseException"
   * in the generated parser.  Calling this constructor generates
   * a new object of this type with the fields "currentToken",
   * "expectedTokenSequences", and "tokenImage" set.  The boolean
   * flag "specialConstructor" is also set to true to indicate that
   * this constructor was used to create this object.
   * This constructor calls its super class with the empty string
   * to force the "toString" method of parent class "Throwable" to
   * print the error message in the form:
   *     ParseException: <result of getMessage>
   */
  public ParseException(Token currentTokenVal,
                        int[][] expectedTokenSequencesVal,
                        String[] tokenImageVal
                       )
  {
    super("");
    specialConstructor = true;
    currentToken = currentTokenVal;
    expectedTokenSequences = expectedTokenSequencesVal;
    tokenImage = tokenImageVal;
  }

  /**
   * The following constructors are for use by you for whatever
   * purpose you can think of.  Constructing the exception in this
   * manner makes the exception behave in the normal way - i.e., as
   * documented in the class "Throwable".  The fields "errorToken",
   * "expectedTokenSequences", and "tokenImage" do not contain
   * relevant information.  The JavaCC generated code does not use
   * these constructors.
   */

  public ParseException() {
    super();
    specialConstructor = false;
  }

  /** Constructor with message. */
  public ParseException(String message) {
    super(message);
    specialConstructor = false;
  }

  /**
   * This variable determines which constructor was used to create
   * this object and thereby affects the semantics of the
   * "getMessage" method (see below).
   */
  protected boolean specialConstructor;

  /**
   * This is the last token that has been consumed successfully.  If
   * this object has been created due to a parse error, the token
   * followng this token will (therefore) be the first error token.
   */
  public Token currentToken;

  /**
   * Each entry in this array is an array of integers.  Each array
   * of integers represents a sequence of tokens (by their ordinal
   * values) that is expected at this point of the parse.
   */
  public int[][] expectedTokenSequences;

  /**
   * This is a reference to the "tokenImage" array of the generated
   * parser within which the parse error occurred.  This array is
   * defined in the generated ...Constants interface.
   */
  public String[] tokenImage;

  /**
   * This method has the standard behavior when this object has been
   * created using the standard constructors.  Otherwise, it uses
   * "currentToken" and "expectedTokenSequences" to generate a parse
   * error message and returns it.  If this object has been created
   * due to a parse error, and you do not catch it (it gets thrown
   * from the parser), then this method is called during the printing
   * of the final stack trace, and hence the correct error message
   * gets displayed.
   */
  public String getMessage() {
    if (!specialConstructor) {
      return super.getMessage();
    }
    StringBuffer expected = new StringBuffer();
    int maxSize = 0;
    for (int i = 0; i < expectedTokenSequences.length; i++) {
      if (maxSize < expectedTokenSequences[i].length) {
        maxSize = expectedTokenSequences[i].length;
      }
      for (int j = 0; j < expectedTokenSequences[i].length; j++) {
        expected.append(tokenImage[expectedTokenSequences[i][j]]).append(' ');
      }
      if (expectedTokenSequences[i][expectedTokenSequences[i].length - 1] != 0) {
        expected.append("...");
      }
      expected.append(eol).append("    ");
    }
    String retval = "Encountered \"";
    Token tok = currentToken.next;
    for (int i = 0; i < maxSize; i++) {
      if (i != 0) retval += " ";
      if (tok.kind == 0) {
        retval += tokenImage[0];
        break;
      }
      retval += " " + tokenImage[tok.kind];
      retval += " \"";
      retval += add_escapes(tok.image);
      retval += " \"";
      tok = tok.next;
    }
    retval += "\" at line " + currentToken.next.beginLine + ", column " + currentToken.next.beginColumn;
    retval += "." + eol;
    if (expectedTokenSequences.length == 1) {
      retval += "Was expecting:" + eol + "    ";
    } else {
      retval += "Was expecting one of:" + eol + "    ";
    }
    retval += expected.toString();
    return retval;
  }

  /**
   * The end of line string for this machine.
   */
  protected String eol = System.getProperty("line.separator", "\n");

  /**
   * Used to convert raw characters to their escaped version
   * when these raw version cannot be used as part of an ASCII
   * string literal.
   */
  protected String add_escapes(String str) {
      StringBuffer retval = new StringBuffer();
      char ch;
      for (int i = 0; i < str.length(); i++) {
        switch (str.charAt(i))
        {
           case 0 :
              continue;
           case '\b':
              retval.append("\\b");
              continue;
           case '\t':
              retval.append("\\t");
              continue;
           case '\n':
              retval.append("\\n");
              continue;
           case '\f':
              retval.append("\\f");
              continue;
           case '\r':
              retval.append("\\r");
              continue;
           case '\"':
              retval.append("\\\"");
              continue;
           case '\'':
              retval.append("\\\'");
              continue;
           case '\\':
              retval.append("\\\\");
              continue;
           default:
              if ((ch = str.charAt(i)) < 0x20 || ch > 0x7e) {
                 String s = "0000" + Integer.toString(ch, 16);
                 retval.append("\\u" + s.substring(s.length() - 4, s.length()));
              } else {
                 retval.append(ch);
              }
              continue;
        }
      }
      return retval.toString();
   }

}
              package net.sourceforge.pmd.lang.ast;public class ParseException extends RuntimeException {

    public ParseException() {
	super();
    }

    public ParseException(String message) {
	super(message);
    }

    public ParseException(Throwable cause) {
	super(cause);
    }

    public ParseException(String message, Throwable cause) {
	super(message, cause);
    }
}
              package net.sourceforge.pmd.lang.java.ast;public class ParseException extends net.sourceforge.pmd.lang.ast.ParseException {

  /**
   * This constructor is used by the method "generateParseException"
   * in the generated parser.  Calling this constructor generates
   * a new object of this type with the fields "currentToken",
   * "expectedTokenSequences", and "tokenImage" set.  The boolean
   * flag "specialConstructor" is also set to true to indicate that
   * this constructor was used to create this object.
   * This constructor calls its super class with the empty string
   * to force the "toString" method of parent class "Throwable" to
   * print the error message in the form:
   *     ParseException: <result of getMessage>
   */
  public ParseException(Token currentTokenVal,
                        int[][] expectedTokenSequencesVal,
                        String[] tokenImageVal
                       )
  {
    super("");
    specialConstructor = true;
    currentToken = currentTokenVal;
    expectedTokenSequences = expectedTokenSequencesVal;
    tokenImage = tokenImageVal;
  }

  /**
   * The following constructors are for use by you for whatever
   * purpose you can think of.  Constructing the exception in this
   * manner makes the exception behave in the normal way - i.e., as
   * documented in the class "Throwable".  The fields "errorToken",
   * "expectedTokenSequences", and "tokenImage" do not contain
   * relevant information.  The JavaCC generated code does not use
   * these constructors.
   */

  public ParseException() {
    super();
    specialConstructor = false;
  }

  /** Constructor with message. */
  public ParseException(String message) {
    super(message);
    specialConstructor = false;
  }

  /**
   * This variable determines which constructor was used to create
   * this object and thereby affects the semantics of the
   * "getMessage" method (see below).
   */
  protected boolean specialConstructor;

  /**
   * This is the last token that has been consumed successfully.  If
   * this object has been created due to a parse error, the token
   * followng this token will (therefore) be the first error token.
   */
  public Token currentToken;

  /**
   * Each entry in this array is an array of integers.  Each array
   * of integers represents a sequence of tokens (by their ordinal
   * values) that is expected at this point of the parse.
   */
  public int[][] expectedTokenSequences;

  /**
   * This is a reference to the "tokenImage" array of the generated
   * parser within which the parse error occurred.  This array is
   * defined in the generated ...Constants interface.
   */
  public String[] tokenImage;

  /**
   * This method has the standard behavior when this object has been
   * created using the standard constructors.  Otherwise, it uses
   * "currentToken" and "expectedTokenSequences" to generate a parse
   * error message and returns it.  If this object has been created
   * due to a parse error, and you do not catch it (it gets thrown
   * from the parser), then this method is called during the printing
   * of the final stack trace, and hence the correct error message
   * gets displayed.
   */
  public String getMessage() {
    if (!specialConstructor) {
      return super.getMessage();
    }
    StringBuffer expected = new StringBuffer();
    int maxSize = 0;
    for (int i = 0; i < expectedTokenSequences.length; i++) {
      if (maxSize < expectedTokenSequences[i].length) {
        maxSize = expectedTokenSequences[i].length;
      }
      for (int j = 0; j < expectedTokenSequences[i].length; j++) {
        expected.append(tokenImage[expectedTokenSequences[i][j]]).append(' ');
      }
      if (expectedTokenSequences[i][expectedTokenSequences[i].length - 1] != 0) {
        expected.append("...");
      }
      expected.append(eol).append("    ");
    }
    String retval = "Encountered \"";
    Token tok = currentToken.next;
    for (int i = 0; i < maxSize; i++) {
      if (i != 0) retval += " ";
      if (tok.kind == 0) {
        retval += tokenImage[0];
        break;
      }
      retval += " " + tokenImage[tok.kind];
      retval += " \"";
      retval += add_escapes(tok.image);
      retval += " \"";
      tok = tok.next;
    }
    retval += "\" at line " + currentToken.next.beginLine + ", column " + currentToken.next.beginColumn;
    retval += "." + eol;
    if (expectedTokenSequences.length == 1) {
      retval += "Was expecting:" + eol + "    ";
    } else {
      retval += "Was expecting one of:" + eol + "    ";
    }
    retval += expected.toString();
    return retval;
  }

  /**
   * The end of line string for this machine.
   */
  protected String eol = System.getProperty("line.separator", "\n");

  /**
   * Used to convert raw characters to their escaped version
   * when these raw version cannot be used as part of an ASCII
   * string literal.
   */
  protected String add_escapes(String str) {
      StringBuffer retval = new StringBuffer();
      char ch;
      for (int i = 0; i < str.length(); i++) {
        switch (str.charAt(i))
        {
           case 0 :
              continue;
           case '\b':
              retval.append("\\b");
              continue;
           case '\t':
              retval.append("\\t");
              continue;
           case '\n':
              retval.append("\\n");
              continue;
           case '\f':
              retval.append("\\f");
              continue;
           case '\r':
              retval.append("\\r");
              continue;
           case '\"':
              retval.append("\\\"");
              continue;
           case '\'':
              retval.append("\\\'");
              continue;
           case '\\':
              retval.append("\\\\");
              continue;
           default:
              if ((ch = str.charAt(i)) < 0x20 || ch > 0x7e) {
                 String s = "0000" + Integer.toString(ch, 16);
                 retval.append("\\u" + s.substring(s.length() - 4, s.length()));
              } else {
                 retval.append(ch);
              }
              continue;
        }
      }
      return retval.toString();
   }

}
            
PMDException
              package net.sourceforge.pmd;public class PMDException extends Exception {
    private static final long serialVersionUID = 6938647389367956874L;

    private int severity;

    public PMDException(String message) {
        super(message);
    }

    public PMDException(String message, Exception reason) {
        super(message, reason);
    }

    public void setSeverity(int severity) {
        this.severity = severity;
    }

    public int getSeverity() {
        return severity;
    }
}
            

Thrown Exceptions Summary

A (Domain) exception is defined in the application. A (Lib) exception is defined in the JDK or in a library. An exception can be thrown, thrown from within a catch, or declared in the signature of a method (usually for checked exceptions). Hovering over a number triggers showing code snippets from the application code.

Type Exception Thrown Thrown
from Catch
Declared
- Unknown 372
              
//in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
throw generateParseException();

              
//in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
throw jj_ls;

              
//in src/main/java/net/sourceforge/pmd/lang/ast/JavaCharStream.java
throw e;

              
//in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AbstractNodeInfo.java
throw createUnsupportedOperationException("Source.getSystemId()");

              
//in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AbstractNodeInfo.java
throw createUnsupportedOperationException("Source.setSystemId(String)");

              
//in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AbstractNodeInfo.java
throw createUnsupportedOperationException("ValueRepresentation.getStringValue()");

              
//in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AbstractNodeInfo.java
throw createUnsupportedOperationException("ValueRepresentation.getStringValueCS()");

              
//in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AbstractNodeInfo.java
throw createUnsupportedOperationException("Item.getTypedValue()");

              
//in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AbstractNodeInfo.java
throw createUnsupportedOperationException("VirtualNode.getUnderlyingNode()");

              
//in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AbstractNodeInfo.java
throw createUnsupportedOperationException("SiblingCountingNode.getSiblingPosition()");

              
//in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AbstractNodeInfo.java
throw createUnsupportedOperationException("NodeInfo.atomize()");

              
//in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AbstractNodeInfo.java
throw createUnsupportedOperationException("NodeInfo.compareOrder(NodeInfo)");

              
//in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AbstractNodeInfo.java
throw createUnsupportedOperationException("ValueRepresentation.copy(Receiver, int, boolean, int)");

              
//in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AbstractNodeInfo.java
throw createUnsupportedOperationException("NodeInfo.generateId(FastStringBuffer)");

              
//in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AbstractNodeInfo.java
throw createUnsupportedOperationException("NodeInfo.getAttributeValue(int)");

              
//in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AbstractNodeInfo.java
throw createUnsupportedOperationException("NodeInfo.getBaseURI()");

              
//in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AbstractNodeInfo.java
throw createUnsupportedOperationException("NodeInfo.getColumnNumber()");

              
//in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AbstractNodeInfo.java
throw createUnsupportedOperationException("NodeInfo.getConfiguration()");

              
//in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AbstractNodeInfo.java
throw createUnsupportedOperationException("NodeInfo.getDeclaredNamespaces(int[])");

              
//in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AbstractNodeInfo.java
throw createUnsupportedOperationException("NodeInfo.getDisplayName()");

              
//in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AbstractNodeInfo.java
throw createUnsupportedOperationException("NodeInfo.getDocumentRoot()");

              
//in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AbstractNodeInfo.java
throw createUnsupportedOperationException("NodeInfo.getFingerprint()");

              
//in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AbstractNodeInfo.java
throw createUnsupportedOperationException("NodeInfo.getLineNumber()");

              
//in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AbstractNodeInfo.java
throw createUnsupportedOperationException("NodeInfo.getLocalPart()");

              
//in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AbstractNodeInfo.java
throw createUnsupportedOperationException("NodeInfo.getNameCode()");

              
//in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AbstractNodeInfo.java
throw createUnsupportedOperationException("NodeInfo.getNamePool()");

              
//in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AbstractNodeInfo.java
throw createUnsupportedOperationException("NodeInfo.getNodeKind()");

              
//in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AbstractNodeInfo.java
throw createUnsupportedOperationException("NodeInfo.getParent()");

              
//in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AbstractNodeInfo.java
throw createUnsupportedOperationException("NodeInfo.getPrefix()");

              
//in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AbstractNodeInfo.java
throw createUnsupportedOperationException("NodeInfo.getRoot()");

              
//in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AbstractNodeInfo.java
throw createUnsupportedOperationException("NodeInfo.getTypeAnnotation()");

              
//in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AbstractNodeInfo.java
throw createUnsupportedOperationException("NodeInfo.getURI()");

              
//in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AbstractNodeInfo.java
throw createUnsupportedOperationException("NodeInfo.hasChildNodes()");

              
//in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AbstractNodeInfo.java
throw createUnsupportedOperationException("NodeInfo.isId()");

              
//in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AbstractNodeInfo.java
throw createUnsupportedOperationException("NodeInfo.isIdref()");

              
//in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AbstractNodeInfo.java
throw createUnsupportedOperationException("NodeInfo.isNilled()");

              
//in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AbstractNodeInfo.java
throw createUnsupportedOperationException("NodeInfo.iterateAxis(byte) for axis '" + Axis.axisName[axisNumber]
		+ "'");

              
//in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/DocumentNode.java
throw createUnsupportedOperationException("DocumentInfo.getUnparsedEntity(String)");

              
//in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/DocumentNode.java
throw createUnsupportedOperationException("DocumentInfo.getUnparsedEntityNames()");

              
//in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/DocumentNode.java
throw createUnsupportedOperationException("DocumentInfo.selectID(String)");

              
//in src/main/java/net/sourceforge/pmd/lang/ast/SimpleCharStream.java
throw e;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw generateParseException();

              
//in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw jj_ls;

              
//in src/main/java/net/sourceforge/pmd/processor/MultiThreadProcessor.java
throw (RuntimeException) t;

              
//in src/main/java/net/sourceforge/pmd/processor/MultiThreadProcessor.java
throw (Error) t;

            
- -
- Builder 39
              
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
throw generateParseException();

              
// in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AbstractNodeInfo.java
throw createUnsupportedOperationException("Source.getSystemId()");

              
// in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AbstractNodeInfo.java
throw createUnsupportedOperationException("Source.setSystemId(String)");

              
// in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AbstractNodeInfo.java
throw createUnsupportedOperationException("ValueRepresentation.getStringValue()");

              
// in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AbstractNodeInfo.java
throw createUnsupportedOperationException("ValueRepresentation.getStringValueCS()");

              
// in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AbstractNodeInfo.java
throw createUnsupportedOperationException("Item.getTypedValue()");

              
// in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AbstractNodeInfo.java
throw createUnsupportedOperationException("VirtualNode.getUnderlyingNode()");

              
// in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AbstractNodeInfo.java
throw createUnsupportedOperationException("SiblingCountingNode.getSiblingPosition()");

              
// in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AbstractNodeInfo.java
throw createUnsupportedOperationException("NodeInfo.atomize()");

              
// in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AbstractNodeInfo.java
throw createUnsupportedOperationException("NodeInfo.compareOrder(NodeInfo)");

              
// in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AbstractNodeInfo.java
throw createUnsupportedOperationException("ValueRepresentation.copy(Receiver, int, boolean, int)");

              
// in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AbstractNodeInfo.java
throw createUnsupportedOperationException("NodeInfo.generateId(FastStringBuffer)");

              
// in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AbstractNodeInfo.java
throw createUnsupportedOperationException("NodeInfo.getAttributeValue(int)");

              
// in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AbstractNodeInfo.java
throw createUnsupportedOperationException("NodeInfo.getBaseURI()");

              
// in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AbstractNodeInfo.java
throw createUnsupportedOperationException("NodeInfo.getColumnNumber()");

              
// in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AbstractNodeInfo.java
throw createUnsupportedOperationException("NodeInfo.getConfiguration()");

              
// in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AbstractNodeInfo.java
throw createUnsupportedOperationException("NodeInfo.getDeclaredNamespaces(int[])");

              
// in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AbstractNodeInfo.java
throw createUnsupportedOperationException("NodeInfo.getDisplayName()");

              
// in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AbstractNodeInfo.java
throw createUnsupportedOperationException("NodeInfo.getDocumentRoot()");

              
// in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AbstractNodeInfo.java
throw createUnsupportedOperationException("NodeInfo.getFingerprint()");

              
// in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AbstractNodeInfo.java
throw createUnsupportedOperationException("NodeInfo.getLineNumber()");

              
// in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AbstractNodeInfo.java
throw createUnsupportedOperationException("NodeInfo.getLocalPart()");

              
// in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AbstractNodeInfo.java
throw createUnsupportedOperationException("NodeInfo.getNameCode()");

              
// in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AbstractNodeInfo.java
throw createUnsupportedOperationException("NodeInfo.getNamePool()");

              
// in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AbstractNodeInfo.java
throw createUnsupportedOperationException("NodeInfo.getNodeKind()");

              
// in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AbstractNodeInfo.java
throw createUnsupportedOperationException("NodeInfo.getParent()");

              
// in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AbstractNodeInfo.java
throw createUnsupportedOperationException("NodeInfo.getPrefix()");

              
// in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AbstractNodeInfo.java
throw createUnsupportedOperationException("NodeInfo.getRoot()");

              
// in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AbstractNodeInfo.java
throw createUnsupportedOperationException("NodeInfo.getTypeAnnotation()");

              
// in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AbstractNodeInfo.java
throw createUnsupportedOperationException("NodeInfo.getURI()");

              
// in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AbstractNodeInfo.java
throw createUnsupportedOperationException("NodeInfo.hasChildNodes()");

              
// in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AbstractNodeInfo.java
throw createUnsupportedOperationException("NodeInfo.isId()");

              
// in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AbstractNodeInfo.java
throw createUnsupportedOperationException("NodeInfo.isIdref()");

              
// in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AbstractNodeInfo.java
throw createUnsupportedOperationException("NodeInfo.isNilled()");

              
// in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AbstractNodeInfo.java
throw createUnsupportedOperationException("NodeInfo.iterateAxis(byte) for axis '" + Axis.axisName[axisNumber]
		+ "'");

              
// in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/DocumentNode.java
throw createUnsupportedOperationException("DocumentInfo.getUnparsedEntity(String)");

              
// in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/DocumentNode.java
throw createUnsupportedOperationException("DocumentInfo.getUnparsedEntityNames()");

              
// in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/DocumentNode.java
throw createUnsupportedOperationException("DocumentInfo.selectID(String)");

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw generateParseException();

            
- -
- Variable 333
              
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
throw jj_ls;

              
// in src/main/java/net/sourceforge/pmd/lang/ast/JavaCharStream.java
throw e;

              
// in src/main/java/net/sourceforge/pmd/lang/ast/SimpleCharStream.java
throw e;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (RuntimeException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (ParseException)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw (Error)jjte000;

              
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
throw jj_ls;

              
// in src/main/java/net/sourceforge/pmd/processor/MultiThreadProcessor.java
throw (RuntimeException) t;

              
// in src/main/java/net/sourceforge/pmd/processor/MultiThreadProcessor.java
throw (Error) t;

            
- -
(Domain) ParseException 86
              
// 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/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/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 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 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 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 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/java/ast/JavaParser.java
private void checkForBadAssertUsage(String in, String usage) { if (jdkVersion > 3 && in.equals("assert")) { throw new ParseException("Can't use 'assert' as " + usage + " when running in JDK 1.4 mode!"); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
private void checkForBadStaticImportUsage() { if (jdkVersion < 5) { throw new ParseException("Can't use static imports when running in JDK 1.4 mode!"); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
private void checkForBadAnnotationUsage() { if (jdkVersion < 5) { throw new ParseException("Can't use annotations when running in JDK 1.4 mode!"); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
private void checkForBadGenericsUsage() { if (jdkVersion < 5) { throw new ParseException("Can't use generics unless running in JDK 1.5 mode!"); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
private void checkForBadVariableArgumentsUsage() { if (jdkVersion < 5) { throw new ParseException("Can't use variable arguments (varargs) when running in JDK 1.4 mode!"); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
private void checkForBadJDK15ForLoopSyntaxArgumentsUsage() { if (jdkVersion < 5) { throw new ParseException("Can't use JDK 1.5 for loop syntax when running in JDK 1.4 mode!"); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
private void checkForBadEnumUsage(String in, String usage) { if (jdkVersion >= 5 && in.equals("enum")) { throw new ParseException("Can't use 'enum' as " + usage + " when running in JDK 1.5 mode!"); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
private void checkForBadHexFloatingPointLiteral() { if (jdkVersion < 5) { throw new ParseException("Can't use hexadecimal floating point literals in pre-JDK 1.5 target"); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
private void checkForBadNumericalLiteralslUsage(Token token) { if (jdkVersion < 7) { if (token.image.contains("_")) { throw new ParseException("Can't use underscores in numerical literals when running in JDK inferior to 1.7 mode!"); } if (token.image.startsWith("0b") || token.image.startsWith("0B")) { throw new ParseException("Can't use binary numerical literals when running in JDK inferior to 1.7 mode!"); } } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
private void checkForBadDiamondUsage() { if (jdkVersion < 7) { throw new ParseException("Cannot use the diamond generic notation when running in JDK inferior to 1.7 mode!"); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
private void checkForBadTryWithResourcesUsage() { if (jdkVersion < 7) { throw new ParseException("Cannot use the try-with-resources notation when running in JDK inferior to 1.7 mode!"); } }
// 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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); } } }
4
              
// in src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/EcmascriptParser.java
catch (final IOException e) { throw new ParseException(e); }
// in src/main/java/net/sourceforge/pmd/lang/xml/ast/XmlParser.java
catch (ParserConfigurationException e) { throw new ParseException(e); }
// in src/main/java/net/sourceforge/pmd/lang/xml/ast/XmlParser.java
catch (SAXException e) { throw new ParseException(e); }
// in src/main/java/net/sourceforge/pmd/lang/xml/ast/XmlParser.java
catch (IOException e) { throw new ParseException(e); }
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)); }
(Lib) RuntimeException 82
              
// in src/main/java/net/sourceforge/pmd/dcd/asm/TypeSignatureVisitor.java
public Class<?> getFieldType() { popType(); if (fieldType == null) { throw new RuntimeException(); } return fieldType; }
// in src/main/java/net/sourceforge/pmd/dcd/asm/TypeSignatureVisitor.java
public Class<?> getMethodReturnType() { popType(); if (returnType == null) { throw new RuntimeException(); } return returnType; }
// in src/main/java/net/sourceforge/pmd/dcd/asm/TypeSignatureVisitor.java
public Class<?>[] getMethodParameterTypes() { popType(); if (parameterTypes == null) { throw new RuntimeException(); } if (parameterTypes != null) { return parameterTypes.toArray(new Class<?>[parameterTypes.size()]); } else { return null; } }
// in src/main/java/net/sourceforge/pmd/dcd/asm/TypeSignatureVisitor.java
private void popType() { switch (typeType) { case NO_TYPE: break; case FIELD_TYPE: fieldType = getType(); break; case RETURN_TYPE: returnType = getType(); break; case PARAMETER_TYPE: parameterTypes.add(getType()); break; default: throw new RuntimeException("Unknown type type: " + typeType); } typeType = NO_TYPE; type = null; arrayDimensions = 0; }
// in src/main/java/net/sourceforge/pmd/dcd/asm/TypeSignatureVisitor.java
public void visitBaseType(char descriptor) { if (TRACE) { println("visitBaseType:"); printlnIndent("descriptor: " + descriptor); } switch (descriptor) { case 'B': type = Byte.TYPE; break; case 'C': type = Character.TYPE; break; case 'D': type = Double.TYPE; break; case 'F': type = Float.TYPE; break; case 'I': type = Integer.TYPE; break; case 'J': type = Long.TYPE; break; case 'S': type = Short.TYPE; break; case 'Z': type = Boolean.TYPE; break; case 'V': type = Void.TYPE; break; default: throw new RuntimeException("Unknown baseType descriptor: " + descriptor); } }
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
public static Class<?> getClass(String name) { try { return ClassLoaderUtil.class.getClassLoader().loadClass(name); } catch (ClassNotFoundException e) { throw new RuntimeException(e); } }
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
public static Field getField(Class<?> type, String name) { try { return myGetField(type, name); } catch (NoSuchFieldException e) { throw new RuntimeException(e); } }
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
public static Method getMethod(Class<?> type, String name, Class<?>... parameterTypes) { try { return myGetMethod(type, name, parameterTypes); } catch (NoSuchMethodException e) { throw new RuntimeException(e); } }
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
public static Constructor<?> getConstructor(Class<?> type, String name, Class<?>... parameterTypes) { try { return type.getDeclaredConstructor(parameterTypes); } catch (NoSuchMethodException e) { throw new RuntimeException(e); } }
// in src/main/java/net/sourceforge/pmd/dcd/graph/UsageGraphBuilder.java
public void index(String name) { try { String className = getClassName(name); String classResourceName = getResourceName(name); if (classFilter.filter(className)) { if (!usageGraph.isClass(className)) { usageGraph.defineClass(className); InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream( classResourceName + ".class"); ClassReader classReader = new ClassReader(inputStream); classReader.accept(getNewClassVisitor(), 0); } } } catch (IOException e) { throw new RuntimeException("For " + name + ": " + e.getMessage(), e); } }
// in src/main/java/net/sourceforge/pmd/cpd/SourceCode.java
protected List<String> load() { LineNumberReader lnr = null; try { lnr = new LineNumberReader(getReader()); List<String> lines = new ArrayList<String>(); String currentLine; while ((currentLine = lnr.readLine()) != null) { lines.add(currentLine); } return lines; } catch (Exception e) { e.printStackTrace(); throw new RuntimeException("Problem while reading " + getFileName() + ":" + e.getMessage()); } finally { IOUtil.closeQuietly(lnr); } }
// in src/main/java/net/sourceforge/pmd/RuleSetFactory.java
public Iterator<RuleSet> getRegisteredRuleSets() throws RuleSetNotFoundException { String rulesetsProperties = null; try { List<RuleSetReferenceId> ruleSetReferenceIds = new ArrayList<RuleSetReferenceId>(); for (Language language : Language.findWithRuleSupport()) { Properties props = new Properties(); rulesetsProperties = "rulesets/" + language.getTerseName() + "/rulesets.properties"; props.load(ResourceLoader.loadResourceAsStream(rulesetsProperties)); String rulesetFilenames = props.getProperty("rulesets.filenames"); ruleSetReferenceIds.addAll(RuleSetReferenceId.parse(rulesetFilenames)); } return createRuleSets(ruleSetReferenceIds).getRuleSetsIterator(); } catch (IOException ioe) { throw new RuntimeException("Couldn't find " + rulesetsProperties + "; please ensure that the rulesets directory is on the classpath. The current classpath is: " + System.getProperty("java.class.path")); } }
// in src/main/java/net/sourceforge/pmd/RuleSetFactory.java
private static RuleSet classNotFoundProblem(Exception ex) throws RuntimeException { ex.printStackTrace(); throw new RuntimeException("Couldn't find the class " + ex.getMessage()); }
// in src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/EcmascriptTreeBuilder.java
protected static void register(Class<? extends AstNode> nodeType, Class<? extends EcmascriptNode> nodeAdapterType) { try { NODE_TYPE_TO_NODE_ADAPTER_TYPE.put(nodeType, nodeAdapterType.getConstructor(nodeType)); } catch (SecurityException e) { throw new RuntimeException(e); } catch (NoSuchMethodException e) { throw new RuntimeException(e); } }
// in src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/EcmascriptTreeBuilder.java
protected EcmascriptNode createNodeAdapter(AstNode node) { try { Constructor<? extends EcmascriptNode> constructor = NODE_TYPE_TO_NODE_ADAPTER_TYPE.get(node.getClass()); if (constructor == null) { throw new IllegalArgumentException("There is no Node adapter class registered for the Node class: " + node.getClass()); } return constructor.newInstance(node); } catch (InstantiationException e) { throw new RuntimeException(e); } catch (IllegalAccessException e) { throw new RuntimeException(e); } catch (InvocationTargetException e) { throw new RuntimeException(e.getTargetException()); } }
// in src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/DumpFacade.java
public void initializeWith(Writer writer, String prefix, boolean recurse, EcmascriptNode<?> node) { this.writer = (writer instanceof PrintWriter) ? (PrintWriter) writer : new PrintWriter(writer); this.recurse = recurse; this.dump(node, prefix); try { writer.flush(); } catch (IOException e) { throw new RuntimeException("Problem flushing PrintWriter.", e); } }
// in src/main/java/net/sourceforge/pmd/lang/dfa/VariableAccess.java
public String toString() { if (isDefinition()) { return "Definition(" + variableName + ")"; } if (isReference()) { return "Reference(" + variableName + ")"; } if (isUndefinition()) { return "Undefinition(" + variableName + ")"; } throw new RuntimeException("Access type was never set"); }
// in src/main/java/net/sourceforge/pmd/lang/dfa/AbstractDataFlowNode.java
private String stringFromType(int intype) { if (typeMap.isEmpty()) { typeMap.put(NodeType.IF_EXPR, "IF_EXPR"); typeMap.put(NodeType.IF_LAST_STATEMENT, "IF_LAST_STATEMENT"); typeMap.put(NodeType.IF_LAST_STATEMENT_WITHOUT_ELSE, "IF_LAST_STATEMENT_WITHOUT_ELSE"); typeMap.put(NodeType.ELSE_LAST_STATEMENT, "ELSE_LAST_STATEMENT"); typeMap.put(NodeType.WHILE_LAST_STATEMENT, "WHILE_LAST_STATEMENT"); typeMap.put(NodeType.WHILE_EXPR, "WHILE_EXPR"); typeMap.put(NodeType.SWITCH_START, "SWITCH_START"); typeMap.put(NodeType.CASE_LAST_STATEMENT, "CASE_LAST_STATEMENT"); typeMap.put(NodeType.SWITCH_LAST_DEFAULT_STATEMENT, "SWITCH_LAST_DEFAULT_STATEMENT"); typeMap.put(NodeType.SWITCH_END, "SWITCH_END"); typeMap.put(NodeType.FOR_INIT, "FOR_INIT"); typeMap.put(NodeType.FOR_EXPR, "FOR_EXPR"); typeMap.put(NodeType.FOR_UPDATE, "FOR_UPDATE"); typeMap.put(NodeType.FOR_BEFORE_FIRST_STATEMENT, "FOR_BEFORE_FIRST_STATEMENT"); typeMap.put(NodeType.FOR_END, "FOR_END"); typeMap.put(NodeType.DO_BEFORE_FIRST_STATEMENT, "DO_BEFORE_FIRST_STATEMENT"); typeMap.put(NodeType.DO_EXPR, "DO_EXPR"); typeMap.put(NodeType.RETURN_STATEMENT, "RETURN_STATEMENT"); typeMap.put(NodeType.BREAK_STATEMENT, "BREAK_STATEMENT"); typeMap.put(NodeType.CONTINUE_STATEMENT, "CONTINUE_STATEMENT"); typeMap.put(NodeType.LABEL_STATEMENT, "LABEL_STATEMENT"); typeMap.put(NodeType.LABEL_LAST_STATEMENT, "LABEL_END"); typeMap.put(NodeType.THROW_STATEMENT, "THROW_STATEMENT"); } if (!typeMap.containsKey(intype)) { throw new RuntimeException("Couldn't find type id " + intype); } return typeMap.get(intype); }
// in src/main/java/net/sourceforge/pmd/lang/dfa/report/ReportHTMLPrintVisitor.java
public void visit(AbstractReportNode node) { /* * The first node of result tree. */ if (node.getParent() == null) { packageBuf.insert(0, "<html>" + " <head>" + " <title>PMD</title>" + " </head>" + " <body>" + PMD.EOL + "<h2>Package View</h2>" + "<table border=\"1\" align=\"center\" cellspacing=\"0\" cellpadding=\"3\">" + " <tr>" + PMD.EOL + "<th>Package</th>" + "<th>Class</th>" + "<th>#</th>" + " </tr>" + PMD.EOL); length = packageBuf.length(); } super.visit(node); if (node instanceof ViolationNode) { renderViolation((ViolationNode)node); } if (node instanceof ClassNode) { renderClass((ClassNode)node); } if (node instanceof PackageNode) { renderPackage((PackageNode)node); } // The first node of result tree. if (node.getParent() == null) { packageBuf.append("</table> </body></html>"); try { write("index.html", packageBuf); } catch (Exception e) { throw new RuntimeException("Error while writing HTML report: " + e.getMessage()); } } }
// in src/main/java/net/sourceforge/pmd/lang/dfa/report/ReportHTMLPrintVisitor.java
private void renderClass(ClassNode cnode) { String str = cnode.getClassName(); classBuf.insert(0, "<html><head><title>PMD - " + str + "</title></head><body>" + PMD.EOL + "<h2>Class View</h2>" + "<h3 align=\"center\">Class: " + str + "</h3>" + "<table border=\"\" align=\"center\" cellspacing=\"0\" cellpadding=\"3\">" + " <tr>" + PMD.EOL + "<th>Method</th>" + "<th>Violation</th>" + " </tr>" + PMD.EOL); classBuf.append("</table>" + " </body>" + "</html>"); try { write(str + ".html", classBuf); } catch (Exception e) { throw new RuntimeException("Error while writing HTML report: " + e.getMessage()); } classBuf = new StringBuilder(); packageBuf.insert(this.length, "<tr>" + " <td>-</td>" + " <td><a href=\"" + str + ".html\">" + str + "</a></td>" + " <td>" + cnode.getNumberOfViolations() + "</td>" + "</tr>" + PMD.EOL); cnode.getParent().addNumberOfViolation(cnode.getNumberOfViolations()); }
// in src/main/java/net/sourceforge/pmd/lang/xml/ast/DumpFacade.java
public void initializeWith(Writer writer, String prefix, boolean recurse, XmlNode node) { this.writer = (writer instanceof PrintWriter) ? (PrintWriter) writer : new PrintWriter(writer); this.recurse = recurse; this.dump(node, prefix); try { writer.flush(); } catch (IOException e) { throw new RuntimeException("Problem flushing PrintWriter.", e); } }
// in src/main/java/net/sourceforge/pmd/lang/xml/rule/AbstractDomXmlRule.java
protected void visitDomNode(XmlNode node, Node domNode, RuleContext ctx) { switch (domNode.getNodeType()) { case Node.CDATA_SECTION_NODE: visit(node, (CharacterData) domNode, ctx); break; case Node.COMMENT_NODE: visit(node, (Comment) domNode, ctx); break; case Node.DOCUMENT_NODE: visit(node, (Document) domNode, ctx); break; case Node.DOCUMENT_TYPE_NODE: visit(node, (DocumentType) domNode, ctx); break; case Node.ELEMENT_NODE: visit(node, (Element) domNode, ctx); break; case Node.ENTITY_NODE: visit(node, (Entity) domNode, ctx); break; case Node.ENTITY_REFERENCE_NODE: visit(node, (EntityReference) domNode, ctx); break; case Node.NOTATION_NODE: visit(node, (Notation) domNode, ctx); break; case Node.PROCESSING_INSTRUCTION_NODE: visit(node, (ProcessingInstruction) domNode, ctx); break; case Node.TEXT_NODE: visit(node, (Text) domNode, ctx); break; default: throw new RuntimeException("Unexpected node type: " + domNode.getNodeType() + " on node: " + domNode); } }
// 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 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 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/DumpFacade.java
public void initializeWith(Writer writer, String prefix, boolean recurse, JspNode node) { this.writer = (writer instanceof PrintWriter) ? (PrintWriter) writer : new PrintWriter(writer); this.recurse = recurse; this.visit(node, prefix); try { writer.flush(); } catch (IOException e) { throw new RuntimeException("Problem flushing PrintWriter.", e); } }
// in src/main/java/net/sourceforge/pmd/lang/ast/AbstractNode.java
public int getBeginColumn() { if (beginColumn != -1) { return beginColumn; } else { if (children != null && children.length > 0) { return children[0].getBeginColumn(); } else { throw new RuntimeException("Unable to determine begining line of Node."); } } }
// in src/main/java/net/sourceforge/pmd/lang/ast/AbstractNode.java
public Document getAsDocument() { try { DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); DocumentBuilder db = dbf.newDocumentBuilder(); Document document = db.newDocument(); appendElement(document); return document; } catch (ParserConfigurationException pce) { throw new RuntimeException(pce); } }
// in src/main/java/net/sourceforge/pmd/lang/ast/AbstractNode.java
public boolean hasDescendantMatchingXPath(String xpathString) { try { return !findChildNodesWithXPath(xpathString).isEmpty(); } catch (JaxenException e) { throw new RuntimeException("XPath expression " + xpathString + " failed: " + e.getLocalizedMessage(), e); } }
// in src/main/java/net/sourceforge/pmd/lang/ast/xpath/NodeIterator.java
private int getPositionFromParent(Node contextNode) { Node parentNode = contextNode.jjtGetParent(); for (int i = 0; i < parentNode.jjtGetNumChildren(); i++) { if (parentNode.jjtGetChild(i) == contextNode) { return i; } } throw new RuntimeException("Node was not a child of it's parent ???"); }
// in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AttributeNode.java
Override public Value atomize() throws XPathException { if (value == null) { Object v = attribute.getValue(); // TODO Need to handle the full range of types, is there something Saxon can do to help? if (v instanceof String) { value = new StringValue((String) v); } else if (v instanceof Boolean) { value = BooleanValue.get(((Boolean) v).booleanValue()); } else if (v instanceof Integer) { value = Int64Value.makeIntegerValue((Integer) v); } else if (v == null) { // Ok } else { throw new RuntimeException("Unable to create ValueRepresentaton for attribute value: " + v + " of type " + v.getClass()); } } return value; }
// in src/main/java/net/sourceforge/pmd/lang/java/dfa/StatementAndBraceFinder.java
public void buildDataFlowFor(JavaNode node) { if (!(node instanceof ASTMethodDeclaration) && !(node instanceof ASTConstructorDeclaration)) { throw new RuntimeException("Can't build a data flow for anything other than a method or a constructor"); } this.dataFlow = new Structure(dataFlowHandler); this.dataFlow.createStartNode(node.getBeginLine()); this.dataFlow.createNewNode(node); node.jjtAccept(this, dataFlow); this.dataFlow.createEndNode(node.getEndLine()); Linker linker = new Linker(dataFlowHandler, dataFlow.getBraceStack(), dataFlow.getContinueBreakReturnStack()); try { linker.computePaths(); } catch (LinkerException e) { e.printStackTrace(); } catch (SequenceException e) { e.printStackTrace(); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/ASTTryStatement.java
public ASTFinallyStatement getFinally() { for (int i = 0; i < this.jjtGetNumChildren(); i++) { if (jjtGetChild(i) instanceof ASTFinallyStatement) { return (ASTFinallyStatement) jjtGetChild(i); } } throw new RuntimeException("ASTTryStatement.getFinally called but this try stmt doesn't contain a finally block"); }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/ASTVariableDeclaratorId.java
public Node getTypeNameNode() { if (jjtGetParent() instanceof ASTFormalParameter) { return findTypeNameNode(jjtGetParent()); } else if (jjtGetParent().jjtGetParent() instanceof ASTLocalVariableDeclaration || jjtGetParent().jjtGetParent() instanceof ASTFieldDeclaration) { return findTypeNameNode(jjtGetParent().jjtGetParent()); } throw new RuntimeException("Don't know how to get the type for anything other than ASTLocalVariableDeclaration/ASTFormalParameter/ASTFieldDeclaration"); }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/ASTVariableDeclaratorId.java
public ASTType getTypeNode() { if (jjtGetParent() instanceof ASTFormalParameter) { return ((ASTFormalParameter) jjtGetParent()).getTypeNode(); } else { Node n = jjtGetParent().jjtGetParent(); if (n instanceof ASTLocalVariableDeclaration || n instanceof ASTFieldDeclaration) { return n.getFirstChildOfType(ASTType.class); } } throw new RuntimeException("Don't know how to get the type for anything other than ASTLocalVariableDeclaration/ASTFormalParameter/ASTFieldDeclaration"); }
// 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 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/DumpFacade.java
public void initializeWith(Writer writer, String prefix, boolean recurse, JavaNode node) { this.writer = (writer instanceof PrintWriter) ? (PrintWriter) writer : new PrintWriter(writer); this.recurse = recurse; this.visit(node, prefix); try { writer.flush(); } catch (IOException e) { throw new RuntimeException("Problem flushing PrintWriter.", e); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/ASTType.java
public int getArrayDepth() { if (jjtGetNumChildren() != 0 && (jjtGetChild(0) instanceof ASTReferenceType || jjtGetChild(0) instanceof ASTPrimitiveType)) { return ((Dimensionable) jjtGetChild(0)).getArrayDepth(); } throw new RuntimeException("ASTType.getArrayDepth called, but first child (of " + jjtGetNumChildren() + " total children) is neither a primitive nor a reference type."); }
// in src/main/java/net/sourceforge/pmd/lang/java/symboltable/MethodScope.java
public void addDeclaration(VariableNameDeclaration variableDecl) { if (variableNames.containsKey(variableDecl)) { throw new RuntimeException("Variable " + variableDecl + " is already in the symbol table"); } variableNames.put(variableDecl, new ArrayList<NameOccurrence>()); }
// in src/main/java/net/sourceforge/pmd/lang/java/symboltable/SourceFileScope.java
public ClassScope getEnclosingClassScope() { throw new RuntimeException("getEnclosingClassScope() called on SourceFileScope"); }
// in src/main/java/net/sourceforge/pmd/lang/java/symboltable/SourceFileScope.java
public MethodScope getEnclosingMethodScope() { throw new RuntimeException("getEnclosingMethodScope() called on SourceFileScope"); }
// in src/main/java/net/sourceforge/pmd/lang/java/symboltable/SourceFileScope.java
public void addDeclaration(MethodNameDeclaration decl) { throw new RuntimeException("SourceFileScope.addDeclaration(MethodNameDeclaration decl) called"); }
// in src/main/java/net/sourceforge/pmd/lang/java/symboltable/SourceFileScope.java
public void addDeclaration(VariableNameDeclaration decl) { throw new RuntimeException("SourceFileScope.addDeclaration(VariableNameDeclaration decl) called"); }
// in src/main/java/net/sourceforge/pmd/lang/java/symboltable/SourceFileScope.java
public Map<VariableNameDeclaration, List<NameOccurrence>> getVariableDeclarations() { throw new RuntimeException("PackageScope.getVariableDeclarations() called"); }
// in src/main/java/net/sourceforge/pmd/lang/java/symboltable/NameOccurrence.java
public boolean isOnLeftHandSide() { // I detest this method with every atom of my being Node primaryExpression; if (location.jjtGetParent() instanceof ASTPrimaryExpression) { primaryExpression = location.jjtGetParent().jjtGetParent(); } else if (location.jjtGetParent().jjtGetParent() instanceof ASTPrimaryExpression) { primaryExpression = location.jjtGetParent().jjtGetParent().jjtGetParent(); } else { throw new RuntimeException("Found a NameOccurrence that didn't have an ASTPrimary Expression as parent or grandparent. Parent = " + location.jjtGetParent() + " and grandparent = " + location.jjtGetParent().jjtGetParent()); } if (isStandAlonePostfix(primaryExpression)) { return true; } if (primaryExpression.jjtGetNumChildren() <= 1) { return false; } if (!(primaryExpression.jjtGetChild(1) instanceof ASTAssignmentOperator)) { return false; } if (isPartOfQualifiedName() /* or is an array type */) { return false; } if (isCompoundAssignment(primaryExpression)) { return false; } return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/symboltable/ClassScope.java
public void addDeclaration(VariableNameDeclaration variableDecl) { if (variableNames.containsKey(variableDecl)) { throw new RuntimeException(variableDecl + " is already in the symbol table"); } variableNames.put(variableDecl, new ArrayList<NameOccurrence>()); }
// in src/main/java/net/sourceforge/pmd/lang/java/symboltable/AbstractScope.java
public Map<ClassNameDeclaration, List<NameOccurrence>> getClassDeclarations() { throw new RuntimeException("AbstractScope.getClassDeclarations() was invoked. That shouldn't happen... bug."); }
// in src/main/java/net/sourceforge/pmd/lang/java/symboltable/LocalScope.java
public void addDeclaration(VariableNameDeclaration nameDecl) { if (variableNames.containsKey(nameDecl)) { throw new RuntimeException("Variable " + nameDecl + " is already in the symbol table"); } variableNames.put(nameDecl, new ArrayList<NameOccurrence>()); }
// in src/main/java/net/sourceforge/pmd/lang/rule/properties/factories/BasicPropertyDescriptorFactory.java
public PropertyDescriptor<?> createWith(Map<String, String> valuesById) { throw new RuntimeException("Unimplemented createWith() method in subclass"); }
// in src/main/java/net/sourceforge/pmd/lang/rule/properties/factories/BasicPropertyDescriptorFactory.java
protected static String[] minMaxFrom(Map<String, String> valuesById) { String min = minValueIn(valuesById); String max = maxValueIn(valuesById); if (StringUtil.isEmpty(min) || StringUtil.isEmpty(max)) { throw new RuntimeException("min and max values must be specified"); } return new String[] { min, max }; }
// in src/main/java/net/sourceforge/pmd/lang/rule/xpath/JaxenXPathRuleQuery.java
Override public List<String> getRuleChainVisits() { try { // No Navigator available in this context initializeXPathExpression(null); return super.getRuleChainVisits(); } catch (JaxenException ex) { throw new RuntimeException(ex); } }
// in src/main/java/net/sourceforge/pmd/lang/rule/xpath/SaxonXPathRuleQuery.java
private void initializeXPathExpression() { if (xpathExpression != null) { return; } try { XPathEvaluator xpathEvaluator = new XPathEvaluator(); XPathStaticContext xpathStaticContext = xpathEvaluator.getStaticContext(); // Enable XPath 1.0 compatibility if (XPATH_1_0_COMPATIBILITY.equals(version)) { ((AbstractStaticContext) xpathStaticContext).setBackwardsCompatibilityMode(true); } // Register PMD functions Initializer.initialize((IndependentContext) xpathStaticContext); // Create XPathVariables for later use. It is a Saxon quirk that // XPathVariables must be defined on the static context, and // reused later to associate an actual value on the dynamic context. xpathVariables = new ArrayList<XPathVariable>(); for (PropertyDescriptor<?> propertyDescriptor : super.properties.keySet()) { String name = propertyDescriptor.name(); if (!"xpath".equals(name)) { XPathVariable xpathVariable = xpathStaticContext.declareVariable(null, name); xpathVariables.add(xpathVariable); } } // TODO Come up with a way to make use of RuleChain. I had hacked up // an approach which used Jaxen's stuff, but that only works for // 1.0 compatibility mode. Rather do it right instead of kludging. xpathExpression = xpathEvaluator.createExpression(super.xpath); } catch (XPathException e) { throw new RuntimeException(e); } }
// in src/main/java/net/sourceforge/pmd/RuleSetWriter.java
public void write(RuleSet ruleSet) { try { DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance(); documentBuilderFactory.setNamespaceAware(true); DocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder(); document = documentBuilder.newDocument(); ruleSetFileNames = new HashSet<String>(); Element ruleSetElement = createRuleSetElement(ruleSet); document.appendChild(ruleSetElement); TransformerFactory transformerFactory = TransformerFactory.newInstance(); try { transformerFactory.setAttribute("indent-number", 3); } catch (IllegalArgumentException iae) { //ignore it, specific to one parser } Transformer transformer = transformerFactory.newTransformer(); transformer.setOutputProperty(OutputKeys.METHOD, "xml"); // This is as close to pretty printing as we'll get using standard Java APIs. transformer.setOutputProperty(OutputKeys.INDENT, "yes"); transformer.setOutputProperty(OutputKeys.ENCODING, "UTF-8"); transformer.transform(new DOMSource(document), new StreamResult(outputStream)); } catch (DOMException e) { throw new RuntimeException(e); } catch (FactoryConfigurationError e) { throw new RuntimeException(e); } catch (ParserConfigurationException e) { throw new RuntimeException(e); } catch (TransformerException e) { throw new RuntimeException(e); } }
// in src/main/java/net/sourceforge/pmd/renderers/IDEAJRenderer.java
public String clipPath(String fullFilename) { for (String path : paths) { if (fullFilename.startsWith(path)) { return fullFilename.substring(path.length() + 1); } } throw new RuntimeException("Couldn't find src path for " + fullFilename); }
// in src/main/java/net/sourceforge/pmd/RuleSet.java
public void addRuleByReference(String ruleSetFileName, Rule rule) { if (StringUtil.isEmpty(ruleSetFileName)) { throw new RuntimeException("Adding a rule by reference is not allowed with an empty rule set file name."); } if (rule == null) { throw new IllegalArgumentException("Cannot add a null rule reference to a RuleSet"); } if (!(rule instanceof RuleReference)) { RuleSetReference ruleSetReference = new RuleSetReference(); ruleSetReference.setRuleSetFileName(ruleSetFileName); RuleReference ruleReference = new RuleReference(); ruleReference.setRule(rule); ruleReference.setRuleSetReference(ruleSetReference); rule = ruleReference; } rules.add(rule); }
// in src/main/java/net/sourceforge/pmd/RuleSet.java
public void addRuleSetByReference(RuleSet ruleSet, boolean allRules) { if (StringUtil.isEmpty(ruleSet.getFileName())) { throw new RuntimeException("Adding a rule by reference is not allowed with an empty rule set file name."); } RuleSetReference ruleSetReference = new RuleSetReference(ruleSet.getFileName()); ruleSetReference.setAllRules(allRules); for (Rule rule : ruleSet.getRules()) { RuleReference ruleReference = new RuleReference(rule, ruleSetReference); rules.add(ruleReference); } }
// in src/main/java/net/sourceforge/pmd/util/CollectionUtil.java
public static <K, V> Map<K, V> mapFrom(K[] keys, V[] values) { if (keys.length != values.length) { throw new RuntimeException("mapFrom keys and values arrays have different sizes"); } Map<K, V> map = new HashMap<K, V>(keys.length); for (int i = 0; i < keys.length; i++) { map.put(keys[i], values[i]); } return map; }
// in src/main/java/net/sourceforge/pmd/util/FileUtil.java
private static List<DataSource> collect(List<DataSource> dataSources, String fileLocation, FilenameFilter filenameFilter) { File file = new File(fileLocation); if (!file.exists()) { throw new RuntimeException("File " + file.getName() + " doesn't exist"); } if (!file.isDirectory()) { if (fileLocation.endsWith(".zip") || fileLocation.endsWith(".jar")) { ZipFile zipFile; try { zipFile = new ZipFile(fileLocation); Enumeration<? extends ZipEntry> e = zipFile.entries(); while (e.hasMoreElements()) { ZipEntry zipEntry = e.nextElement(); if (filenameFilter.accept(null, zipEntry.getName())) { dataSources.add(new ZipDataSource(zipFile, zipEntry)); } } } catch (IOException ze) { throw new RuntimeException("Archive file " + file.getName() + " can't be opened"); } } else { dataSources.add(new FileDataSource(file)); } } else { // Match files, or directories which are not excluded. // FUTURE Make the excluded directories be some configurable option Filter<File> filter = new OrFilter<File>(Filters.toFileFilter(filenameFilter), new AndFilter<File>(Filters .getDirectoryFilter(), Filters.toNormalizedFileFilter(Filters.buildRegexFilterExcludeOverInclude( null, Collections.singletonList("SCCS"))))); FileFinder finder = new FileFinder(); List<File> files = finder.findFilesFrom(file.getAbsolutePath(), Filters.toFilenameFilter(filter), true); for (File f : files) { dataSources.add(new FileDataSource(f)); } } return dataSources; }
// in src/main/java/net/sourceforge/pmd/util/designer/Designer.java
private int selectedLanguageVersionIndex() { for (int i = 0; i < languageVersionMenuItems.length; i++) { if (languageVersionMenuItems[i].isSelected()) { return i; } } throw new RuntimeException("Initial default language version not specified"); }
// in src/main/java/net/sourceforge/pmd/util/designer/CodeEditorTextPane.java
public String getLine(int number) { String[] lines= getLines(); if (number < lines.length) { return lines[number]; } throw new RuntimeException("Line number " + number + " not found"); }
// in src/main/java/net/sourceforge/pmd/util/designer/CodeEditorTextPane.java
private int getPosition(String[] lines, int line, int column) { int pos = 0; for (int count = 0; count < lines.length;) { String tok = lines[count++]; if (count == line) { int linePos = 0; int i; for (i = 0; linePos < column; i++) { linePos++; if (tok.charAt(i) == '\t') { linePos--; linePos += 8 - (linePos & 07); } } return pos + i - 1; } pos += tok.length() + 1; } throw new RuntimeException("Line " + line + " not found"); }
29
              
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
catch (ClassNotFoundException e) { throw new RuntimeException(e); }
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
catch (NoSuchFieldException e) { throw new RuntimeException(e); }
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
catch (NoSuchMethodException e) { throw new RuntimeException(e); }
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
catch (NoSuchMethodException e) { throw new RuntimeException(e); }
// in src/main/java/net/sourceforge/pmd/dcd/graph/UsageGraphBuilder.java
catch (IOException e) { throw new RuntimeException("For " + name + ": " + e.getMessage(), e); }
// in src/main/java/net/sourceforge/pmd/cpd/SourceCode.java
catch (Exception e) { e.printStackTrace(); throw new RuntimeException("Problem while reading " + getFileName() + ":" + e.getMessage()); }
// in src/main/java/net/sourceforge/pmd/RuleSetFactory.java
catch (IOException ioe) { throw new RuntimeException("Couldn't find " + rulesetsProperties + "; please ensure that the rulesets directory is on the classpath. The current classpath is: " + System.getProperty("java.class.path")); }
// in src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/EcmascriptTreeBuilder.java
catch (SecurityException e) { throw new RuntimeException(e); }
// in src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/EcmascriptTreeBuilder.java
catch (NoSuchMethodException e) { throw new RuntimeException(e); }
// in src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/EcmascriptTreeBuilder.java
catch (InstantiationException e) { throw new RuntimeException(e); }
// in src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/EcmascriptTreeBuilder.java
catch (IllegalAccessException e) { throw new RuntimeException(e); }
// in src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/EcmascriptTreeBuilder.java
catch (InvocationTargetException e) { throw new RuntimeException(e.getTargetException()); }
// in src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/DumpFacade.java
catch (IOException e) { throw new RuntimeException("Problem flushing PrintWriter.", e); }
// in src/main/java/net/sourceforge/pmd/lang/dfa/report/ReportHTMLPrintVisitor.java
catch (Exception e) { throw new RuntimeException("Error while writing HTML report: " + e.getMessage()); }
// in src/main/java/net/sourceforge/pmd/lang/dfa/report/ReportHTMLPrintVisitor.java
catch (Exception e) { throw new RuntimeException("Error while writing HTML report: " + e.getMessage()); }
// in src/main/java/net/sourceforge/pmd/lang/xml/ast/DumpFacade.java
catch (IOException e) { throw new RuntimeException("Problem flushing PrintWriter.", e); }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/DumpFacade.java
catch (IOException e) { throw new RuntimeException("Problem flushing PrintWriter.", e); }
// in src/main/java/net/sourceforge/pmd/lang/ast/AbstractNode.java
catch (ParserConfigurationException pce) { throw new RuntimeException(pce); }
// in src/main/java/net/sourceforge/pmd/lang/ast/AbstractNode.java
catch (JaxenException e) { throw new RuntimeException("XPath expression " + xpathString + " failed: " + e.getLocalizedMessage(), e); }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/DumpFacade.java
catch (IOException e) { throw new RuntimeException("Problem flushing PrintWriter.", e); }
// in src/main/java/net/sourceforge/pmd/lang/rule/xpath/JaxenXPathRuleQuery.java
catch (JaxenException ex) { throw new RuntimeException(ex); }
// in src/main/java/net/sourceforge/pmd/lang/rule/xpath/JaxenXPathRuleQuery.java
catch (JaxenException ex) { throw new RuntimeException(ex); }
// in src/main/java/net/sourceforge/pmd/lang/rule/xpath/SaxonXPathRuleQuery.java
catch (XPathException e) { throw new RuntimeException(super.xpath + " had problem: " + e.getMessage(), e); }
// in src/main/java/net/sourceforge/pmd/lang/rule/xpath/SaxonXPathRuleQuery.java
catch (XPathException e) { throw new RuntimeException(e); }
// in src/main/java/net/sourceforge/pmd/RuleSetWriter.java
catch (DOMException e) { throw new RuntimeException(e); }
// in src/main/java/net/sourceforge/pmd/RuleSetWriter.java
catch (FactoryConfigurationError e) { throw new RuntimeException(e); }
// in src/main/java/net/sourceforge/pmd/RuleSetWriter.java
catch (ParserConfigurationException e) { throw new RuntimeException(e); }
// in src/main/java/net/sourceforge/pmd/RuleSetWriter.java
catch (TransformerException e) { throw new RuntimeException(e); }
// in src/main/java/net/sourceforge/pmd/util/FileUtil.java
catch (IOException ze) { throw new RuntimeException("Archive file " + file.getName() + " can't be opened"); }
1
              
// in src/main/java/net/sourceforge/pmd/RuleSetFactory.java
private static RuleSet classNotFoundProblem(Exception ex) throws RuntimeException { ex.printStackTrace(); throw new RuntimeException("Couldn't find the class " + ex.getMessage()); }
(Lib) IllegalArgumentException 78
              
// in src/main/java/net/sourceforge/pmd/dcd/graph/UsageGraph.java
private final void checkClassName(String className) { // Make sure it's not in byte code internal format, or file system path. if (className.indexOf('/') >= 0 || className.indexOf('\\') >= 0) { throw new IllegalArgumentException("Invalid class name: " + className); } }
// in src/main/java/net/sourceforge/pmd/RuleSetFactory.java
private Rule createRule(RuleSetReferenceId ruleSetReferenceId) throws RuleSetNotFoundException { if (ruleSetReferenceId.isAllRules()) { throw new IllegalArgumentException("Cannot parse a single Rule from an all Rule RuleSet reference: <" + ruleSetReferenceId + ">."); } RuleSet ruleSet = createRuleSet(ruleSetReferenceId); return ruleSet.getRuleByName(ruleSetReferenceId.getRuleName()); }
// in src/main/java/net/sourceforge/pmd/RuleSetFactory.java
private RuleSet parseRuleSetNode(RuleSetReferenceId ruleSetReferenceId, InputStream inputStream) { if (!ruleSetReferenceId.isExternal()) { throw new IllegalArgumentException("Cannot parse a RuleSet from a non-external reference: <" + ruleSetReferenceId + ">."); } try { DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder(); Document document = builder.parse(inputStream); Element ruleSetElement = document.getDocumentElement(); RuleSet ruleSet = new RuleSet(); ruleSet.setFileName(ruleSetReferenceId.getRuleSetFileName()); ruleSet.setName(ruleSetElement.getAttribute("name")); NodeList nodeList = ruleSetElement.getChildNodes(); for (int i = 0; i < nodeList.getLength(); i++) { Node node = nodeList.item(i); if (node.getNodeType() == Node.ELEMENT_NODE) { String nodeName = node.getNodeName(); if ("description".equals(nodeName)) { ruleSet.setDescription(parseTextNode(node)); } else if ("include-pattern".equals(nodeName)) { ruleSet.addIncludePattern(parseTextNode(node)); } else if ("exclude-pattern".equals(nodeName)) { ruleSet.addExcludePattern(parseTextNode(node)); } else if ("rule".equals(nodeName)) { parseRuleNode(ruleSetReferenceId, ruleSet, node); } else { throw new IllegalArgumentException("Unexpected element <" + node.getNodeName() + "> encountered as child of <ruleset> element."); } } } return ruleSet; } catch (ClassNotFoundException cnfe) { return classNotFoundProblem(cnfe); } catch (InstantiationException ie) { return classNotFoundProblem(ie); } catch (IllegalAccessException iae) { return classNotFoundProblem(iae); } catch (ParserConfigurationException pce) { return classNotFoundProblem(pce); } catch (RuleSetNotFoundException rsnfe) { return classNotFoundProblem(rsnfe); } catch (IOException ioe) { return classNotFoundProblem(ioe); } catch (SAXException se) { return classNotFoundProblem(se); } }
// in src/main/java/net/sourceforge/pmd/RuleSetFactory.java
private void parseSingleRuleNode(RuleSetReferenceId ruleSetReferenceId, RuleSet ruleSet, Node ruleNode) throws ClassNotFoundException, InstantiationException, IllegalAccessException { Element ruleElement = (Element) ruleNode; // Stop if we're looking for a particular Rule, and this element is not it. if (StringUtil.isNotEmpty(ruleSetReferenceId.getRuleName()) && !isRuleName(ruleElement, ruleSetReferenceId.getRuleName())) { return; } String attribute = ruleElement.getAttribute("class"); Class<?> c = classLoader.loadClass(attribute); Rule rule = (Rule) c.newInstance(); rule.setName(ruleElement.getAttribute("name")); if (ruleElement.hasAttribute("language")) { String languageName = ruleElement.getAttribute("language"); Language language = Language.findByTerseName(languageName); if (language == null) { throw new IllegalArgumentException("Unknown Language '" + languageName + "' for Rule " + rule.getName() + ", supported Languages are " + Language.commaSeparatedTerseNames(Language.findWithRuleSupport())); } rule.setLanguage(language); } Language language = rule.getLanguage(); if (language == null) { throw new IllegalArgumentException("Rule " + rule.getName() + " does not have a Language; missing 'language' attribute?"); } if (ruleElement.hasAttribute("minimumLanguageVersion")) { String minimumLanguageVersionName = ruleElement.getAttribute("minimumLanguageVersion"); LanguageVersion minimumLanguageVersion = language.getVersion(minimumLanguageVersionName); if (minimumLanguageVersion == null) { throw new IllegalArgumentException("Unknown minimum Language Version '" + minimumLanguageVersionName + "' for Language '" + language.getTerseName() + "' for Rule " + rule.getName() + "; supported Language Versions are: " + LanguageVersion.commaSeparatedTerseNames(language.getVersions())); } rule.setMinimumLanguageVersion(minimumLanguageVersion); } if (ruleElement.hasAttribute("maximumLanguageVersion")) { String maximumLanguageVersionName = ruleElement.getAttribute("maximumLanguageVersion"); LanguageVersion maximumLanguageVersion = language.getVersion(maximumLanguageVersionName); if (maximumLanguageVersion == null) { throw new IllegalArgumentException("Unknown maximum Language Version '" + maximumLanguageVersionName + "' for Language '" + language.getTerseName() + "' for Rule " + rule.getName() + "; supported Language Versions are: " + LanguageVersion.commaSeparatedTerseNames(language.getVersions())); } rule.setMaximumLanguageVersion(maximumLanguageVersion); } if (rule.getMinimumLanguageVersion() != null && rule.getMaximumLanguageVersion() != null) { throw new IllegalArgumentException("The minimum Language Version '" + rule.getMinimumLanguageVersion().getTerseName() + "' must be prior to the maximum Language Version '" + rule.getMaximumLanguageVersion().getTerseName() + "' for Rule " + rule.getName() + "; perhaps swap them around?"); } String since = ruleElement.getAttribute("since"); if (StringUtil.isNotEmpty(since)) { rule.setSince(since); } rule.setMessage(ruleElement.getAttribute("message")); rule.setRuleSetName(ruleSet.getName()); rule.setExternalInfoUrl(ruleElement.getAttribute("externalInfoUrl")); if (hasAttributeSetTrue(ruleElement,"dfa")) { rule.setUsesDFA(); } if (hasAttributeSetTrue(ruleElement,"typeResolution")) { rule.setUsesTypeResolution(); } final NodeList nodeList = ruleElement.getChildNodes(); for (int i = 0; i < nodeList.getLength(); i++) { Node node = nodeList.item(i); if (node.getNodeType() != Node.ELEMENT_NODE) { continue; } String nodeName = node.getNodeName(); if (nodeName.equals("description")) { rule.setDescription(parseTextNode(node)); } else if (nodeName.equals("example")) { rule.addExample(parseTextNode(node)); } else if (nodeName.equals("priority")) { rule.setPriority(RulePriority.valueOf(Integer.parseInt(parseTextNode(node).trim()))); } else if (nodeName.equals("properties")) { parsePropertiesNode(rule, node); } else { throw new IllegalArgumentException("Unexpected element <" + nodeName + "> encountered as child of <rule> element for Rule " + rule.getName()); } } if (StringUtil.isNotEmpty(ruleSetReferenceId.getRuleName()) || rule.getPriority().compareTo(minimumPriority) <= 0) { ruleSet.addRule(rule); } }
// in src/main/java/net/sourceforge/pmd/RuleSetFactory.java
private void parseRuleReferenceNode(RuleSetReferenceId ruleSetReferenceId, RuleSet ruleSet, Node ruleNode, String ref) throws RuleSetNotFoundException { Element ruleElement = (Element) ruleNode; // Stop if we're looking for a particular Rule, and this element is not it. if (StringUtil.isNotEmpty(ruleSetReferenceId.getRuleName()) && !isRuleName(ruleElement, ruleSetReferenceId.getRuleName())) { return; } RuleSetFactory ruleSetFactory = new RuleSetFactory(); ruleSetFactory.setClassLoader(classLoader); RuleSetReferenceId otherRuleSetReferenceId = RuleSetReferenceId.parse(ref).get(0); if (!otherRuleSetReferenceId.isExternal()) { otherRuleSetReferenceId = new RuleSetReferenceId(ref, ruleSetReferenceId); } Rule referencedRule = ruleSetFactory.createRule(otherRuleSetReferenceId); if (referencedRule == null) { throw new IllegalArgumentException("Unable to find referenced rule " + otherRuleSetReferenceId.getRuleName() + "; perhaps the rule name is mispelled?"); } if (warnDeprecated && referencedRule.isDeprecated()) { if (referencedRule instanceof RuleReference) { RuleReference ruleReference = (RuleReference) referencedRule; LOG.warning("Use Rule name " + ruleReference.getRuleSetReference().getRuleSetFileName() + "/" + ruleReference.getName() + " instead of the deprecated Rule name " + otherRuleSetReferenceId + ". Future versions of PMD will remove support for this deprecated Rule name usage."); } else if (referencedRule instanceof MockRule) { LOG.warning("Discontinue using Rule name " + otherRuleSetReferenceId + " as it has been removed from PMD and no longer functions." + " Future versions of PMD will remove support for this Rule."); } else { LOG.warning("Discontinue using Rule name " + otherRuleSetReferenceId + " as it is scheduled for removal from PMD." + " Future versions of PMD will remove support for this Rule."); } } RuleSetReference ruleSetReference = new RuleSetReference(); ruleSetReference.setAllRules(false); ruleSetReference.setRuleSetFileName(otherRuleSetReferenceId.getRuleSetFileName()); RuleReference ruleReference = new RuleReference(); ruleReference.setRuleSetReference(ruleSetReference); ruleReference.setRule(referencedRule); if (ruleElement.hasAttribute("deprecated")) { ruleReference.setDeprecated(Boolean.parseBoolean(ruleElement.getAttribute("deprecated"))); } if (ruleElement.hasAttribute("name")) { ruleReference.setName(ruleElement.getAttribute("name")); } if (ruleElement.hasAttribute("message")) { ruleReference.setMessage(ruleElement.getAttribute("message")); } if (ruleElement.hasAttribute("externalInfoUrl")) { ruleReference.setExternalInfoUrl(ruleElement.getAttribute("externalInfoUrl")); } for (int i = 0; i < ruleElement.getChildNodes().getLength(); i++) { Node node = ruleElement.getChildNodes().item(i); if (node.getNodeType() == Node.ELEMENT_NODE) { if (node.getNodeName().equals("description")) { ruleReference.setDescription(parseTextNode(node)); } else if (node.getNodeName().equals("example")) { ruleReference.addExample(parseTextNode(node)); } else if (node.getNodeName().equals("priority")) { ruleReference.setPriority(RulePriority.valueOf(Integer.parseInt(parseTextNode(node)))); } else if (node.getNodeName().equals("properties")) { parsePropertiesNode(ruleReference, node); } else { throw new IllegalArgumentException("Unexpected element <" + node.getNodeName() + "> encountered as child of <rule> element for Rule " + ruleReference.getName()); } } } if (StringUtil.isNotEmpty(ruleSetReferenceId.getRuleName()) || referencedRule.getPriority().compareTo(minimumPriority) <= 0) { ruleSet.addRule(ruleReference); } }
// in src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/EcmascriptTreeBuilder.java
protected EcmascriptNode createNodeAdapter(AstNode node) { try { Constructor<? extends EcmascriptNode> constructor = NODE_TYPE_TO_NODE_ADAPTER_TYPE.get(node.getClass()); if (constructor == null) { throw new IllegalArgumentException("There is no Node adapter class registered for the Node class: " + node.getClass()); } return constructor.newInstance(node); } catch (InstantiationException e) { throw new RuntimeException(e); } catch (IllegalAccessException e) { throw new RuntimeException(e); } catch (InvocationTargetException e) { throw new RuntimeException(e.getTargetException()); } }
// in src/main/java/net/sourceforge/pmd/lang/ast/AbstractNode.java
public Node getNthParent(int n) { if (n <= 0) { throw new IllegalArgumentException(); } Node result = this.jjtGetParent(); for (int i = 1; i < n; i++) { if (result == null) { return null; } result = result.jjtGetParent(); } return result; }
// in src/main/java/net/sourceforge/pmd/lang/java/xpath/TypeOfFunction.java
public Object call(Context context, List args) throws FunctionCallException { String nodeTypeName = null; String fullTypeName = null; String shortTypeName = null; Attribute attr = null; for (int i = 0; i < args.size(); i++) { if (args.get(i) instanceof List) { if (attr == null) { attr = (Attribute) ((List) args.get(i)).get(0); nodeTypeName = attr.getStringValue(); } else { throw new IllegalArgumentException( "typeof function can take only a single argument which is an Attribute."); } } else { if (fullTypeName == null) { fullTypeName = (String) args.get(i); } else if (shortTypeName == null) { shortTypeName = (String) args.get(i); } else { break; } } } if (fullTypeName == null) { throw new IllegalArgumentException( "typeof function must be given at least one String argument for the fully qualified type name."); } Node n = (Node) context.getNodeSet().get(0); return typeof(n, nodeTypeName, fullTypeName, shortTypeName); }
// in src/main/java/net/sourceforge/pmd/lang/java/xpath/TypeOfFunction.java
public static boolean typeof(Node n, String nodeTypeName, String fullTypeName, String shortTypeName) { if (n instanceof TypeNode) { Class type = ((TypeNode) n).getType(); if (type == null) { return nodeTypeName != null && (nodeTypeName.equals(fullTypeName) || nodeTypeName.equals(shortTypeName)); } if (type.getName().equals(fullTypeName)) { return true; } List<Class> implementors = Arrays.asList(type.getInterfaces()); if (implementors.contains(type)) { return true; } Class<?> superC = type.getSuperclass(); while (superC != null && !superC.equals(Object.class)) { if (superC.getName().equals(fullTypeName)) { return true; } superC = superC.getSuperclass(); } } else { throw new IllegalArgumentException("typeof function may only be called on a TypeNode."); } return false; }
// in src/main/java/net/sourceforge/pmd/lang/java/rule/GenericLiteralCheckerRule.java
private void init() { if (pattern == null) { // Retrieve the regex pattern set by user String stringPattern = super.getProperty(REGEX_PROPERTY); // Compile the pattern only once if ( stringPattern != null && stringPattern.length() > 0 ) { pattern = Pattern.compile(stringPattern); } else { throw new IllegalArgumentException("Must provide a value for the '" + PROPERTY_NAME + "' property."); } } }
// in src/main/java/net/sourceforge/pmd/lang/java/rule/design/PositionalIteratorRule.java
private String getName(Node node) { if (node.jjtGetNumChildren() > 0) { if (node.jjtGetChild(0) instanceof ASTName) { return ((ASTName) node.jjtGetChild(0)).getImage(); } else { return getName(node.jjtGetChild(0)); } } throw new IllegalArgumentException("Check with hasNameAsChild() first!"); }
// in src/main/java/net/sourceforge/pmd/lang/rule/properties/AbstractPackagedProperty.java
private void checkValidPackages(Object item, String[] legalNamePrefixes) { Object[] items; if (item.getClass().isArray()) { items = (Object[])item; } else{ items = new Object[]{item}; } String[] names = new String[items.length]; Set<String> nameSet = new HashSet<String>(items.length); String name = null; for (int i=0; i<items.length; i++) { name = packageNameOf(items[i]); names[i] = name; nameSet.add(name); } for (int i=0; i<names.length; i++) { for (int l=0; l<legalNamePrefixes.length; l++) { if (names[i].startsWith(legalNamePrefixes[l])) { nameSet.remove(names[i]); break; } } } if (nameSet.isEmpty()) { return; } throw new IllegalArgumentException("Invalid items: " + nameSet); }
// in src/main/java/net/sourceforge/pmd/lang/rule/properties/TypeProperty.java
static Class<?> classFrom(String className) { Class<?> cls = ClassUtil.getTypeFor(className); if (cls != null) { return cls; } try { return Class.forName(className); } catch (Exception ex) { throw new IllegalArgumentException(className); } }
// in src/main/java/net/sourceforge/pmd/lang/rule/properties/PropertyDescriptorFactory.java
public static String getPropertyDescriptorType(PropertyDescriptor<?> propertyDescriptor) { Class<?> type = propertyDescriptor.type(); String typeName = null; if (propertyDescriptor instanceof EnumeratedProperty || propertyDescriptor instanceof MethodProperty // TODO - yes we // can, // investigate || propertyDescriptor instanceof TypeProperty) { // Cannot serialize these kinds of PropertyDescriptors } else if ("java.lang".equals(type.getPackage().getName())) { typeName = type.getSimpleName(); } if (typeName == null) { throw new IllegalArgumentException("Cannot encode type for PropertyDescriptor class: " + type.getName()); } return typeName; }
// in src/main/java/net/sourceforge/pmd/lang/rule/properties/PropertyDescriptorFactory.java
private static PropertyDescriptor<?> createRawPropertyDescriptor(String name, String description, String type, String delimiter, String min, String max, String value) { if ("Boolean".equals(type)) { return new BooleanProperty(name, description, value, 0.0f); } else if ("Boolean[]".equals(type)) { BooleanMultiProperty property = new BooleanMultiProperty(name, description, null, 0.0f); return new BooleanMultiProperty(name, description, property.valueFrom(value), 0.0f); } else if ("Character".equals(type)) { return new CharacterProperty(name, description, CharacterProperty.charFrom(value), 0.0f); } else if ("Character[]".equals(type)) { checkDelimiter(name, type, delimiter); char delim = delimiter.charAt(0); CharacterMultiProperty property = new CharacterMultiProperty(name, description, null, 0.0f, delim); return new CharacterMultiProperty(name, description, property.valueFrom(value), 0.0f, delim); } else if ("Double".equals(type)) { checkMinMax(name, type, min, max); return new DoubleProperty(name, description, min, max, value, 0.0f); } else if ("Double[]".equals(type)) { checkMinMax(name, type, min, max); DoubleMultiProperty property = new DoubleMultiProperty(name, description, 0d, 0d, null, 0.0f); return new DoubleMultiProperty(name, description, DoubleProperty.doubleFrom(min), DoubleProperty.doubleFrom(max), property.valueFrom(value), 0.0f); } else if ("Float".equals(type)) { checkMinMax(name, type, min, max); return new FloatProperty(name, description, min, max, value, 0.0f); } else if ("Float[]".equals(type)) { checkMinMax(name, type, min, max); FloatMultiProperty property = new FloatMultiProperty(name, description, 0f, 0f, null, 0.0f); return new FloatMultiProperty(name, description, FloatProperty.floatFrom(min), FloatProperty.floatFrom(max), property.valueFrom(value), 0.0f); } else if ("Integer".equals(type)) { checkMinMax(name, type, min, max); return new IntegerProperty(name, description, min, max, value, 0.0f); } else if ("Integer[]".equals(type)) { checkMinMax(name, type, min, max); IntegerMultiProperty property = new IntegerMultiProperty(name, description, 0, 0, null, 0.0f); return new IntegerMultiProperty(name, description, IntegerProperty.intFrom(min), IntegerProperty.intFrom(max), property.valueFrom(value), 0.0f); } else if ("Long".equals(type)) { checkMinMax(name, type, min, max); return new LongProperty(name, description, min, max, value, 0.0f); } else if ("Long[]".equals(type)) { checkMinMax(name, type, min, max); LongMultiProperty property = new LongMultiProperty(name, description, 0L, 0L, null, 0.0f); return new LongMultiProperty(name, description, LongProperty.longFrom(min), LongProperty.longFrom(max), property.valueFrom(value), 0.0f); // TODO - include legal package names for next four types } else if ("Type".equals(type)) { return new TypeProperty(name, description, value, (String[]) null, 0.0f); } else if ("Type[]".equals(type)) { return new TypeMultiProperty(name, description, value, (String[]) null, 0.0f); } else if ("Method".equals(type)) { return new MethodProperty(name, description, value, (String[]) null, 0.0f); } else if ("Method[]".equals(type)) { return new MethodMultiProperty(name, description, value, (String[]) null, 0.0f); } else if ("String".equals(type)) { return new StringProperty(name, description, value, 0.0f); } else if ("String[]".equals(type)) { checkDelimiter(name, type, delimiter); char delim = delimiter.charAt(0); StringMultiProperty property = new StringMultiProperty(name, description, null, 0.0f, delim); return new StringMultiProperty(name, description, property.valueFrom(value), 0.0f, delim); } else { throw new IllegalArgumentException("Cannot define property type '" + type + "'."); } }
// in src/main/java/net/sourceforge/pmd/lang/rule/properties/PropertyDescriptorFactory.java
private static void checkDelimiter(String name, String type, String delimiter) { if (delimiter == null || delimiter.length() == 0) { throw new IllegalArgumentException("Delimiter must be provided to create PropertyDescriptor for " + name + " of type " + type + "."); } }
// in src/main/java/net/sourceforge/pmd/lang/rule/properties/PropertyDescriptorFactory.java
private static void checkMinMax(String name, String type, String min, String max) { if (StringUtil.isEmpty(min)) { throw new IllegalArgumentException("Min must be provided to create PropertyDescriptor for " + name + " of type " + type + "."); } if (StringUtil.isEmpty(max)) { throw new IllegalArgumentException("Max must be provided to create PropertyDescriptor for " + name + " of type " + type + "."); } }
// in src/main/java/net/sourceforge/pmd/lang/rule/properties/CharacterMultiProperty.java
private static Character[] charsIn(String charString, char delimiter) { String[] values = StringUtil.substringsOf(charString, delimiter); Character[] chars = new Character[values.length]; for (int i=0; i<values.length;i++) { if (values.length != 1) { throw new IllegalArgumentException("missing/ambiguous character value"); } chars[i] = values[i].charAt(0); } return chars; }
// in src/main/java/net/sourceforge/pmd/lang/rule/properties/AbstractProperty.java
private static String checkNotEmpty(String arg, String argId) { if (StringUtil.isEmpty(arg)) { throw new IllegalArgumentException("Property attribute '" + argId + "' cannot be null or blank"); } return arg; }
// in src/main/java/net/sourceforge/pmd/lang/rule/properties/AbstractProperty.java
private static float checkPositive(float arg, String argId) { if (arg < 0) { throw new IllegalArgumentException("Property attribute " + argId + "' must be zero or positive"); } return arg; }
// in src/main/java/net/sourceforge/pmd/lang/rule/properties/CharacterProperty.java
public static Character charFrom(String charStr) { if (charStr == null || charStr.length() != 1) { throw new IllegalArgumentException("missing/invalid character value"); } return charStr.charAt(0); }
// in src/main/java/net/sourceforge/pmd/lang/rule/properties/AbstractDelimitedProperty.java
protected static char delimiterIn(Map<String, String> parameters) { if (!parameters.containsKey(DELIM_ID)) { throw new IllegalArgumentException("missing delimiter value"); } return parameters.get(DELIM_ID).charAt(0); }
// in src/main/java/net/sourceforge/pmd/lang/rule/properties/AbstractEnumeratedProperty.java
protected E choiceFrom(String label) { E result = choicesByLabel.get(label); if (result != null) { return result; } throw new IllegalArgumentException(label); }
// in src/main/java/net/sourceforge/pmd/lang/rule/properties/StringMultiProperty.java
private static void checkDefaults(String[] defaultValue, char delim) { if (defaultValue == null) { return; } for (int i=0; i<defaultValue.length; i++) { if (defaultValue[i].indexOf(delim) >= 0) { throw new IllegalArgumentException("Cannot include the delimiter in the set of defaults"); } } }
// in src/main/java/net/sourceforge/pmd/lang/rule/AbstractRule.java
public void addRuleChainVisit(Class<? extends Node> nodeClass) { if (!nodeClass.getSimpleName().startsWith("AST")) { throw new IllegalArgumentException("Node class does not start with 'AST' prefix: " + nodeClass); } addRuleChainVisit(nodeClass.getSimpleName().substring("AST".length())); }
// in src/main/java/net/sourceforge/pmd/RulesetsFactoryUtils.java
public static RuleSets getRuleSets(String rulesets, RuleSetFactory factory, long loadRuleStart) { RuleSets ruleSets = null; try { ruleSets = factory.createRuleSets(rulesets); factory.setWarnDeprecated(false); printRuleNamesInDebug(ruleSets); long endLoadRules = System.nanoTime(); Benchmarker.mark(Benchmark.LoadRules, endLoadRules - loadRuleStart, 0); } catch (RuleSetNotFoundException rsnfe) { LOG.log(Level.SEVERE, "Ruleset not found", rsnfe); throw new IllegalArgumentException(rsnfe); } return ruleSets; }
// in src/main/java/net/sourceforge/pmd/benchmark/Benchmarker.java
public synchronized static void mark(Benchmark type, String name, long time, long count) { String typeName = type.name; if (typeName != null && name != null) { throw new IllegalArgumentException("Name cannot be given for type: " + type); } else if (typeName == null && name == null) { throw new IllegalArgumentException("Name is required for type: " + type); } else if (typeName == null) { typeName = name; } BenchmarkResult benchmarkResult = BenchmarksByName.get(typeName); if (benchmarkResult == null) { benchmarkResult = new BenchmarkResult(type, typeName); BenchmarksByName.put(typeName, benchmarkResult); } benchmarkResult.update(time, count); }
// in src/main/java/net/sourceforge/pmd/RuleChain.java
private RuleChainVisitor getRuleChainVisitor(Language language) { RuleChainVisitor visitor = languageToRuleChainVisitor.get(language); if (visitor == null) { if (language.getRuleChainVisitorClass() != null) { try { visitor = (RuleChainVisitor) language.getRuleChainVisitorClass().newInstance(); } catch (InstantiationException e) { throw new IllegalStateException("Failure to created RuleChainVisitor: " + language.getRuleChainVisitorClass(), e); } catch (IllegalAccessException e) { throw new IllegalStateException("Failure to created RuleChainVisitor: " + language.getRuleChainVisitorClass(), e); } languageToRuleChainVisitor.put(language, visitor); } else { throw new IllegalArgumentException("Language does not have a RuleChainVisitor: " + language); } } return visitor; }
// in src/main/java/net/sourceforge/pmd/renderers/RendererFactory.java
public static Renderer createRenderer(String reportFormat, Properties properties) { Class<? extends Renderer> rendererClass = getRendererClass(reportFormat); Constructor<? extends Renderer> constructor = getRendererConstructor(rendererClass); Renderer renderer; try { if (constructor.getParameterTypes().length > 0) { renderer = constructor.newInstance(properties); } else { renderer = constructor.newInstance(); } } catch (InstantiationException e) { throw new IllegalArgumentException("Unable to construct report renderer class: " + e.getLocalizedMessage()); } catch (IllegalAccessException e) { throw new IllegalArgumentException("Unable to construct report renderer class: " + e.getLocalizedMessage()); } catch (InvocationTargetException e) { throw new IllegalArgumentException("Unable to construct report renderer class: " + e.getTargetException().getLocalizedMessage()); } // Warn about legacy report format usages if (REPORT_FORMAT_TO_RENDERER.containsKey(reportFormat) && !reportFormat.equals(renderer.getName())) { LOG.warning("Report format '" + reportFormat + "' is deprecated, and has been replaced with '" + renderer.getName() + "'. Future versions of PMD will remove support for this deprecated Report format usage."); } return renderer; }
// in src/main/java/net/sourceforge/pmd/renderers/RendererFactory.java
private static Constructor<? extends Renderer> getRendererConstructor(Class<? extends Renderer> rendererClass) { Constructor<? extends Renderer> constructor = null; // 1) Properties constructor? try { constructor = rendererClass.getConstructor(Properties.class); if (!Modifier.isPublic(constructor.getModifiers())) { constructor = null; } } catch (NoSuchMethodException e) { // Ok } // 2) No-arg constructor? try { constructor = rendererClass.getConstructor(); if (!Modifier.isPublic(constructor.getModifiers())) { constructor = null; } } catch (NoSuchMethodException e2) { // Ok } if (constructor == null) { throw new IllegalArgumentException( "Unable to find either a public java.util.Properties or no-arg constructors for Renderer class: " + rendererClass.getName()); } return constructor; }
// in src/main/java/net/sourceforge/pmd/RuleContext.java
public boolean setAttribute(String name, Object value) { if (name == null) { throw new IllegalArgumentException("Parameter 'name' cannot be null."); } if (value == null) { throw new IllegalArgumentException("Parameter 'value' cannot be null."); } synchronized (this.attributes) { if (!this.attributes.containsKey(name)) { this.attributes.put(name, value); return true; } else { return false; } } }
// in src/main/java/net/sourceforge/pmd/RuleSet.java
public void addRule(Rule rule) { if (rule == null) { throw new IllegalArgumentException("Missing rule"); } rules.add(rule); }
// in src/main/java/net/sourceforge/pmd/RuleSet.java
public void addRuleByReference(String ruleSetFileName, Rule rule) { if (StringUtil.isEmpty(ruleSetFileName)) { throw new RuntimeException("Adding a rule by reference is not allowed with an empty rule set file name."); } if (rule == null) { throw new IllegalArgumentException("Cannot add a null rule reference to a RuleSet"); } if (!(rule instanceof RuleReference)) { RuleSetReference ruleSetReference = new RuleSetReference(); ruleSetReference.setRuleSetFileName(ruleSetFileName); RuleReference ruleReference = new RuleReference(); ruleReference.setRule(rule); ruleReference.setRuleSetReference(ruleSetReference); rule = ruleReference; } rules.add(rule); }
// in src/main/java/net/sourceforge/pmd/AbstractPropertySource.java
public void definePropertyDescriptor(PropertyDescriptor<?> propertyDescriptor) { // Check to ensure the property does not already exist. for (PropertyDescriptor<?> descriptor : propertyDescriptors) { if (descriptor.name().equals(propertyDescriptor.name())) { throw new IllegalArgumentException("There is already a PropertyDescriptor with name '" + propertyDescriptor.name() + "' defined on Rule " + getName() + "."); } } propertyDescriptors.add(propertyDescriptor); // Sort in UI order Collections.sort(propertyDescriptors); }
// in src/main/java/net/sourceforge/pmd/AbstractPropertySource.java
private void checkValidPropertyDescriptor(PropertyDescriptor<?> propertyDescriptor) { if (!propertyDescriptors.contains(propertyDescriptor)) { throw new IllegalArgumentException("Property descriptor not defined for Rule " + getName() + ": " + propertyDescriptor); } }
// in src/main/java/net/sourceforge/pmd/PMDParameters.java
private static LanguageVersion parseLanguageVersion(String[] args, int optionsIndex) { String languageName = args[optionsIndex + LANGUAGE_NAME_INDEX]; Language language = Language.findByTerseName(languageName); if (language == null) { throw new IllegalArgumentException("Unknown language '" + languageName + "'. Available Languages are : " + Language.commaSeparatedTerseNames(Language.findWithRuleSupport())); } else { if (args.length > (optionsIndex + LANGUAGE_VERSION_INDEX)) { String version = args[optionsIndex + LANGUAGE_VERSION_INDEX]; List<LanguageVersion> languageVersions = LanguageVersion.findVersionsForLanguageTerseName(language.getTerseName()); // If there is versions for this language, it should be a valid // one... if (!languageVersions.isEmpty()) { for (LanguageVersion languageVersion : languageVersions) { if (version.equals(languageVersion.getVersion())) { return languageVersion; } } throw new IllegalArgumentException("Language version '" + version + "' is not available for language '" + language.getName() + "'.\nAvailable versions are :" + LanguageVersion.commaSeparatedTerseNames(languageVersions)); } } return language.getDefaultVersion(); } }
// in src/main/java/net/sourceforge/pmd/PMDParameters.java
private static RulePriority parseMinimumPriority(String priority) { try { return RulePriority.valueOf(Integer.parseInt(priority)); } catch (NumberFormatException e) { throw new IllegalArgumentException( "Minimum priority must be a whole number between " + RulePriority.HIGH + " and " + RulePriority.LOW + ", " + priority + " received", e); } }
// in src/main/java/net/sourceforge/pmd/PMDParameters.java
private static void setClassPath(PMDConfiguration cfg, String classPath) { try { cfg.prependClasspath(classPath); } catch (IOException e) { throw new IllegalArgumentException("Invalid auxiliary classpath: " + e.getMessage(), e); } }
// in src/main/java/net/sourceforge/pmd/PMDParameters.java
private static int parseInt(String opt, String s) { try { return Integer.parseInt(s); } catch (NumberFormatException e) { throw new IllegalArgumentException(opt + " parameter must be a whole number, " + s + " received"); } }
// in src/main/java/net/sourceforge/pmd/CommandLineParser.java
private void setMandatoryArgs(String[] args, int mandatoryIndex) { configuration.setInputPaths(args[mandatoryIndex]); configuration.setReportFormat(args[mandatoryIndex + 1]); if (StringUtil.isEmpty(configuration.getReportFormat())) { throw new IllegalArgumentException("Report renderer is required."); } configuration.setRuleSets( StringUtil.asString( RuleSetReferenceId.parse(args[mandatoryIndex + 2]).toArray(), ",") ); }
// in src/main/java/net/sourceforge/pmd/CommandLineParser.java
private static void checkOption(String[] args, String opt, int index, int optionEndIndex, int count) { boolean valid = true; if (index + count >= optionEndIndex) { valid = false; } else { for (int i = 1; i <= count; i++) { if (args[index + i].charAt(0) == '-') { valid = false; break; } } } if (!valid) { throw new IllegalArgumentException(opt + " requires " + count + " parameters.\n\n" + usage()); } }
// in src/main/java/net/sourceforge/pmd/util/IOUtil.java
public static Writer createWriter(String reportFile) { try { return StringUtil.isEmpty(reportFile) ? createWriter() : new BufferedWriter(new FileWriter(reportFile)); } catch (IOException e) { throw new IllegalArgumentException(e); } }
// in src/main/java/net/sourceforge/pmd/util/ClasspathClassLoader.java
private static URL[] initURLs(String classpath) throws IOException { if (classpath == null) { throw new IllegalArgumentException("classpath argument cannot be null"); } final List<URL> urls = new ArrayList<URL>(); if (classpath.startsWith("file://")) { // Treat as file URL addFileURLs(urls, new URL(classpath)); } else { // Treat as classpath addClasspathURLs(urls, classpath); } return urls.toArray(new URL[urls.size()]); }
// in src/main/java/net/sourceforge/pmd/util/DateTimeUtil.java
public static String asHoursMinutesSeconds(long milliseconds) { if (milliseconds < 0) throw new IllegalArgumentException(); long seconds = 0; long minutes = 0; long hours = 0; if (milliseconds > 1000) { seconds = milliseconds / 1000; } if (seconds > 60) { minutes = seconds / 60; seconds = seconds % 60; } if (minutes > 60) { hours = minutes / 60; minutes = minutes % 60; } StringBuilder res = new StringBuilder(); if (hours > 0) { res.append(hours).append("h "); } if (hours > 0 || minutes > 0) { res.append(minutes).append("m "); } res.append(seconds).append('s'); return res.toString(); }
10
              
// in src/main/java/net/sourceforge/pmd/lang/rule/properties/TypeProperty.java
catch (Exception ex) { throw new IllegalArgumentException(className); }
// in src/main/java/net/sourceforge/pmd/RulesetsFactoryUtils.java
catch (RuleSetNotFoundException rsnfe) { LOG.log(Level.SEVERE, "Ruleset not found", rsnfe); throw new IllegalArgumentException(rsnfe); }
// in src/main/java/net/sourceforge/pmd/renderers/RendererFactory.java
catch (InstantiationException e) { throw new IllegalArgumentException("Unable to construct report renderer class: " + e.getLocalizedMessage()); }
// in src/main/java/net/sourceforge/pmd/renderers/RendererFactory.java
catch (IllegalAccessException e) { throw new IllegalArgumentException("Unable to construct report renderer class: " + e.getLocalizedMessage()); }
// in src/main/java/net/sourceforge/pmd/renderers/RendererFactory.java
catch (InvocationTargetException e) { throw new IllegalArgumentException("Unable to construct report renderer class: " + e.getTargetException().getLocalizedMessage()); }
// in src/main/java/net/sourceforge/pmd/renderers/RendererFactory.java
catch (ClassNotFoundException e) { throw new IllegalArgumentException("Can't find the custom format " + reportFormat + ": " + e.getClass().getName()); }
// in src/main/java/net/sourceforge/pmd/PMDParameters.java
catch (NumberFormatException e) { throw new IllegalArgumentException( "Minimum priority must be a whole number between " + RulePriority.HIGH + " and " + RulePriority.LOW + ", " + priority + " received", e); }
// in src/main/java/net/sourceforge/pmd/PMDParameters.java
catch (IOException e) { throw new IllegalArgumentException("Invalid auxiliary classpath: " + e.getMessage(), e); }
// in src/main/java/net/sourceforge/pmd/PMDParameters.java
catch (NumberFormatException e) { throw new IllegalArgumentException(opt + " parameter must be a whole number, " + s + " received"); }
// in src/main/java/net/sourceforge/pmd/util/IOUtil.java
catch (IOException e) { throw new IllegalArgumentException(e); }
10
              
// in src/main/java/net/sourceforge/pmd/lang/rule/AbstractDelegateRule.java
public void definePropertyDescriptor(PropertyDescriptor<?> propertyDescriptor) throws IllegalArgumentException { rule.definePropertyDescriptor(propertyDescriptor); }
// in src/main/java/net/sourceforge/pmd/lang/rule/properties/FileProperty.java
public File valueFrom(String propertyString) throws IllegalArgumentException { return StringUtil.isEmpty(propertyString) ? null : new File(propertyString); }
// in src/main/java/net/sourceforge/pmd/lang/rule/properties/CharacterMultiProperty.java
public Character[] valueFrom(String valueString) throws IllegalArgumentException { String[] values = StringUtil.substringsOf(valueString, multiValueDelimiter()); Character[] chars = new Character[values.length]; for (int i=0; i<values.length; i++) { chars[i] = Character.valueOf(values[i].charAt(0)); } return chars; }
// in src/main/java/net/sourceforge/pmd/lang/rule/properties/MethodMultiProperty.java
public Method[] valueFrom(String valueString) throws IllegalArgumentException { return methodsFrom(valueString); }
// in src/main/java/net/sourceforge/pmd/lang/rule/properties/EnumeratedMultiProperty.java
public Object[] valueFrom(String value) throws IllegalArgumentException { String[] strValues = StringUtil.substringsOf(value, multiValueDelimiter()); Object[] values = new Object[strValues.length]; for (int i=0;i<values.length; i++) { values[i] = choiceFrom(strValues[i]); } return values; }
// in src/main/java/net/sourceforge/pmd/lang/rule/properties/MethodProperty.java
public Method valueFrom(String valueString) throws IllegalArgumentException { return methodFrom(valueString); }
// in src/main/java/net/sourceforge/pmd/lang/rule/properties/EnumeratedProperty.java
public Object valueFrom(String value) throws IllegalArgumentException { return choiceFrom(value); }
// in src/main/java/net/sourceforge/pmd/lang/rule/properties/CharacterProperty.java
public Character valueFrom(String valueString) throws IllegalArgumentException { return charFrom(valueString); }
// in src/main/java/net/sourceforge/pmd/lang/rule/properties/PropertyDescriptorWrapper.java
public T valueFrom(String propertyString) throws IllegalArgumentException { return propertyDescriptor.valueFrom(propertyString); }
// in src/main/java/net/sourceforge/pmd/lang/rule/RuleReference.java
Override public void definePropertyDescriptor(PropertyDescriptor<?> propertyDescriptor) throws IllegalArgumentException { // Define on the underlying Rule, where it is impossible to have two // property descriptors with the same name. Therefore, there is no need // to check if the property is already overridden at this level. super.definePropertyDescriptor(propertyDescriptor); if (propertyDescriptors == null) { propertyDescriptors = new ArrayList<PropertyDescriptor<?>>(); } propertyDescriptors.add(propertyDescriptor); }
(Lib) IllegalStateException 19
              
// in src/main/java/net/sourceforge/pmd/cpd/XMLRenderer.java
private Document createDocument() { try { DocumentBuilderFactory factory = DocumentBuilderFactory .newInstance(); DocumentBuilder parser = factory.newDocumentBuilder(); return parser.newDocument(); } catch (ParserConfigurationException e) { throw new IllegalStateException(e); } }
// in src/main/java/net/sourceforge/pmd/cpd/XMLRenderer.java
private String xmlDocToString(Document doc) { try { TransformerFactory tf = TransformerFactory.newInstance(); Transformer transformer = tf.newTransformer(); transformer.setOutputProperty(OutputKeys.ENCODING, System.getProperty("file.encoding")); StringWriter writer = new StringWriter(); transformer.transform(new DOMSource(doc), new StreamResult(writer)); return writer.getBuffer().toString().replaceAll("\n|\r", ""); } catch (TransformerException e) { throw new IllegalStateException(e); } }
// in src/main/java/net/sourceforge/pmd/lang/Language.java
public LanguageVersion getDefaultVersion() { init(); for (LanguageVersion version : getVersions()) { if (version.isDefaultVersion()) { return version; } } throw new IllegalStateException("No default LanguageVersion configured for " + this); }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/ASTFormalParameter.java
public ASTType getTypeNode() { for (int i = 0; i < jjtGetNumChildren(); i++) { if (jjtGetChild(i) instanceof ASTType) { return (ASTType) jjtGetChild(i); } } throw new IllegalStateException("ASTType not found"); }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/ASTLocalVariableDeclaration.java
public ASTType getTypeNode() { for (int i = 0; i < jjtGetNumChildren(); i++) { if (jjtGetChild(i) instanceof ASTType) { return (ASTType) jjtGetChild(i); } } throw new IllegalStateException("ASTType not found"); }
// in src/main/java/net/sourceforge/pmd/lang/java/typeresolution/ClassTypeResolver.java
Override public Object visit(ASTLiteral node, Object data) { super.visit(node, data); if (node.jjtGetNumChildren() != 0) { rollupTypeUnary(node); } else { if (node.isIntLiteral()) { String image = node.getImage(); if (image.endsWith("l") || image.endsWith("L")) { populateType(node, "long"); } else { try { Integer.decode(image); populateType(node, "int"); } catch (NumberFormatException e) { // Bad literal, 'long' requires use of 'l' or 'L' suffix. } } } else if (node.isFloatLiteral()) { String image = node.getImage(); if (image.endsWith("f") || image.endsWith("F")) { populateType(node, "float"); } else if (image.endsWith("d") || image.endsWith("D")) { populateType(node, "double"); } else { try { Double.parseDouble(image); populateType(node, "double"); } catch (NumberFormatException e) { // Bad literal, 'float' requires use of 'f' or 'F' suffix. } } } else if (node.isCharLiteral()) { populateType(node, "char"); } else if (node.isStringLiteral()) { populateType(node, "java.lang.String"); } else { throw new IllegalStateException("PMD error, unknown literal type!"); } } return data; }
// in src/main/java/net/sourceforge/pmd/lang/java/rule/codesize/NPathComplexityRule.java
Override public Object visit(ASTIfStatement node, Object data) { // (npath of if + npath of else (or 1) + bool_comp of if) * npath of next int boolCompIf = sumExpressionComplexity(node.getFirstChildOfType(ASTExpression.class)); int complexity = 0; List<JavaNode> statementChildren = new ArrayList<JavaNode>(); for (int i = 0; i < node.jjtGetNumChildren(); i++) { if (node.jjtGetChild(i).getClass() == ASTStatement.class) { statementChildren.add((JavaNode) node.jjtGetChild(i)); } } if (statementChildren.isEmpty() || statementChildren.size() == 1 && node.hasElse() || statementChildren.size() != 1 && !node.hasElse()) { throw new IllegalStateException("If node has wrong number of children"); } // add path for not taking if if (!node.hasElse()) { complexity++; } for (JavaNode element : statementChildren) { complexity += (Integer) element.jjtAccept(this, data); } return Integer.valueOf(boolCompIf + complexity); }
// in src/main/java/net/sourceforge/pmd/lang/java/rule/design/PreserveStackTraceRule.java
Override public Object visit(ASTVariableDeclarator node, Object data) { // Search Catch stmt nodes for variable used to store improperly created throwable or exception try { if (node.hasDescendantMatchingXPath(FIND_THROWABLE_INSTANCE)) { String variableName = node.jjtGetChild(0).getImage(); // VariableDeclatorId ASTCatchStatement catchStmt = node.getFirstParentOfType(ASTCatchStatement.class); while (catchStmt != null) { List<Node> violations = catchStmt.findChildNodesWithXPath("//Expression/PrimaryExpression/PrimaryPrefix/Name[@Image = '" + variableName + "']"); if (!violations.isEmpty()) { // If, after this allocation, the 'initCause' method is called, and the ex passed // this is not a violation if (!useInitCause(violations.get(0), catchStmt)) { addViolation(data, node); } } // check ASTCatchStatement higher up catchStmt = catchStmt.getFirstParentOfType(ASTCatchStatement.class); } } return super.visit(node, data); } catch (JaxenException e) { // XPath is valid, this should never happens... throw new IllegalStateException(e); } }
// in src/main/java/net/sourceforge/pmd/lang/rule/properties/AbstractScalarProperty.java
protected Object[] arrayFor(int size) { if (isMultiValue()) { throw new IllegalStateException("Subclass '" + this.getClass().getSimpleName() + "' must implement the arrayFor(int) method."); } throw new UnsupportedOperationException("Arrays not supported on single valued property descriptors."); }
// in src/main/java/net/sourceforge/pmd/processor/MultiThreadProcessor.java
private void processReports(final List<Renderer> renderers, List<Future<Report>> tasks) throws Error { while (!tasks.isEmpty()) { Future<Report> future = tasks.remove(0); Report report = null; try { report = future.get(); } catch (InterruptedException ie) { Thread.currentThread().interrupt(); future.cancel(true); } catch (ExecutionException ee) { Throwable t = ee.getCause(); if (t instanceof RuntimeException) { throw (RuntimeException) t; } else if (t instanceof Error) { throw (Error) t; } else { throw new IllegalStateException( "PmdRunnable exception", t); } } super.renderReports(renderers, report); } }
// in src/main/java/net/sourceforge/pmd/RuleChain.java
private RuleChainVisitor getRuleChainVisitor(Language language) { RuleChainVisitor visitor = languageToRuleChainVisitor.get(language); if (visitor == null) { if (language.getRuleChainVisitorClass() != null) { try { visitor = (RuleChainVisitor) language.getRuleChainVisitorClass().newInstance(); } catch (InstantiationException e) { throw new IllegalStateException("Failure to created RuleChainVisitor: " + language.getRuleChainVisitorClass(), e); } catch (IllegalAccessException e) { throw new IllegalStateException("Failure to created RuleChainVisitor: " + language.getRuleChainVisitorClass(), e); } languageToRuleChainVisitor.put(language, visitor); } else { throw new IllegalArgumentException("Language does not have a RuleChainVisitor: " + language); } } return visitor; }
// in src/main/java/net/sourceforge/pmd/renderers/AbstractRenderer.java
public void flush() { try { this.writer.flush(); } catch (IOException e) { throw new IllegalStateException(e); } finally { IOUtil.closeQuietly(writer); } }
// in src/main/java/net/sourceforge/pmd/util/CompoundIterator.java
public void remove() { Iterator<T> iterator = getNextIterator(); if (iterator != null) { iterator.remove(); } else { throw new IllegalStateException(); } }
// in src/main/java/net/sourceforge/pmd/util/viewer/gui/SourceCodePanel.java
public void run() { try { sourceCodeArea.getHighlighter().removeAllHighlights(); if (node == null) { return; } int startOffset = sourceCodeArea.getLineStartOffset(node.getBeginLine() - 1) + node.getBeginColumn() - 1; int end = sourceCodeArea.getLineStartOffset(node.getEndLine() - 1) + node.getEndColumn(); sourceCodeArea.getHighlighter().addHighlight(startOffset, end, new DefaultHighlighter.DefaultHighlightPainter(HIGHLIGHT_COLOR)); sourceCodeArea.moveCaretPosition(startOffset); } catch (BadLocationException exc) { throw new IllegalStateException(exc.getMessage()); } }
// in src/main/java/net/sourceforge/pmd/util/log/AntLogHandler.java
public void publish(LogRecord logRecord) { //Map the log levels from java.util.logging to Ant int antLevel; Level level = logRecord.getLevel(); if (level == Level.FINEST) { antLevel = Project.MSG_DEBUG; //Shown when -debug is supplied to Ant } else if (level == Level.FINE || level == Level.FINER || level == Level.CONFIG) { antLevel = Project.MSG_VERBOSE; //Shown when -verbose is supplied to Ant } else if (level == Level.INFO) { antLevel = Project.MSG_INFO; //Always shown } else if (level == Level.WARNING) { antLevel = Project.MSG_WARN; //Always shown } else if (level == Level.SEVERE) { antLevel = Project.MSG_ERR; //Always shown } else { throw new IllegalStateException("Unknown logging level"); //shouldn't get ALL or NONE } antTask.log(FORMATTER.format(logRecord), antLevel); if (logRecord.getThrown() != null) { StringWriter stringWriter = new StringWriter(); PrintWriter printWriter = new PrintWriter(stringWriter, true); logRecord.getThrown().printStackTrace(printWriter); antTask.log(stringWriter.toString(), antLevel); } }
10
              
// in src/main/java/net/sourceforge/pmd/cpd/XMLRenderer.java
catch (ParserConfigurationException e) { throw new IllegalStateException(e); }
// in src/main/java/net/sourceforge/pmd/cpd/XMLRenderer.java
catch (TransformerException e) { throw new IllegalStateException(e); }
// in src/main/java/net/sourceforge/pmd/lang/Language.java
catch (InstantiationException e) { throw new IllegalStateException("Unable to invoke no-arg constructor for RuleChainVisitor class <" + ruleChainVisitorClass.getName() + ">!"); }
// in src/main/java/net/sourceforge/pmd/lang/Language.java
catch (IllegalAccessException e) { throw new IllegalStateException("Unable to invoke no-arg constructor for RuleChainVisitor class <" + ruleChainVisitorClass.getName() + ">!"); }
// in src/main/java/net/sourceforge/pmd/lang/java/rule/design/PreserveStackTraceRule.java
catch (JaxenException e) { // XPath is valid, this should never happens... throw new IllegalStateException(e); }
// in src/main/java/net/sourceforge/pmd/processor/MultiThreadProcessor.java
catch (ExecutionException ee) { Throwable t = ee.getCause(); if (t instanceof RuntimeException) { throw (RuntimeException) t; } else if (t instanceof Error) { throw (Error) t; } else { throw new IllegalStateException( "PmdRunnable exception", t); } }
// in src/main/java/net/sourceforge/pmd/RuleChain.java
catch (InstantiationException e) { throw new IllegalStateException("Failure to created RuleChainVisitor: " + language.getRuleChainVisitorClass(), e); }
// in src/main/java/net/sourceforge/pmd/RuleChain.java
catch (IllegalAccessException e) { throw new IllegalStateException("Failure to created RuleChainVisitor: " + language.getRuleChainVisitorClass(), e); }
// in src/main/java/net/sourceforge/pmd/renderers/AbstractRenderer.java
catch (IOException e) { throw new IllegalStateException(e); }
// in src/main/java/net/sourceforge/pmd/util/viewer/gui/SourceCodePanel.java
catch (BadLocationException exc) { throw new IllegalStateException(exc.getMessage()); }
0
(Lib) BuildException 14
              
// in src/main/java/net/sourceforge/pmd/cpd/CPDTask.java
public void execute() throws BuildException { try { validateFields(); log("Starting run, minimumTokenCount is " + minimumTokenCount, Project.MSG_INFO); log("Tokenizing files", Project.MSG_INFO); CPDConfiguration config = new CPDConfiguration( minimumTokenCount, createLanguage(), encoding ); CPD cpd = new CPD(config); tokenizeFiles(cpd); log("Starting to analyze code", Project.MSG_INFO); long timeTaken = analyzeCode(cpd); log("Done analyzing code; that took " + timeTaken + " milliseconds"); log("Generating report", Project.MSG_INFO); report(cpd); } catch (IOException ioe) { log(ioe.toString(), Project.MSG_ERR); throw new BuildException("IOException during task execution", ioe); } catch (ReportException re) { re.printStackTrace(); log(re.toString(), Project.MSG_ERR); throw new BuildException("ReportException during task execution", re); } }
// in src/main/java/net/sourceforge/pmd/cpd/CPDTask.java
private void validateFields() throws BuildException { if (minimumTokenCount == 0) { throw new BuildException("minimumTokenCount is required and must be greater than zero"); } else if (filesets.isEmpty()) { throw new BuildException("Must include at least one FileSet"); } }
// in src/main/java/net/sourceforge/pmd/ant/PMDTask.java
public void addConfiguredVersion(Version version) { LanguageVersion languageVersion = LanguageVersion.findByTerseName(version.getTerseName()); if (languageVersion == null) { StringBuilder buf = new StringBuilder("The <version> element, if used, must be one of "); boolean first = true; for (Language language : Language.values()) { if (language.getVersions().size() > 2) { for (LanguageVersion v : language.getVersions()) { if (!first) { buf.append(", "); } buf.append('\'').append(v.getTerseName()).append('\''); first = false; } } } buf.append('.'); throw new BuildException(buf.toString()); } configuration.setDefaultLanguageVersion(languageVersion); }
// in src/main/java/net/sourceforge/pmd/ant/PMDTask.java
private void doTask() { setupClassLoader(); // Setup RuleSetFactory and validate RuleSets RuleSetFactory ruleSetFactory = new RuleSetFactory(); ruleSetFactory.setClassLoader(configuration.getClassLoader()); try { // This is just used to validate and display rules. Each thread will create its own ruleset ruleSetFactory.setMinimumPriority(configuration.getMinimumPriority()); ruleSetFactory.setWarnDeprecated(true); String ruleSets = configuration.getRuleSets(); if (StringUtil.isNotEmpty(ruleSets)) { // Substitute env variables/properties configuration.setRuleSets(getProject().replaceProperties(ruleSets)); } RuleSets rules = ruleSetFactory.createRuleSets(configuration.getRuleSets()); ruleSetFactory.setWarnDeprecated(false); logRulesUsed(rules); } catch (RuleSetNotFoundException e) { throw new BuildException(e.getMessage(), e); } if (configuration.getSuppressMarker() != null) { log("Setting suppress marker to be " + configuration.getSuppressMarker(), Project.MSG_VERBOSE); } // Start the Formatters for (Formatter formatter : formatters) { log("Sending a report to " + formatter, Project.MSG_VERBOSE); formatter.start(getProject().getBaseDir().toString()); } //log("Setting Language Version " + languageVersion.getShortName(), Project.MSG_VERBOSE); // TODO Do we really need all this in a loop over each FileSet? Seems like a lot of redundancy RuleContext ctx = new RuleContext(); Report errorReport = new Report(); final AtomicInteger reportSize = new AtomicInteger(); final String separator = System.getProperty("file.separator"); for (FileSet fs : filesets) { List<DataSource> files = new LinkedList<DataSource>(); DirectoryScanner ds = fs.getDirectoryScanner(getProject()); String[] srcFiles = ds.getIncludedFiles(); for (String srcFile : srcFiles) { File file = new File(ds.getBasedir() + separator + srcFile); files.add(new FileDataSource(file)); } final String inputPaths = ds.getBasedir().getPath(); configuration.setInputPaths(inputPaths); Renderer logRenderer = new AbstractRenderer("log", "Logging renderer", null) { public void start() { // Nothing to do } public void startFileAnalysis(DataSource dataSource) { log("Processing file " + dataSource.getNiceFileName(false, inputPaths), Project.MSG_VERBOSE); } public void renderFileReport(Report r) { int size = r.size(); if (size > 0) { reportSize.addAndGet(size); } } public void end() { // Nothing to do } public String defaultFileExtension() { return null; } // not relevant }; List<Renderer> renderers = new LinkedList<Renderer>(); renderers.add(logRenderer); for (Formatter formatter : formatters) { renderers.add(formatter.getRenderer()); } try { PMD.processFiles(configuration, ruleSetFactory, files, ctx, renderers); } catch (RuntimeException pmde) { handleError(ctx, errorReport, pmde); } } int problemCount = reportSize.get(); log(problemCount + " problems found", Project.MSG_VERBOSE); for (Formatter formatter : formatters) { formatter.end(errorReport); } if (failuresPropertyName != null && problemCount > 0) { getProject().setProperty(failuresPropertyName, String.valueOf(problemCount)); log("Setting property " + failuresPropertyName + " to " + problemCount, Project.MSG_VERBOSE); } if (failOnRuleViolation && problemCount > maxRuleViolations) { throw new BuildException("Stopping build since PMD found " + problemCount + " rule violations in the code"); } }
// in src/main/java/net/sourceforge/pmd/ant/PMDTask.java
private void handleError(RuleContext ctx, Report errorReport, RuntimeException pmde) { pmde.printStackTrace(); log(pmde.toString(), Project.MSG_VERBOSE); Throwable cause = pmde.getCause(); if (cause != null) { StringWriter strWriter = new StringWriter(); PrintWriter printWriter = new PrintWriter(strWriter); cause.printStackTrace(printWriter); log(strWriter.toString(), Project.MSG_VERBOSE); IOUtil.closeQuietly(printWriter); if (StringUtil.isNotEmpty(cause.getMessage())) { log(cause.getMessage(), Project.MSG_VERBOSE); } } if (failOnError) { throw new BuildException(pmde); } errorReport.addError(new Report.ProcessingError(pmde.getMessage(), ctx.getSourceCodeFilename())); }
// in src/main/java/net/sourceforge/pmd/ant/PMDTask.java
private void setupClassLoader() { if (classpath == null) { log("Using the normal ClassLoader", Project.MSG_VERBOSE); } else { log("Using the AntClassLoader", Project.MSG_VERBOSE); configuration.setClassLoader(new AntClassLoader(getProject(), classpath)); } try { /* * 'basedir' is added to the path to make sure that relative paths * such as "<ruleset>resources/custom_ruleset.xml</ruleset>" still * work when ant is invoked from a different directory using "-f" */ configuration.prependClasspath(getProject().getBaseDir().toString()); if (auxClasspath != null) { log("Using auxclasspath: " + auxClasspath, Project.MSG_VERBOSE); configuration.prependClasspath(auxClasspath.toString()); } } catch (IOException ioe) { throw new BuildException(ioe.getMessage(), ioe); } }
// in src/main/java/net/sourceforge/pmd/ant/PMDTask.java
private void validate() throws BuildException { if (formatters.isEmpty()) { Formatter defaultFormatter = new Formatter(); defaultFormatter.setType("text"); defaultFormatter.setToConsole(true); formatters.add(defaultFormatter); } else { for (Formatter f : formatters) { if (f.isNoOutputSupplied()) { throw new BuildException("toFile or toConsole needs to be specified in Formatter"); } } } if (configuration.getRuleSets() == null) { if (nestedRules.isEmpty()) { throw new BuildException("No rulesets specified"); } configuration.setRuleSets(getNestedRuleSetFiles()); } }
// in src/main/java/net/sourceforge/pmd/ant/Formatter.java
public void start(String baseDir) { try { if (toConsole) { writer = new BufferedWriter(new OutputStreamWriter(System.out)); } if (toFile != null) { writer = getToFileWriter(baseDir); } renderer = createRenderer(); renderer.setWriter(writer); renderer.start(); } catch (IOException ioe) { throw new BuildException(ioe.getMessage(), ioe); } }
// in src/main/java/net/sourceforge/pmd/ant/Formatter.java
public void end(Report errorReport) { try { renderer.renderFileReport(errorReport); renderer.end(); if (toConsole) { writer.flush(); } else { writer.close(); } } catch (IOException ioe) { throw new BuildException(ioe.getMessage(), ioe); } }
// in src/main/java/net/sourceforge/pmd/ant/Formatter.java
private Renderer createRenderer() { if (StringUtil.isEmpty(type)) { throw new BuildException(unknownRendererMessage("<unspecified>")); } Properties properties = createProperties(); Renderer renderer = RendererFactory.createRenderer(type, properties); renderer.setShowSuppressedViolations(showSuppressed); return renderer; }
6
              
// in src/main/java/net/sourceforge/pmd/cpd/CPDTask.java
catch (IOException ioe) { log(ioe.toString(), Project.MSG_ERR); throw new BuildException("IOException during task execution", ioe); }
// in src/main/java/net/sourceforge/pmd/cpd/CPDTask.java
catch (ReportException re) { re.printStackTrace(); log(re.toString(), Project.MSG_ERR); throw new BuildException("ReportException during task execution", re); }
// in src/main/java/net/sourceforge/pmd/ant/PMDTask.java
catch (RuleSetNotFoundException e) { throw new BuildException(e.getMessage(), e); }
// in src/main/java/net/sourceforge/pmd/ant/PMDTask.java
catch (IOException ioe) { throw new BuildException(ioe.getMessage(), ioe); }
// in src/main/java/net/sourceforge/pmd/ant/Formatter.java
catch (IOException ioe) { throw new BuildException(ioe.getMessage(), ioe); }
// in src/main/java/net/sourceforge/pmd/ant/Formatter.java
catch (IOException ioe) { throw new BuildException(ioe.getMessage(), ioe); }
4
              
// in src/main/java/net/sourceforge/pmd/cpd/CPDTask.java
public void execute() throws BuildException { try { validateFields(); log("Starting run, minimumTokenCount is " + minimumTokenCount, Project.MSG_INFO); log("Tokenizing files", Project.MSG_INFO); CPDConfiguration config = new CPDConfiguration( minimumTokenCount, createLanguage(), encoding ); CPD cpd = new CPD(config); tokenizeFiles(cpd); log("Starting to analyze code", Project.MSG_INFO); long timeTaken = analyzeCode(cpd); log("Done analyzing code; that took " + timeTaken + " milliseconds"); log("Generating report", Project.MSG_INFO); report(cpd); } catch (IOException ioe) { log(ioe.toString(), Project.MSG_ERR); throw new BuildException("IOException during task execution", ioe); } catch (ReportException re) { re.printStackTrace(); log(re.toString(), Project.MSG_ERR); throw new BuildException("ReportException during task execution", re); } }
// in src/main/java/net/sourceforge/pmd/cpd/CPDTask.java
private void validateFields() throws BuildException { if (minimumTokenCount == 0) { throw new BuildException("minimumTokenCount is required and must be greater than zero"); } else if (filesets.isEmpty()) { throw new BuildException("Must include at least one FileSet"); } }
// in src/main/java/net/sourceforge/pmd/ant/PMDTask.java
Override public void execute() throws BuildException { validate(); final Handler antLogHandler = new AntLogHandler(this); final ScopedLogHandlersManager logManager = new ScopedLogHandlersManager(Level.FINEST, antLogHandler); try { doTask(); } finally { logManager.close(); } }
// in src/main/java/net/sourceforge/pmd/ant/PMDTask.java
private void validate() throws BuildException { if (formatters.isEmpty()) { Formatter defaultFormatter = new Formatter(); defaultFormatter.setType("text"); defaultFormatter.setToConsole(true); formatters.add(defaultFormatter); } else { for (Formatter f : formatters) { if (f.isNoOutputSupplied()) { throw new BuildException("toFile or toConsole needs to be specified in Formatter"); } } } if (configuration.getRuleSets() == null) { if (nestedRules.isEmpty()) { throw new BuildException("No rulesets specified"); } configuration.setRuleSets(getNestedRuleSetFiles()); } }
(Lib) UnsupportedOperationException 13
              
// in src/main/java/net/sourceforge/pmd/lang/dfa/report/ReportTree.java
public void remove() { throw new UnsupportedOperationException(); }
// in src/main/java/net/sourceforge/pmd/lang/xml/ast/XmlParser.java
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { // XmlNode method? if (method.getDeclaringClass().isAssignableFrom(XmlNode.class) && !"java.lang.Object".equals(method.getDeclaringClass().getName())) { if ("jjtGetNumChildren".equals(method.getName())) { return node.hasChildNodes() ? node.getChildNodes().getLength() : 0; } else if ("jjtGetChild".equals(method.getName())) { return createProxy(node.getChildNodes().item(((Integer) args[0]).intValue())); } else if ("getImage".equals(method.getName())) { if (node instanceof Text) { return ((Text) node).getData(); } else { return null; } } else if ("jjtGetParent".equals(method.getName())) { Node parent = node.getParentNode(); if (parent != null && !(parent instanceof Document)) { return createProxy(parent); } else { return null; } } else if ("getAttributeIterator".equals(method.getName())) { List<Iterator<Attribute>> iterators = new ArrayList<Iterator<Attribute>>(); // Expose DOM Attributes final NamedNodeMap attributes = node.getAttributes(); iterators.add(new Iterator<Attribute>() { private int index; public boolean hasNext() { return attributes != null && index < attributes.getLength(); } public Attribute next() { Node attributeNode = attributes.item(index++); return new Attribute(createProxy(node), attributeNode.getNodeName(), attributeNode .getNodeValue()); } public void remove() { throw new UnsupportedOperationException(); } }); // Expose Text/CDATA nodes to have an 'Image' attribute like AST Nodes if (proxy instanceof Text) { iterators.add(Collections.singletonList( new Attribute((net.sourceforge.pmd.lang.ast.Node) proxy, "Image", ((Text) proxy) .getData())).iterator()); } // Expose Java Attributes // iterators.add(new AttributeAxisIterator((net.sourceforge.pmd.lang.ast.Node) p)); return new CompoundIterator<Attribute>(iterators.toArray(new Iterator[iterators.size()])); } else if ("getBeginLine".equals(method.getName())) { return Integer.valueOf(-1); } else if ("getBeginColumn".equals(method.getName())) { return Integer.valueOf(-1); } else if ("getEndLine".equals(method.getName())) { return Integer.valueOf(-1); } else if ("getEndColumn".equals(method.getName())) { return Integer.valueOf(-1); } else if ("getNode".equals(method.getName())) { return node; } else if ("getUserData".equals(method.getName())) { return userData; } else if ("setUserData".equals(method.getName())) { userData = args[0]; return null; } throw new UnsupportedOperationException("Method not supported for XmlNode: " + method); }
// in src/main/java/net/sourceforge/pmd/lang/xml/ast/XmlParser.java
public void remove() { throw new UnsupportedOperationException(); }
// in src/main/java/net/sourceforge/pmd/lang/ast/xpath/AttributeAxisIterator.java
public void remove() { throw new UnsupportedOperationException(); }
// in src/main/java/net/sourceforge/pmd/lang/ast/xpath/NodeIterator.java
public void remove() { throw new UnsupportedOperationException(); }
// 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/lang/cpp/CppParser.java
public Map<Integer, String> getSuppressMap() { throw new UnsupportedOperationException("getSuppressMap() is not supported for C++"); }
// in src/main/java/net/sourceforge/pmd/lang/cpp/CppHandler.java
public RuleViolationFactory getRuleViolationFactory() { throw new UnsupportedOperationException("getRuleViolationFactory() is not supported for C++"); }
// in src/main/java/net/sourceforge/pmd/lang/rule/properties/AbstractScalarProperty.java
protected Object[] arrayFor(int size) { if (isMultiValue()) { throw new IllegalStateException("Subclass '" + this.getClass().getSimpleName() + "' must implement the arrayFor(int) method."); } throw new UnsupportedOperationException("Arrays not supported on single valued property descriptors."); }
// in src/main/java/net/sourceforge/pmd/lang/rule/xpath/AbstractXPathRuleQuery.java
public void setVersion(String version) throws UnsupportedOperationException { if (!isSupportedVersion(version)) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + " does not support XPath version: " + version); } this.version = version; }
// in src/main/java/net/sourceforge/pmd/lang/rule/AbstractRule.java
public void setLanguage(Language language) { if (this.language != null && this instanceof ImmutableLanguage && !this.language.equals(language)) { throw new UnsupportedOperationException("The Language for Rule class " + this.getClass().getName() + " is immutable and cannot be changed."); } this.language = language; }
// in src/main/java/net/sourceforge/pmd/util/EmptyIterator.java
public void remove() { throw new UnsupportedOperationException(); }
// in src/main/java/net/sourceforge/pmd/util/viewer/model/ASTModel.java
public void valueForPathChanged(TreePath path, Object newValue) { throw new UnsupportedOperationException(); }
0 1
              
// in src/main/java/net/sourceforge/pmd/lang/rule/xpath/AbstractXPathRuleQuery.java
public void setVersion(String version) throws UnsupportedOperationException { if (!isSupportedVersion(version)) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + " does not support XPath version: " + version); } this.version = version; }
(Lib) ClassNotFoundException 7
              
// in src/main/java/net/sourceforge/pmd/lang/java/typeresolution/PMDASMClassLoader.java
public synchronized Map<String, String> getImportedClasses(String name) throws ClassNotFoundException { if (dontBother.contains(name)) { throw new ClassNotFoundException(name); } try { ClassReader reader = new ClassReader(getResourceAsStream(name.replace('.', '/') + ".class")); PMDASMVisitor asmVisitor = new PMDASMVisitor(); reader.accept(asmVisitor, 0); List<String> inner = asmVisitor.getInnerClasses(); if (inner != null && !inner.isEmpty()) { inner = new ArrayList<String>(inner); // to avoid ConcurrentModificationException for (String str: inner) { reader = new ClassReader(getResourceAsStream(str.replace('.', '/') + ".class")); reader.accept(asmVisitor, 0); } } return asmVisitor.getPackages(); } catch (IOException e) { dontBother.add(name); throw new ClassNotFoundException(name, e); } }
// in src/main/java/net/sourceforge/pmd/lang/java/symboltable/TypeSet.java
public Class<?> resolve(String name) throws ClassNotFoundException { for (String importStmt : importStmts) { if (importStmt.endsWith(name)) { return Class.forName(importStmt); } } throw new ClassNotFoundException("Type " + name + " not found"); }
// in src/main/java/net/sourceforge/pmd/lang/java/symboltable/TypeSet.java
public Class<?> resolve(String name) throws ClassNotFoundException { for (String importStmt : importStmts) { if (importStmt.endsWith("*")) { try { String importPkg = importStmt.substring(0, importStmt.indexOf('*') - 1); return Class.forName(importPkg + '.' + name); } catch (ClassNotFoundException cnfe) { } } } throw new ClassNotFoundException("Type " + name + " not found"); }
// in src/main/java/net/sourceforge/pmd/lang/java/symboltable/TypeSet.java
public Class<?> resolve(String name) throws ClassNotFoundException { if (name.equals("void")) { return void.class; } throw new ClassNotFoundException(); }
// in src/main/java/net/sourceforge/pmd/lang/java/symboltable/TypeSet.java
public Class<?> findClass(String name) throws ClassNotFoundException { // we don't build the resolvers until now since we first want to get all the imports if (resolvers.isEmpty()) { buildResolvers(); } for (Resolver resolver : resolvers) { try { return resolver.resolve(name); } catch (ClassNotFoundException cnfe) { } } throw new ClassNotFoundException("Type " + name + " not found"); }
1
              
// in src/main/java/net/sourceforge/pmd/lang/java/typeresolution/PMDASMClassLoader.java
catch (IOException e) { dontBother.add(name); throw new ClassNotFoundException(name, e); }
11
              
// in src/main/java/net/sourceforge/pmd/RuleSetFactory.java
private void parseRuleNode(RuleSetReferenceId ruleSetReferenceId, RuleSet ruleSet, Node ruleNode) throws ClassNotFoundException, InstantiationException, IllegalAccessException, RuleSetNotFoundException { Element ruleElement = (Element) ruleNode; String ref = ruleElement.getAttribute("ref"); if (ref.endsWith("xml")) { parseRuleSetReferenceNode(ruleSetReferenceId, ruleSet, ruleElement, ref); } else if (StringUtil.isEmpty(ref)) { parseSingleRuleNode(ruleSetReferenceId, ruleSet, ruleNode); } else { parseRuleReferenceNode(ruleSetReferenceId, ruleSet, ruleNode, ref); } }
// in src/main/java/net/sourceforge/pmd/RuleSetFactory.java
private void parseSingleRuleNode(RuleSetReferenceId ruleSetReferenceId, RuleSet ruleSet, Node ruleNode) throws ClassNotFoundException, InstantiationException, IllegalAccessException { Element ruleElement = (Element) ruleNode; // Stop if we're looking for a particular Rule, and this element is not it. if (StringUtil.isNotEmpty(ruleSetReferenceId.getRuleName()) && !isRuleName(ruleElement, ruleSetReferenceId.getRuleName())) { return; } String attribute = ruleElement.getAttribute("class"); Class<?> c = classLoader.loadClass(attribute); Rule rule = (Rule) c.newInstance(); rule.setName(ruleElement.getAttribute("name")); if (ruleElement.hasAttribute("language")) { String languageName = ruleElement.getAttribute("language"); Language language = Language.findByTerseName(languageName); if (language == null) { throw new IllegalArgumentException("Unknown Language '" + languageName + "' for Rule " + rule.getName() + ", supported Languages are " + Language.commaSeparatedTerseNames(Language.findWithRuleSupport())); } rule.setLanguage(language); } Language language = rule.getLanguage(); if (language == null) { throw new IllegalArgumentException("Rule " + rule.getName() + " does not have a Language; missing 'language' attribute?"); } if (ruleElement.hasAttribute("minimumLanguageVersion")) { String minimumLanguageVersionName = ruleElement.getAttribute("minimumLanguageVersion"); LanguageVersion minimumLanguageVersion = language.getVersion(minimumLanguageVersionName); if (minimumLanguageVersion == null) { throw new IllegalArgumentException("Unknown minimum Language Version '" + minimumLanguageVersionName + "' for Language '" + language.getTerseName() + "' for Rule " + rule.getName() + "; supported Language Versions are: " + LanguageVersion.commaSeparatedTerseNames(language.getVersions())); } rule.setMinimumLanguageVersion(minimumLanguageVersion); } if (ruleElement.hasAttribute("maximumLanguageVersion")) { String maximumLanguageVersionName = ruleElement.getAttribute("maximumLanguageVersion"); LanguageVersion maximumLanguageVersion = language.getVersion(maximumLanguageVersionName); if (maximumLanguageVersion == null) { throw new IllegalArgumentException("Unknown maximum Language Version '" + maximumLanguageVersionName + "' for Language '" + language.getTerseName() + "' for Rule " + rule.getName() + "; supported Language Versions are: " + LanguageVersion.commaSeparatedTerseNames(language.getVersions())); } rule.setMaximumLanguageVersion(maximumLanguageVersion); } if (rule.getMinimumLanguageVersion() != null && rule.getMaximumLanguageVersion() != null) { throw new IllegalArgumentException("The minimum Language Version '" + rule.getMinimumLanguageVersion().getTerseName() + "' must be prior to the maximum Language Version '" + rule.getMaximumLanguageVersion().getTerseName() + "' for Rule " + rule.getName() + "; perhaps swap them around?"); } String since = ruleElement.getAttribute("since"); if (StringUtil.isNotEmpty(since)) { rule.setSince(since); } rule.setMessage(ruleElement.getAttribute("message")); rule.setRuleSetName(ruleSet.getName()); rule.setExternalInfoUrl(ruleElement.getAttribute("externalInfoUrl")); if (hasAttributeSetTrue(ruleElement,"dfa")) { rule.setUsesDFA(); } if (hasAttributeSetTrue(ruleElement,"typeResolution")) { rule.setUsesTypeResolution(); } final NodeList nodeList = ruleElement.getChildNodes(); for (int i = 0; i < nodeList.getLength(); i++) { Node node = nodeList.item(i); if (node.getNodeType() != Node.ELEMENT_NODE) { continue; } String nodeName = node.getNodeName(); if (nodeName.equals("description")) { rule.setDescription(parseTextNode(node)); } else if (nodeName.equals("example")) { rule.addExample(parseTextNode(node)); } else if (nodeName.equals("priority")) { rule.setPriority(RulePriority.valueOf(Integer.parseInt(parseTextNode(node).trim()))); } else if (nodeName.equals("properties")) { parsePropertiesNode(rule, node); } else { throw new IllegalArgumentException("Unexpected element <" + nodeName + "> encountered as child of <rule> element for Rule " + rule.getName()); } } if (StringUtil.isNotEmpty(ruleSetReferenceId.getRuleName()) || rule.getPriority().compareTo(minimumPriority) <= 0) { ruleSet.addRule(rule); } }
// in src/main/java/net/sourceforge/pmd/lang/java/typeresolution/PMDASMClassLoader.java
public synchronized Map<String, String> getImportedClasses(String name) throws ClassNotFoundException { if (dontBother.contains(name)) { throw new ClassNotFoundException(name); } try { ClassReader reader = new ClassReader(getResourceAsStream(name.replace('.', '/') + ".class")); PMDASMVisitor asmVisitor = new PMDASMVisitor(); reader.accept(asmVisitor, 0); List<String> inner = asmVisitor.getInnerClasses(); if (inner != null && !inner.isEmpty()) { inner = new ArrayList<String>(inner); // to avoid ConcurrentModificationException for (String str: inner) { reader = new ClassReader(getResourceAsStream(str.replace('.', '/') + ".class")); reader.accept(asmVisitor, 0); } } return asmVisitor.getPackages(); } catch (IOException e) { dontBother.add(name); throw new ClassNotFoundException(name, e); } }
// in src/main/java/net/sourceforge/pmd/lang/java/typeresolution/ClassTypeResolver.java
private void populateClassName(ASTCompilationUnit node, String className) throws ClassNotFoundException { node.setType(pmdClassLoader.loadClass(className)); importedClasses.putAll(pmdClassLoader.getImportedClasses(className)); }
// in src/main/java/net/sourceforge/pmd/lang/java/symboltable/TypeSet.java
public Class<?> resolve(String name) throws ClassNotFoundException { for (String importStmt : importStmts) { if (importStmt.endsWith(name)) { return Class.forName(importStmt); } } throw new ClassNotFoundException("Type " + name + " not found"); }
// in src/main/java/net/sourceforge/pmd/lang/java/symboltable/TypeSet.java
public Class<?> resolve(String name) throws ClassNotFoundException { return Class.forName(pkg + name); }
// in src/main/java/net/sourceforge/pmd/lang/java/symboltable/TypeSet.java
public Class<?> resolve(String name) throws ClassNotFoundException { return Class.forName("java.lang." + name); }
// in src/main/java/net/sourceforge/pmd/lang/java/symboltable/TypeSet.java
public Class<?> resolve(String name) throws ClassNotFoundException { for (String importStmt : importStmts) { if (importStmt.endsWith("*")) { try { String importPkg = importStmt.substring(0, importStmt.indexOf('*') - 1); return Class.forName(importPkg + '.' + name); } catch (ClassNotFoundException cnfe) { } } } throw new ClassNotFoundException("Type " + name + " not found"); }
// in src/main/java/net/sourceforge/pmd/lang/java/symboltable/TypeSet.java
public Class<?> resolve(String name) throws ClassNotFoundException { if (name.equals("void")) { return void.class; } throw new ClassNotFoundException(); }
// in src/main/java/net/sourceforge/pmd/lang/java/symboltable/TypeSet.java
public Class<?> resolve(String name) throws ClassNotFoundException { return Class.forName(name); }
// in src/main/java/net/sourceforge/pmd/lang/java/symboltable/TypeSet.java
public Class<?> findClass(String name) throws ClassNotFoundException { // we don't build the resolvers until now since we first want to get all the imports if (resolvers.isEmpty()) { buildResolvers(); } for (Resolver resolver : resolvers) { try { return resolver.resolve(name); } catch (ClassNotFoundException cnfe) { } } throw new ClassNotFoundException("Type " + name + " not found"); }
(Domain) TokenMgrError 6
              
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
public void SwitchTo(int lexState) { if (lexState >= 18 || lexState < 0) throw new TokenMgrError("Error: Ignoring invalid lexical state : " + lexState + ". State unchanged.", TokenMgrError.INVALID_LEXICAL_STATE); else curLexState = lexState; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
public Token getNextToken() { Token specialToken = null; Token matchedToken; int curPos = 0; EOFLoop : for (;;) { try { curChar = input_stream.BeginToken(); } catch(java.io.IOException e) { jjmatchedKind = 0; matchedToken = jjFillToken(); matchedToken.specialToken = specialToken; return matchedToken; } image = jjimage; image.setLength(0); jjimageLen = 0; switch(curLexState) { case 0: jjmatchedKind = 0x7fffffff; jjmatchedPos = 0; curPos = jjMoveStringLiteralDfa0_0(); if (jjmatchedPos == 0 && jjmatchedKind > 77) { jjmatchedKind = 77; } break; case 1: jjmatchedKind = 0x7fffffff; jjmatchedPos = 0; curPos = jjMoveStringLiteralDfa0_1(); if (jjmatchedPos == 0 && jjmatchedKind > 76) { jjmatchedKind = 76; } break; case 2: jjmatchedKind = 0x7fffffff; jjmatchedPos = 0; curPos = jjMoveStringLiteralDfa0_2(); break; case 3: jjmatchedKind = 0x7fffffff; jjmatchedPos = 0; curPos = jjMoveStringLiteralDfa0_3(); break; case 4: jjmatchedKind = 0x7fffffff; jjmatchedPos = 0; curPos = jjMoveStringLiteralDfa0_4(); if (jjmatchedPos == 0 && jjmatchedKind > 57) { jjmatchedKind = 57; } break; case 5: jjmatchedKind = 0x7fffffff; jjmatchedPos = 0; curPos = jjMoveStringLiteralDfa0_5(); if (jjmatchedPos == 0 && jjmatchedKind > 54) { jjmatchedKind = 54; } break; case 6: jjmatchedKind = 0x7fffffff; jjmatchedPos = 0; curPos = jjMoveStringLiteralDfa0_6(); break; case 7: jjmatchedKind = 0x7fffffff; jjmatchedPos = 0; curPos = jjMoveStringLiteralDfa0_7(); break; case 8: jjmatchedKind = 0x7fffffff; jjmatchedPos = 0; curPos = jjMoveStringLiteralDfa0_8(); break; case 9: jjmatchedKind = 0x7fffffff; jjmatchedPos = 0; curPos = jjMoveStringLiteralDfa0_9(); break; case 10: jjmatchedKind = 0x7fffffff; jjmatchedPos = 0; curPos = jjMoveStringLiteralDfa0_10(); break; case 11: jjmatchedKind = 0x7fffffff; jjmatchedPos = 0; curPos = jjMoveStringLiteralDfa0_11(); break; case 12: jjmatchedKind = 0x7fffffff; jjmatchedPos = 0; curPos = jjMoveStringLiteralDfa0_12(); if (jjmatchedPos == 0 && jjmatchedKind > 63) { jjmatchedKind = 63; } break; case 13: jjmatchedKind = 0x7fffffff; jjmatchedPos = 0; curPos = jjMoveStringLiteralDfa0_13(); break; case 14: jjmatchedKind = 0x7fffffff; jjmatchedPos = 0; curPos = jjMoveStringLiteralDfa0_14(); break; case 15: jjmatchedKind = 0x7fffffff; jjmatchedPos = 0; curPos = jjMoveStringLiteralDfa0_15(); break; case 16: jjmatchedKind = 0x7fffffff; jjmatchedPos = 0; curPos = jjMoveStringLiteralDfa0_16(); break; case 17: jjmatchedKind = 0x7fffffff; jjmatchedPos = 0; curPos = jjMoveStringLiteralDfa0_17(); break; } if (jjmatchedKind != 0x7fffffff) { if (jjmatchedPos + 1 < curPos) input_stream.backup(curPos - jjmatchedPos - 1); if ((jjtoToken[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L) { matchedToken = jjFillToken(); matchedToken.specialToken = specialToken; TokenLexicalActions(matchedToken); if (jjnewLexState[jjmatchedKind] != -1) curLexState = jjnewLexState[jjmatchedKind]; return matchedToken; } else { if ((jjtoSpecial[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L) { matchedToken = jjFillToken(); if (specialToken == null) specialToken = matchedToken; else { matchedToken.specialToken = specialToken; specialToken = (specialToken.next = matchedToken); } } if (jjnewLexState[jjmatchedKind] != -1) curLexState = jjnewLexState[jjmatchedKind]; continue EOFLoop; } } int error_line = input_stream.getEndLine(); int error_column = input_stream.getEndColumn(); String error_after = null; boolean EOFSeen = false; try { input_stream.readChar(); input_stream.backup(1); } catch (java.io.IOException e1) { EOFSeen = true; error_after = curPos <= 1 ? "" : input_stream.GetImage(); if (curChar == '\n' || curChar == '\r') { error_line++; error_column = 0; } else error_column++; } if (!EOFSeen) { input_stream.backup(1); error_after = curPos <= 1 ? "" : input_stream.GetImage(); } throw new TokenMgrError(EOFSeen, curLexState, error_line, error_column, error_after, curChar, TokenMgrError.LEXICAL_ERROR); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParserTokenManager.java
public void SwitchTo(int lexState) { if (lexState >= 3 || lexState < 0) throw new TokenMgrError("Error: Ignoring invalid lexical state : " + lexState + ". State unchanged.", TokenMgrError.INVALID_LEXICAL_STATE); else curLexState = lexState; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParserTokenManager.java
public Token getNextToken() { Token specialToken = null; Token matchedToken; int curPos = 0; EOFLoop : for (;;) { try { curChar = input_stream.BeginToken(); } catch(java.io.IOException e) { jjmatchedKind = 0; matchedToken = jjFillToken(); matchedToken.specialToken = specialToken; return matchedToken; } image = jjimage; image.setLength(0); jjimageLen = 0; for (;;) { switch(curLexState) { case 0: jjmatchedKind = 0x7fffffff; jjmatchedPos = 0; curPos = jjMoveStringLiteralDfa0_0(); break; case 1: jjmatchedKind = 0x7fffffff; jjmatchedPos = 0; curPos = jjMoveStringLiteralDfa0_1(); if (jjmatchedPos == 0 && jjmatchedKind > 11) { jjmatchedKind = 11; } break; case 2: jjmatchedKind = 0x7fffffff; jjmatchedPos = 0; curPos = jjMoveStringLiteralDfa0_2(); if (jjmatchedPos == 0 && jjmatchedKind > 11) { jjmatchedKind = 11; } break; } if (jjmatchedKind != 0x7fffffff) { if (jjmatchedPos + 1 < curPos) input_stream.backup(curPos - jjmatchedPos - 1); if ((jjtoToken[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L) { matchedToken = jjFillToken(); matchedToken.specialToken = specialToken; TokenLexicalActions(matchedToken); if (jjnewLexState[jjmatchedKind] != -1) curLexState = jjnewLexState[jjmatchedKind]; return matchedToken; } else if ((jjtoSkip[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L) { if ((jjtoSpecial[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L) { matchedToken = jjFillToken(); if (specialToken == null) specialToken = matchedToken; else { matchedToken.specialToken = specialToken; specialToken = (specialToken.next = matchedToken); } SkipLexicalActions(matchedToken); } else SkipLexicalActions(null); if (jjnewLexState[jjmatchedKind] != -1) curLexState = jjnewLexState[jjmatchedKind]; continue EOFLoop; } MoreLexicalActions(); if (jjnewLexState[jjmatchedKind] != -1) curLexState = jjnewLexState[jjmatchedKind]; curPos = 0; jjmatchedKind = 0x7fffffff; try { curChar = input_stream.readChar(); continue; } catch (java.io.IOException e1) { } } int error_line = input_stream.getEndLine(); int error_column = input_stream.getEndColumn(); String error_after = null; boolean EOFSeen = false; try { input_stream.readChar(); input_stream.backup(1); } catch (java.io.IOException e1) { EOFSeen = true; error_after = curPos <= 1 ? "" : input_stream.GetImage(); if (curChar == '\n' || curChar == '\r') { error_line++; error_column = 0; } else error_column++; } if (!EOFSeen) { input_stream.backup(1); error_after = curPos <= 1 ? "" : input_stream.GetImage(); } throw new TokenMgrError(EOFSeen, curLexState, error_line, error_column, error_after, curChar, TokenMgrError.LEXICAL_ERROR); } } }
// in src/main/java/net/sourceforge/pmd/lang/cpp/ast/CppParserTokenManager.java
public void SwitchTo(int lexState) { if (lexState >= 5 || lexState < 0) throw new TokenMgrError("Error: Ignoring invalid lexical state : " + lexState + ". State unchanged.", TokenMgrError.INVALID_LEXICAL_STATE); else curLexState = lexState; }
// in src/main/java/net/sourceforge/pmd/lang/cpp/ast/CppParserTokenManager.java
public Token getNextToken() { Token matchedToken; int curPos = 0; EOFLoop : for (;;) { try { curChar = input_stream.BeginToken(); } catch(java.io.IOException e) { jjmatchedKind = 0; matchedToken = jjFillToken(); return matchedToken; } for (;;) { switch(curLexState) { case 0: try { input_stream.backup(0); while (curChar <= 32 && (0x100001600L & (1L << curChar)) != 0L) curChar = input_stream.BeginToken(); } catch (java.io.IOException e1) { continue EOFLoop; } jjmatchedKind = 0x7fffffff; jjmatchedPos = 0; curPos = jjMoveStringLiteralDfa0_0(); break; case 1: jjmatchedKind = 0x7fffffff; jjmatchedPos = 0; curPos = jjMoveStringLiteralDfa0_1(); if (jjmatchedPos == 0 && jjmatchedKind > 10) { jjmatchedKind = 10; } break; case 2: jjmatchedKind = 0x7fffffff; jjmatchedPos = 0; curPos = jjMoveStringLiteralDfa0_2(); if (jjmatchedPos == 0 && jjmatchedKind > 12) { jjmatchedKind = 12; } break; case 3: jjmatchedKind = 0x7fffffff; jjmatchedPos = 0; curPos = jjMoveStringLiteralDfa0_3(); if (jjmatchedPos == 0 && jjmatchedKind > 12) { jjmatchedKind = 12; } break; case 4: jjmatchedKind = 0x7fffffff; jjmatchedPos = 0; curPos = jjMoveStringLiteralDfa0_4(); if (jjmatchedPos == 0 && jjmatchedKind > 18) { jjmatchedKind = 18; } break; } if (jjmatchedKind != 0x7fffffff) { if (jjmatchedPos + 1 < curPos) input_stream.backup(curPos - jjmatchedPos - 1); if ((jjtoToken[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L) { matchedToken = jjFillToken(); if (jjnewLexState[jjmatchedKind] != -1) curLexState = jjnewLexState[jjmatchedKind]; return matchedToken; } else if ((jjtoSkip[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L) { if (jjnewLexState[jjmatchedKind] != -1) curLexState = jjnewLexState[jjmatchedKind]; continue EOFLoop; } if (jjnewLexState[jjmatchedKind] != -1) curLexState = jjnewLexState[jjmatchedKind]; curPos = 0; jjmatchedKind = 0x7fffffff; try { curChar = input_stream.readChar(); continue; } catch (java.io.IOException e1) { } } int error_line = input_stream.getEndLine(); int error_column = input_stream.getEndColumn(); String error_after = null; boolean EOFSeen = false; try { input_stream.readChar(); input_stream.backup(1); } catch (java.io.IOException e1) { EOFSeen = true; error_after = curPos <= 1 ? "" : input_stream.GetImage(); if (curChar == '\n' || curChar == '\r') { error_line++; error_column = 0; } else error_column++; } if (!EOFSeen) { input_stream.backup(1); error_after = curPos <= 1 ? "" : input_stream.GetImage(); } throw new TokenMgrError(EOFSeen, curLexState, error_line, error_column, error_after, curChar, TokenMgrError.LEXICAL_ERROR); } } }
0 0
(Domain) RuleSetNotFoundException 4
              
// in src/main/java/net/sourceforge/pmd/RuleSetFactory.java
public synchronized RuleSet createRuleSet(String referenceString) throws RuleSetNotFoundException { List<RuleSetReferenceId> references = RuleSetReferenceId.parse(referenceString); if (references.isEmpty()) { throw new RuleSetNotFoundException("No RuleSetReferenceId can be parsed from the string: <" + referenceString + ">"); } return createRuleSet(references.get(0)); }
// in src/main/java/net/sourceforge/pmd/RuleSetReferenceId.java
public InputStream getInputStream(ClassLoader classLoader) throws RuleSetNotFoundException { if (externalRuleSetReferenceId == null) { InputStream in = StringUtil.isEmpty(ruleSetFileName) ? null : ResourceLoader.loadResourceAsStream( ruleSetFileName, classLoader); if (in == null) { throw new RuleSetNotFoundException( "Can't find resource " + ruleSetFileName + ". Make sure the resource is a valid file or URL or is on the CLASSPATH. Here's the current classpath: " + System.getProperty("java.class.path")); } return in; } else { return externalRuleSetReferenceId.getInputStream(classLoader); } }
// in src/main/java/net/sourceforge/pmd/util/ResourceLoader.java
public static InputStream loadResourceAsStream(String name) throws RuleSetNotFoundException { InputStream stream = loadResourceAsStream(name, ResourceLoader.class.getClassLoader()); if (stream == null) { throw new RuleSetNotFoundException("Can't find resource " + name + ". Make sure the resource is a valid file or URL or is on the CLASSPATH"); } return stream; }
// in src/main/java/net/sourceforge/pmd/util/ResourceLoader.java
public static InputStream loadResourceAsStream(String name, ClassLoader loader) throws RuleSetNotFoundException { File file = new File(name); if (file.exists()) { try { return new FileInputStream(file); } catch (FileNotFoundException e) { // if the file didn't exist, we wouldn't be here } } else { try { return new URL(name).openConnection().getInputStream(); } catch (Exception e) { return loader.getResourceAsStream(name); } } throw new RuleSetNotFoundException("Can't find resource " + name + ". Make sure the resource is a valid file or URL or is on the CLASSPATH"); }
0 13
              
// in src/main/java/net/sourceforge/pmd/RuleSetFactory.java
public Iterator<RuleSet> getRegisteredRuleSets() throws RuleSetNotFoundException { String rulesetsProperties = null; try { List<RuleSetReferenceId> ruleSetReferenceIds = new ArrayList<RuleSetReferenceId>(); for (Language language : Language.findWithRuleSupport()) { Properties props = new Properties(); rulesetsProperties = "rulesets/" + language.getTerseName() + "/rulesets.properties"; props.load(ResourceLoader.loadResourceAsStream(rulesetsProperties)); String rulesetFilenames = props.getProperty("rulesets.filenames"); ruleSetReferenceIds.addAll(RuleSetReferenceId.parse(rulesetFilenames)); } return createRuleSets(ruleSetReferenceIds).getRuleSetsIterator(); } catch (IOException ioe) { throw new RuntimeException("Couldn't find " + rulesetsProperties + "; please ensure that the rulesets directory is on the classpath. The current classpath is: " + System.getProperty("java.class.path")); } }
// in src/main/java/net/sourceforge/pmd/RuleSetFactory.java
public synchronized RuleSets createRuleSets(String referenceString) throws RuleSetNotFoundException { return createRuleSets(RuleSetReferenceId.parse(referenceString)); }
// in src/main/java/net/sourceforge/pmd/RuleSetFactory.java
public synchronized RuleSets createRuleSets(List<RuleSetReferenceId> ruleSetReferenceIds) throws RuleSetNotFoundException { RuleSets ruleSets = new RuleSets(); for (RuleSetReferenceId ruleSetReferenceId : ruleSetReferenceIds) { RuleSet ruleSet = createRuleSet(ruleSetReferenceId); ruleSets.addRuleSet(ruleSet); } return ruleSets; }
// in src/main/java/net/sourceforge/pmd/RuleSetFactory.java
public synchronized RuleSet createRuleSet(String referenceString) throws RuleSetNotFoundException { List<RuleSetReferenceId> references = RuleSetReferenceId.parse(referenceString); if (references.isEmpty()) { throw new RuleSetNotFoundException("No RuleSetReferenceId can be parsed from the string: <" + referenceString + ">"); } return createRuleSet(references.get(0)); }
// in src/main/java/net/sourceforge/pmd/RuleSetFactory.java
public synchronized RuleSet createRuleSet(RuleSetReferenceId ruleSetReferenceId) throws RuleSetNotFoundException { return parseRuleSetNode(ruleSetReferenceId, ruleSetReferenceId.getInputStream(this.classLoader)); }
// in src/main/java/net/sourceforge/pmd/RuleSetFactory.java
private Rule createRule(RuleSetReferenceId ruleSetReferenceId) throws RuleSetNotFoundException { if (ruleSetReferenceId.isAllRules()) { throw new IllegalArgumentException("Cannot parse a single Rule from an all Rule RuleSet reference: <" + ruleSetReferenceId + ">."); } RuleSet ruleSet = createRuleSet(ruleSetReferenceId); return ruleSet.getRuleByName(ruleSetReferenceId.getRuleName()); }
// in src/main/java/net/sourceforge/pmd/RuleSetFactory.java
private void parseRuleNode(RuleSetReferenceId ruleSetReferenceId, RuleSet ruleSet, Node ruleNode) throws ClassNotFoundException, InstantiationException, IllegalAccessException, RuleSetNotFoundException { Element ruleElement = (Element) ruleNode; String ref = ruleElement.getAttribute("ref"); if (ref.endsWith("xml")) { parseRuleSetReferenceNode(ruleSetReferenceId, ruleSet, ruleElement, ref); } else if (StringUtil.isEmpty(ref)) { parseSingleRuleNode(ruleSetReferenceId, ruleSet, ruleNode); } else { parseRuleReferenceNode(ruleSetReferenceId, ruleSet, ruleNode, ref); } }
// in src/main/java/net/sourceforge/pmd/RuleSetFactory.java
private void parseRuleSetReferenceNode(RuleSetReferenceId ruleSetReferenceId, RuleSet ruleSet, Element ruleElement, String ref) throws RuleSetNotFoundException { RuleSetReference ruleSetReference = new RuleSetReference(); ruleSetReference.setAllRules(true); ruleSetReference.setRuleSetFileName(ref); NodeList excludeNodes = ruleElement.getChildNodes(); for (int i = 0; i < excludeNodes.getLength(); i++) { if (isElementNode(excludeNodes.item(i),"exclude")) { Element excludeElement = (Element) excludeNodes.item(i); ruleSetReference.addExclude(excludeElement.getAttribute("name")); } } RuleSetFactory ruleSetFactory = new RuleSetFactory(); ruleSetFactory.setClassLoader(classLoader); RuleSet otherRuleSet = ruleSetFactory.createRuleSet(RuleSetReferenceId.parse(ref).get(0)); for (Rule rule : otherRuleSet.getRules()) { if (!ruleSetReference.getExcludes().contains(rule.getName()) && rule.getPriority().compareTo(minimumPriority) <= 0 && !rule.isDeprecated()) { RuleReference ruleReference = new RuleReference(); ruleReference.setRuleSetReference(ruleSetReference); ruleReference.setRule(rule); ruleSet.addRule(ruleReference); } } }
// in src/main/java/net/sourceforge/pmd/RuleSetFactory.java
private void parseRuleReferenceNode(RuleSetReferenceId ruleSetReferenceId, RuleSet ruleSet, Node ruleNode, String ref) throws RuleSetNotFoundException { Element ruleElement = (Element) ruleNode; // Stop if we're looking for a particular Rule, and this element is not it. if (StringUtil.isNotEmpty(ruleSetReferenceId.getRuleName()) && !isRuleName(ruleElement, ruleSetReferenceId.getRuleName())) { return; } RuleSetFactory ruleSetFactory = new RuleSetFactory(); ruleSetFactory.setClassLoader(classLoader); RuleSetReferenceId otherRuleSetReferenceId = RuleSetReferenceId.parse(ref).get(0); if (!otherRuleSetReferenceId.isExternal()) { otherRuleSetReferenceId = new RuleSetReferenceId(ref, ruleSetReferenceId); } Rule referencedRule = ruleSetFactory.createRule(otherRuleSetReferenceId); if (referencedRule == null) { throw new IllegalArgumentException("Unable to find referenced rule " + otherRuleSetReferenceId.getRuleName() + "; perhaps the rule name is mispelled?"); } if (warnDeprecated && referencedRule.isDeprecated()) { if (referencedRule instanceof RuleReference) { RuleReference ruleReference = (RuleReference) referencedRule; LOG.warning("Use Rule name " + ruleReference.getRuleSetReference().getRuleSetFileName() + "/" + ruleReference.getName() + " instead of the deprecated Rule name " + otherRuleSetReferenceId + ". Future versions of PMD will remove support for this deprecated Rule name usage."); } else if (referencedRule instanceof MockRule) { LOG.warning("Discontinue using Rule name " + otherRuleSetReferenceId + " as it has been removed from PMD and no longer functions." + " Future versions of PMD will remove support for this Rule."); } else { LOG.warning("Discontinue using Rule name " + otherRuleSetReferenceId + " as it is scheduled for removal from PMD." + " Future versions of PMD will remove support for this Rule."); } } RuleSetReference ruleSetReference = new RuleSetReference(); ruleSetReference.setAllRules(false); ruleSetReference.setRuleSetFileName(otherRuleSetReferenceId.getRuleSetFileName()); RuleReference ruleReference = new RuleReference(); ruleReference.setRuleSetReference(ruleSetReference); ruleReference.setRule(referencedRule); if (ruleElement.hasAttribute("deprecated")) { ruleReference.setDeprecated(Boolean.parseBoolean(ruleElement.getAttribute("deprecated"))); } if (ruleElement.hasAttribute("name")) { ruleReference.setName(ruleElement.getAttribute("name")); } if (ruleElement.hasAttribute("message")) { ruleReference.setMessage(ruleElement.getAttribute("message")); } if (ruleElement.hasAttribute("externalInfoUrl")) { ruleReference.setExternalInfoUrl(ruleElement.getAttribute("externalInfoUrl")); } for (int i = 0; i < ruleElement.getChildNodes().getLength(); i++) { Node node = ruleElement.getChildNodes().item(i); if (node.getNodeType() == Node.ELEMENT_NODE) { if (node.getNodeName().equals("description")) { ruleReference.setDescription(parseTextNode(node)); } else if (node.getNodeName().equals("example")) { ruleReference.addExample(parseTextNode(node)); } else if (node.getNodeName().equals("priority")) { ruleReference.setPriority(RulePriority.valueOf(Integer.parseInt(parseTextNode(node)))); } else if (node.getNodeName().equals("properties")) { parsePropertiesNode(ruleReference, node); } else { throw new IllegalArgumentException("Unexpected element <" + node.getNodeName() + "> encountered as child of <rule> element for Rule " + ruleReference.getName()); } } } if (StringUtil.isNotEmpty(ruleSetReferenceId.getRuleName()) || referencedRule.getPriority().compareTo(minimumPriority) <= 0) { ruleSet.addRule(ruleReference); } }
// in src/main/java/net/sourceforge/pmd/benchmark/Benchmarker.java
public static void main(String[] args) throws RuleSetNotFoundException, IOException, PMDException { String targetjdk = findOptionalStringValue(args, "--targetjdk", "1.4"); Language language = Language.JAVA; LanguageVersion languageVersion = language.getVersion(targetjdk); if (languageVersion == null) { languageVersion = language.getDefaultVersion(); } String srcDir = findOptionalStringValue(args, "--source-directory", "/usr/local/java/src/java/lang/"); List<DataSource> dataSources = FileUtil.collectFiles(srcDir, new LanguageFilenameFilter(language)); boolean debug = findBooleanSwitch(args, "--debug"); boolean parseOnly = findBooleanSwitch(args, "--parse-only"); if (debug) { System.out.println("Using " +language.getName() + " " + languageVersion.getVersion()); } if (parseOnly) { Parser parser = PMD.parserFor(languageVersion, null); parseStress(parser, dataSources, debug); } else { String ruleset = findOptionalStringValue(args, "--ruleset", ""); if (debug) { System.out.println("Checking directory " + srcDir); } Set<RuleDuration> results = new TreeSet<RuleDuration>(); RuleSetFactory factory = new RuleSetFactory(); if (StringUtil.isNotEmpty(ruleset)) { stress(languageVersion, factory.createRuleSet(ruleset), dataSources, results, debug); } else { Iterator<RuleSet> i = factory.getRegisteredRuleSets(); while (i.hasNext()) { stress(languageVersion, i.next(), dataSources, results, debug); } } TextReport report = new TextReport(); report.generate(results, System.err); } }
// in src/main/java/net/sourceforge/pmd/RuleSetReferenceId.java
public InputStream getInputStream(ClassLoader classLoader) throws RuleSetNotFoundException { if (externalRuleSetReferenceId == null) { InputStream in = StringUtil.isEmpty(ruleSetFileName) ? null : ResourceLoader.loadResourceAsStream( ruleSetFileName, classLoader); if (in == null) { throw new RuleSetNotFoundException( "Can't find resource " + ruleSetFileName + ". Make sure the resource is a valid file or URL or is on the CLASSPATH. Here's the current classpath: " + System.getProperty("java.class.path")); } return in; } else { return externalRuleSetReferenceId.getInputStream(classLoader); } }
// in src/main/java/net/sourceforge/pmd/util/ResourceLoader.java
public static InputStream loadResourceAsStream(String name) throws RuleSetNotFoundException { InputStream stream = loadResourceAsStream(name, ResourceLoader.class.getClassLoader()); if (stream == null) { throw new RuleSetNotFoundException("Can't find resource " + name + ". Make sure the resource is a valid file or URL or is on the CLASSPATH"); } return stream; }
// in src/main/java/net/sourceforge/pmd/util/ResourceLoader.java
public static InputStream loadResourceAsStream(String name, ClassLoader loader) throws RuleSetNotFoundException { File file = new File(name); if (file.exists()) { try { return new FileInputStream(file); } catch (FileNotFoundException e) { // if the file didn't exist, we wouldn't be here } } else { try { return new URL(name).openConnection().getInputStream(); } catch (Exception e) { return loader.getResourceAsStream(name); } } throw new RuleSetNotFoundException("Can't find resource " + name + ". Make sure the resource is a valid file or URL or is on the CLASSPATH"); }
(Lib) Error 3
              
// in src/main/java/net/sourceforge/pmd/lang/ast/JavaCharStream.java
protected void ExpandBuff(boolean wrapAround) { char[] newbuffer = new char[bufsize + 2048]; int newbufline[] = new int[bufsize + 2048]; int newbufcolumn[] = new int[bufsize + 2048]; try { if (wrapAround) { System.arraycopy(buffer, tokenBegin, newbuffer, 0, bufsize - tokenBegin); System.arraycopy(buffer, 0, newbuffer, bufsize - tokenBegin, bufpos); buffer = newbuffer; System.arraycopy(bufline, tokenBegin, newbufline, 0, bufsize - tokenBegin); System.arraycopy(bufline, 0, newbufline, bufsize - tokenBegin, bufpos); bufline = newbufline; System.arraycopy(bufcolumn, tokenBegin, newbufcolumn, 0, bufsize - tokenBegin); System.arraycopy(bufcolumn, 0, newbufcolumn, bufsize - tokenBegin, bufpos); bufcolumn = newbufcolumn; bufpos += (bufsize - tokenBegin); } else { System.arraycopy(buffer, tokenBegin, newbuffer, 0, bufsize - tokenBegin); buffer = newbuffer; System.arraycopy(bufline, tokenBegin, newbufline, 0, bufsize - tokenBegin); bufline = newbufline; System.arraycopy(bufcolumn, tokenBegin, newbufcolumn, 0, bufsize - tokenBegin); bufcolumn = newbufcolumn; bufpos -= tokenBegin; } } catch (Throwable t) { throw new Error(t.getMessage()); } available = (bufsize += 2048); tokenBegin = 0; }
// in src/main/java/net/sourceforge/pmd/lang/ast/JavaCharStream.java
public char readChar() throws java.io.IOException { if (inBuf > 0) { --inBuf; if (++bufpos == bufsize) bufpos = 0; return buffer[bufpos]; } char c; if (++bufpos == available) AdjustBuffSize(); if ((buffer[bufpos] = c = ReadByte()) == '\\') { UpdateLineColumn(c); int backSlashCnt = 1; for (;;) // Read all the backslashes { if (++bufpos == available) AdjustBuffSize(); try { if ((buffer[bufpos] = c = ReadByte()) != '\\') { UpdateLineColumn(c); // found a non-backslash char. if ((c == 'u') && ((backSlashCnt & 1) == 1)) { if (--bufpos < 0) bufpos = bufsize - 1; break; } backup(backSlashCnt); return '\\'; } } catch(java.io.IOException e) { if (backSlashCnt > 1) backup(backSlashCnt-1); return '\\'; } UpdateLineColumn(c); backSlashCnt++; } // Here, we have seen an odd number of backslash's followed by a 'u' try { while ((c = ReadByte()) == 'u') ++column; buffer[bufpos] = c = (char)(hexval(c) << 12 | hexval(ReadByte()) << 8 | hexval(ReadByte()) << 4 | hexval(ReadByte())); column += 4; } catch(java.io.IOException e) { throw new Error("Invalid escape character at line " + line + " column " + column + "."); } if (backSlashCnt == 1) return c; else { backup(backSlashCnt - 1); return '\\'; } } else { UpdateLineColumn(c); return c; } }
// in src/main/java/net/sourceforge/pmd/lang/ast/SimpleCharStream.java
protected void ExpandBuff(boolean wrapAround) { char[] newbuffer = new char[bufsize + 2048]; int newbufline[] = new int[bufsize + 2048]; int newbufcolumn[] = new int[bufsize + 2048]; try { if (wrapAround) { System.arraycopy(buffer, tokenBegin, newbuffer, 0, bufsize - tokenBegin); System.arraycopy(buffer, 0, newbuffer, bufsize - tokenBegin, bufpos); buffer = newbuffer; System.arraycopy(bufline, tokenBegin, newbufline, 0, bufsize - tokenBegin); System.arraycopy(bufline, 0, newbufline, bufsize - tokenBegin, bufpos); bufline = newbufline; System.arraycopy(bufcolumn, tokenBegin, newbufcolumn, 0, bufsize - tokenBegin); System.arraycopy(bufcolumn, 0, newbufcolumn, bufsize - tokenBegin, bufpos); bufcolumn = newbufcolumn; maxNextCharInd = (bufpos += (bufsize - tokenBegin)); } else { System.arraycopy(buffer, tokenBegin, newbuffer, 0, bufsize - tokenBegin); buffer = newbuffer; System.arraycopy(bufline, tokenBegin, newbufline, 0, bufsize - tokenBegin); bufline = newbufline; System.arraycopy(bufcolumn, tokenBegin, newbufcolumn, 0, bufsize - tokenBegin); bufcolumn = newbufcolumn; maxNextCharInd = (bufpos -= tokenBegin); } } catch (Throwable t) { throw new Error(t.getMessage()); } bufsize += 2048; available = bufsize; tokenBegin = 0; }
3
              
// in src/main/java/net/sourceforge/pmd/lang/ast/JavaCharStream.java
catch (Throwable t) { throw new Error(t.getMessage()); }
// in src/main/java/net/sourceforge/pmd/lang/ast/JavaCharStream.java
catch(java.io.IOException e) { throw new Error("Invalid escape character at line " + line + " column " + column + "."); }
// in src/main/java/net/sourceforge/pmd/lang/ast/SimpleCharStream.java
catch (Throwable t) { throw new Error(t.getMessage()); }
1
              
// in src/main/java/net/sourceforge/pmd/processor/MultiThreadProcessor.java
private void processReports(final List<Renderer> renderers, List<Future<Report>> tasks) throws Error { while (!tasks.isEmpty()) { Future<Report> future = tasks.remove(0); Report report = null; try { report = future.get(); } catch (InterruptedException ie) { Thread.currentThread().interrupt(); future.cancel(true); } catch (ExecutionException ee) { Throwable t = ee.getCause(); if (t instanceof RuntimeException) { throw (RuntimeException) t; } else if (t instanceof Error) { throw (Error) t; } else { throw new IllegalStateException( "PmdRunnable exception", t); } } super.renderReports(renderers, report); } }
(Domain) PMDException 3
              
// in src/main/java/net/sourceforge/pmd/SourceCodeProcessor.java
public void processSourceCode(InputStream sourceCode, RuleSets ruleSets, RuleContext ctx) throws PMDException { try { processSourceCode(new InputStreamReader(sourceCode, configuration.getSourceEncoding()), ruleSets, ctx); } catch (UnsupportedEncodingException uee) { throw new PMDException("Unsupported encoding exception: " + uee.getMessage()); } }
// in src/main/java/net/sourceforge/pmd/SourceCodeProcessor.java
public void processSourceCode(Reader sourceCode, RuleSets ruleSets, RuleContext ctx) throws PMDException { determineLanguage(ctx); // make sure custom XPath functions are initialized Initializer.initialize(); // Coarse check to see if any RuleSet applies to file, will need to do a finer RuleSet specific check later if (ruleSets.applies(ctx.getSourceCodeFile())) { try { processSource(sourceCode, ruleSets,ctx); } catch (ParseException pe) { throw new PMDException("Error while parsing " + ctx.getSourceCodeFilename(), pe); } catch (Exception e) { throw new PMDException("Error while processing " + ctx.getSourceCodeFilename(), e); } finally { IOUtil.closeQuietly(sourceCode); } } }
3
              
// in src/main/java/net/sourceforge/pmd/SourceCodeProcessor.java
catch (UnsupportedEncodingException uee) { throw new PMDException("Unsupported encoding exception: " + uee.getMessage()); }
// in src/main/java/net/sourceforge/pmd/SourceCodeProcessor.java
catch (ParseException pe) { throw new PMDException("Error while parsing " + ctx.getSourceCodeFilename(), pe); }
// in src/main/java/net/sourceforge/pmd/SourceCodeProcessor.java
catch (Exception e) { throw new PMDException("Error while processing " + ctx.getSourceCodeFilename(), e); }
4
              
// in src/main/java/net/sourceforge/pmd/SourceCodeProcessor.java
public void processSourceCode(InputStream sourceCode, RuleSets ruleSets, RuleContext ctx) throws PMDException { try { processSourceCode(new InputStreamReader(sourceCode, configuration.getSourceEncoding()), ruleSets, ctx); } catch (UnsupportedEncodingException uee) { throw new PMDException("Unsupported encoding exception: " + uee.getMessage()); } }
// in src/main/java/net/sourceforge/pmd/SourceCodeProcessor.java
public void processSourceCode(Reader sourceCode, RuleSets ruleSets, RuleContext ctx) throws PMDException { determineLanguage(ctx); // make sure custom XPath functions are initialized Initializer.initialize(); // Coarse check to see if any RuleSet applies to file, will need to do a finer RuleSet specific check later if (ruleSets.applies(ctx.getSourceCodeFile())) { try { processSource(sourceCode, ruleSets,ctx); } catch (ParseException pe) { throw new PMDException("Error while parsing " + ctx.getSourceCodeFilename(), pe); } catch (Exception e) { throw new PMDException("Error while processing " + ctx.getSourceCodeFilename(), e); } finally { IOUtil.closeQuietly(sourceCode); } } }
// in src/main/java/net/sourceforge/pmd/benchmark/Benchmarker.java
public static void main(String[] args) throws RuleSetNotFoundException, IOException, PMDException { String targetjdk = findOptionalStringValue(args, "--targetjdk", "1.4"); Language language = Language.JAVA; LanguageVersion languageVersion = language.getVersion(targetjdk); if (languageVersion == null) { languageVersion = language.getDefaultVersion(); } String srcDir = findOptionalStringValue(args, "--source-directory", "/usr/local/java/src/java/lang/"); List<DataSource> dataSources = FileUtil.collectFiles(srcDir, new LanguageFilenameFilter(language)); boolean debug = findBooleanSwitch(args, "--debug"); boolean parseOnly = findBooleanSwitch(args, "--parse-only"); if (debug) { System.out.println("Using " +language.getName() + " " + languageVersion.getVersion()); } if (parseOnly) { Parser parser = PMD.parserFor(languageVersion, null); parseStress(parser, dataSources, debug); } else { String ruleset = findOptionalStringValue(args, "--ruleset", ""); if (debug) { System.out.println("Checking directory " + srcDir); } Set<RuleDuration> results = new TreeSet<RuleDuration>(); RuleSetFactory factory = new RuleSetFactory(); if (StringUtil.isNotEmpty(ruleset)) { stress(languageVersion, factory.createRuleSet(ruleset), dataSources, results, debug); } else { Iterator<RuleSet> i = factory.getRegisteredRuleSets(); while (i.hasNext()) { stress(languageVersion, i.next(), dataSources, results, debug); } } TextReport report = new TextReport(); report.generate(results, System.err); } }
// in src/main/java/net/sourceforge/pmd/benchmark/Benchmarker.java
private static void stress(LanguageVersion languageVersion, RuleSet ruleSet, List<DataSource> dataSources, Set<RuleDuration> results, boolean debug) throws PMDException, IOException { for (Rule rule: ruleSet.getRules()) { if (debug) { System.out.println("Starting " + rule.getName()); } RuleSet working = new RuleSet(); working.addRule(rule); RuleSets ruleSets = new RuleSets(working); PMDConfiguration config = new PMDConfiguration(); config.setDefaultLanguageVersion(languageVersion); RuleContext ctx = new RuleContext(); long start = System.currentTimeMillis(); Reader reader = null; for (DataSource dataSource: dataSources) { reader = new InputStreamReader(dataSource.getInputStream()); ctx.setSourceCodeFilename(dataSource.getNiceFileName(false, null)); new SourceCodeProcessor(config).processSourceCode(reader, ruleSets, ctx); IOUtil.closeQuietly(reader); } long end = System.currentTimeMillis(); long elapsed = end - start; results.add(new RuleDuration(elapsed, rule)); if (debug) { System.out.println("Done timing " + rule.getName() + "; elapsed time was " + elapsed); } } }
(Lib) FileNotFoundException 2
              
// in src/main/java/net/sourceforge/pmd/cpd/CPD.java
private void addDirectory(String dir, boolean recurse) throws IOException { if (!(new File(dir)).exists()) { throw new FileNotFoundException("Couldn't find directory " + dir); } FileFinder finder = new FileFinder(); // TODO - could use SourceFileSelector here add(finder.findFilesFrom(dir, configuration.filenameFilter(), recurse)); }
// in src/main/java/net/sourceforge/pmd/renderers/XSLTRenderer.java
Override public void start() throws IOException { // We keep the inital writer to put the final html output this.outputWriter = getWriter(); // We use a new one to store the XML... Writer w = new StringWriter(); setWriter(w); // If don't find the xsl no need to bother doing the all report, // so we check this here... InputStream xslt = null; File file = new File(this.xsltFilename); if (file.exists() && file.canRead()) { xslt = new FileInputStream(file); } else { xslt = this.getClass().getResourceAsStream(xsltFilename); } if (xslt == null) { throw new FileNotFoundException("Can't file XSLT sheet :" + xsltFilename); } this.prepareTransformer(xslt); // Now we build the XML file super.start(); }
0 2
              
// in src/main/java/net/sourceforge/pmd/lang/java/rule/strings/AvoidDuplicateLiteralsRule.java
private LineNumberReader getLineReader() throws FileNotFoundException { return new LineNumberReader(new BufferedReader(new FileReader(getProperty(EXCEPTION_FILE_DESCRIPTOR)))); }
// in src/main/java/net/sourceforge/pmd/renderers/TextColorRenderer.java
protected Reader getReader(String sourceFile) throws FileNotFoundException { return new FileReader(new File(sourceFile)); }
(Lib) NoSuchElementException 2
              
// in src/main/java/net/sourceforge/pmd/lang/ast/xpath/NodeIterator.java
public Node next() { if (node == null) { throw new NoSuchElementException(); } Node ret = node; node = getNextNode(node); return ret; }
// in src/main/java/net/sourceforge/pmd/util/CompoundIterator.java
public T next() { Iterator<T> iterator = getNextIterator(); if (iterator != null) { return iterator.next(); } else { throw new NoSuchElementException(); } }
0 0
(Lib) IndexOutOfBoundsException 1
              
// in src/main/java/net/sourceforge/pmd/lang/ast/xpath/AttributeAxisIterator.java
public Attribute next() { if (currObj == null) { throw new IndexOutOfBoundsException(); } Attribute ret = currObj; currObj = getNextAttribute(); return ret; }
0 0
(Lib) NoSuchFieldException 1
              
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
private static Field myGetField(Class<?> type, String name) throws NoSuchFieldException { // Scan the type hierarchy just like Class.getField(String) using // Class.getDeclaredField(String) try { return type.getDeclaredField(name); } catch (NoSuchFieldException e) { // Try the super interfaces for (Class<?> superInterface : type.getInterfaces()) { try { return myGetField(superInterface, name); } catch (NoSuchFieldException e2) { // Okay } } // Try the super classes if (type.getSuperclass() != null) { return myGetField(type.getSuperclass(), name); } else { throw new NoSuchFieldException(type.getName() + "." + name); } } }
1
              
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
catch (NoSuchFieldException e) { // Try the super interfaces for (Class<?> superInterface : type.getInterfaces()) { try { return myGetField(superInterface, name); } catch (NoSuchFieldException e2) { // Okay } } // Try the super classes if (type.getSuperclass() != null) { return myGetField(type.getSuperclass(), name); } else { throw new NoSuchFieldException(type.getName() + "." + name); } }
1
              
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
private static Field myGetField(Class<?> type, String name) throws NoSuchFieldException { // Scan the type hierarchy just like Class.getField(String) using // Class.getDeclaredField(String) try { return type.getDeclaredField(name); } catch (NoSuchFieldException e) { // Try the super interfaces for (Class<?> superInterface : type.getInterfaces()) { try { return myGetField(superInterface, name); } catch (NoSuchFieldException e2) { // Okay } } // Try the super classes if (type.getSuperclass() != null) { return myGetField(type.getSuperclass(), name); } else { throw new NoSuchFieldException(type.getName() + "." + name); } } }
(Lib) NoSuchMethodException 1
              
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
private static Method myGetMethod(Class<?> type, String name, Class<?>... parameterTypes) throws NoSuchMethodException { // Scan the type hierarchy just like Class.getMethod(String, Class[]) // using Class.getDeclaredMethod(String, Class[]) // System.out.println("type: " + type); // System.out.println("name: " + name); // System.out // .println("parameterTypes: " + Arrays.toString(parameterTypes)); try { // System.out.println("Checking getDeclaredMethod"); // for (Method m : type.getDeclaredMethods()) { // System.out.println("\t" + m); // } return type.getDeclaredMethod(name, parameterTypes); } catch (NoSuchMethodException e) { try { // Try the super classes if (type.getSuperclass() != null) { // System.out.println("Checking super: " // + type.getSuperclass()); return myGetMethod(type.getSuperclass(), name, parameterTypes); } } catch (NoSuchMethodException e2) { // Okay } // Try the super interfaces for (Class<?> superInterface : type.getInterfaces()) { try { // System.out.println("Checking super interface: " // + superInterface); return myGetMethod(superInterface, name, parameterTypes); } catch (NoSuchMethodException e3) { // Okay } } throw new NoSuchMethodException(type.getName() + '.' + getMethodSignature(name, parameterTypes)); } }
1
              
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
catch (NoSuchMethodException e) { try { // Try the super classes if (type.getSuperclass() != null) { // System.out.println("Checking super: " // + type.getSuperclass()); return myGetMethod(type.getSuperclass(), name, parameterTypes); } } catch (NoSuchMethodException e2) { // Okay } // Try the super interfaces for (Class<?> superInterface : type.getInterfaces()) { try { // System.out.println("Checking super interface: " // + superInterface); return myGetMethod(superInterface, name, parameterTypes); } catch (NoSuchMethodException e3) { // Okay } } throw new NoSuchMethodException(type.getName() + '.' + getMethodSignature(name, parameterTypes)); }
1
              
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
private static Method myGetMethod(Class<?> type, String name, Class<?>... parameterTypes) throws NoSuchMethodException { // Scan the type hierarchy just like Class.getMethod(String, Class[]) // using Class.getDeclaredMethod(String, Class[]) // System.out.println("type: " + type); // System.out.println("name: " + name); // System.out // .println("parameterTypes: " + Arrays.toString(parameterTypes)); try { // System.out.println("Checking getDeclaredMethod"); // for (Method m : type.getDeclaredMethods()) { // System.out.println("\t" + m); // } return type.getDeclaredMethod(name, parameterTypes); } catch (NoSuchMethodException e) { try { // Try the super classes if (type.getSuperclass() != null) { // System.out.println("Checking super: " // + type.getSuperclass()); return myGetMethod(type.getSuperclass(), name, parameterTypes); } } catch (NoSuchMethodException e2) { // Okay } // Try the super interfaces for (Class<?> superInterface : type.getInterfaces()) { try { // System.out.println("Checking super interface: " // + superInterface); return myGetMethod(superInterface, name, parameterTypes); } catch (NoSuchMethodException e3) { // Okay } } throw new NoSuchMethodException(type.getName() + '.' + getMethodSignature(name, parameterTypes)); } }
(Domain) ReportException 1
              
// in src/main/java/net/sourceforge/pmd/cpd/FileReporter.java
public void report(String content) throws ReportException { try { Writer writer = null; try { OutputStream outputStream; if (reportFile == null) { outputStream = System.out; } else { outputStream = new FileOutputStream(reportFile); } writer = new BufferedWriter(new OutputStreamWriter(outputStream, encoding)); writer.write(content); } finally { IOUtil.closeQuietly(writer); } } catch (IOException ioe) { throw new ReportException(ioe); } }
1
              
// in src/main/java/net/sourceforge/pmd/cpd/FileReporter.java
catch (IOException ioe) { throw new ReportException(ioe); }
2
              
// in src/main/java/net/sourceforge/pmd/cpd/CPDTask.java
private void report(CPD cpd) throws ReportException { if (!cpd.getMatches().hasNext()) { log("No duplicates over " + minimumTokenCount + " tokens found", Project.MSG_INFO); } Renderer renderer = createRenderer(); FileReporter reporter; if (outputFile == null) { reporter = new FileReporter(encoding); } else if (outputFile.isAbsolute()) { reporter = new FileReporter(outputFile, encoding); } else { reporter = new FileReporter(new File(getProject().getBaseDir(), outputFile.toString()), encoding); } reporter.report(renderer.render(cpd.getMatches())); }
// in src/main/java/net/sourceforge/pmd/cpd/FileReporter.java
public void report(String content) throws ReportException { try { Writer writer = null; try { OutputStream outputStream; if (reportFile == null) { outputStream = System.out; } else { outputStream = new FileOutputStream(reportFile); } writer = new BufferedWriter(new OutputStreamWriter(outputStream, encoding)); writer.write(content); } finally { IOUtil.closeQuietly(writer); } } catch (IOException ioe) { throw new ReportException(ioe); } }
(Domain) SequenceException 1
              
// in src/main/java/net/sourceforge/pmd/lang/dfa/Linker.java
public void computePaths() throws LinkerException, SequenceException { // Returns true if there are more sequences, computes the first and // the last index of the sequence. SequenceChecker sc = new SequenceChecker(braceStack); while (!sc.run()) { if (sc.getFirstIndex() < 0 || sc.getLastIndex() < 0) { throw new SequenceException("computePaths(): return index < 0"); } StackObject firstStackObject = braceStack.get(sc.getFirstIndex()); switch (firstStackObject.getType()) { case NodeType.IF_EXPR: int x = sc.getLastIndex() - sc.getFirstIndex(); if (x == 2) { this.computeIf(sc.getFirstIndex(), sc.getFirstIndex() + 1, sc.getLastIndex()); } else if (x == 1) { this.computeIf(sc.getFirstIndex(), sc.getLastIndex()); } else { System.out.println("Error - computePaths 1"); } break; case NodeType.WHILE_EXPR: this.computeWhile(sc.getFirstIndex(), sc.getLastIndex()); break; case NodeType.SWITCH_START: this.computeSwitch(sc.getFirstIndex(), sc.getLastIndex()); break; case NodeType.FOR_INIT: case NodeType.FOR_EXPR: case NodeType.FOR_UPDATE: case NodeType.FOR_BEFORE_FIRST_STATEMENT: this.computeFor(sc.getFirstIndex(), sc.getLastIndex()); break; case NodeType.DO_BEFORE_FIRST_STATEMENT: this.computeDo(sc.getFirstIndex(), sc.getLastIndex()); break; default: } for (int y = sc.getLastIndex(); y >= sc.getFirstIndex(); y--) { braceStack.remove(y); } } while (!continueBreakReturnStack.isEmpty()) { StackObject stackObject = continueBreakReturnStack.get(0); DataFlowNode node = stackObject.getDataFlowNode(); switch (stackObject.getType()) { case NodeType.THROW_STATEMENT: // do the same like a return case NodeType.RETURN_STATEMENT: // remove all children (should contain only one child) node.removePathToChild(node.getChildren().get(0)); DataFlowNode lastNode = node.getFlow().get(node.getFlow().size() - 1); node.addPathToChild(lastNode); continueBreakReturnStack.remove(0); break; case NodeType.BREAK_STATEMENT: DataFlowNode last = getNodeToBreakStatement(node); node.removePathToChild(node.getChildren().get(0)); node.addPathToChild(last); continueBreakReturnStack.remove(0); break; case NodeType.CONTINUE_STATEMENT: //List cList = node.getFlow(); /* traverse up the tree and find the first loop start node */ /* for(int i = cList.indexOf(node)-1;i>=0;i--) { IDataFlowNode n = (IDataFlowNode)cList.get(i); if(n.isType(NodeType.FOR_UPDATE) || n.isType(NodeType.FOR_EXPR) || n.isType(NodeType.WHILE_EXPR)) { */ /* * while(..) { * while(...) { * ... * } * continue; * } * * Without this Expression he continues the second * WHILE loop. The continue statement and the while loop * have to be in different scopes. * * TODO An error occurs if "continue" is even nested in * scopes other than local loop scopes, like "if". * The result is, that the data flow isn't build right * and the pathfinder runs in invinity loop. * */ /* if(n.getNode().getScope().equals(node.getNode().getScope())) { System.err.println("equals"); continue; } else { System.err.println("don't equals"); } //remove all children (should contain only one child) node.removePathToChild((IDataFlowNode)node.getChildren().get(0)); node.addPathToChild(n); cbrStack.remove(0); break; }else if(n.isType(NodeType.DO_BEFOR_FIRST_STATEMENT)) { IDataFlowNode inode = (IDataFlowNode)n.getFlow().get(n.getIndex()1); for(int j=0;j<inode.getParents().size();j) { IDataFlowNode parent = (IDataFlowNode)inode.getParents().get(j); if(parent.isType(NodeType.DO_EXPR)) { node.removePathToChild((IDataFlowNode)node.getChildren().get(0)); node.addPathToChild(parent); cbrStack.remove(0); break; } } break; } } */ continueBreakReturnStack.remove(0); // delete this statement if you uncomment the stuff above break; default: // Do nothing break; } } }
0 1
              
// in src/main/java/net/sourceforge/pmd/lang/dfa/Linker.java
public void computePaths() throws LinkerException, SequenceException { // Returns true if there are more sequences, computes the first and // the last index of the sequence. SequenceChecker sc = new SequenceChecker(braceStack); while (!sc.run()) { if (sc.getFirstIndex() < 0 || sc.getLastIndex() < 0) { throw new SequenceException("computePaths(): return index < 0"); } StackObject firstStackObject = braceStack.get(sc.getFirstIndex()); switch (firstStackObject.getType()) { case NodeType.IF_EXPR: int x = sc.getLastIndex() - sc.getFirstIndex(); if (x == 2) { this.computeIf(sc.getFirstIndex(), sc.getFirstIndex() + 1, sc.getLastIndex()); } else if (x == 1) { this.computeIf(sc.getFirstIndex(), sc.getLastIndex()); } else { System.out.println("Error - computePaths 1"); } break; case NodeType.WHILE_EXPR: this.computeWhile(sc.getFirstIndex(), sc.getLastIndex()); break; case NodeType.SWITCH_START: this.computeSwitch(sc.getFirstIndex(), sc.getLastIndex()); break; case NodeType.FOR_INIT: case NodeType.FOR_EXPR: case NodeType.FOR_UPDATE: case NodeType.FOR_BEFORE_FIRST_STATEMENT: this.computeFor(sc.getFirstIndex(), sc.getLastIndex()); break; case NodeType.DO_BEFORE_FIRST_STATEMENT: this.computeDo(sc.getFirstIndex(), sc.getLastIndex()); break; default: } for (int y = sc.getLastIndex(); y >= sc.getFirstIndex(); y--) { braceStack.remove(y); } } while (!continueBreakReturnStack.isEmpty()) { StackObject stackObject = continueBreakReturnStack.get(0); DataFlowNode node = stackObject.getDataFlowNode(); switch (stackObject.getType()) { case NodeType.THROW_STATEMENT: // do the same like a return case NodeType.RETURN_STATEMENT: // remove all children (should contain only one child) node.removePathToChild(node.getChildren().get(0)); DataFlowNode lastNode = node.getFlow().get(node.getFlow().size() - 1); node.addPathToChild(lastNode); continueBreakReturnStack.remove(0); break; case NodeType.BREAK_STATEMENT: DataFlowNode last = getNodeToBreakStatement(node); node.removePathToChild(node.getChildren().get(0)); node.addPathToChild(last); continueBreakReturnStack.remove(0); break; case NodeType.CONTINUE_STATEMENT: //List cList = node.getFlow(); /* traverse up the tree and find the first loop start node */ /* for(int i = cList.indexOf(node)-1;i>=0;i--) { IDataFlowNode n = (IDataFlowNode)cList.get(i); if(n.isType(NodeType.FOR_UPDATE) || n.isType(NodeType.FOR_EXPR) || n.isType(NodeType.WHILE_EXPR)) { */ /* * while(..) { * while(...) { * ... * } * continue; * } * * Without this Expression he continues the second * WHILE loop. The continue statement and the while loop * have to be in different scopes. * * TODO An error occurs if "continue" is even nested in * scopes other than local loop scopes, like "if". * The result is, that the data flow isn't build right * and the pathfinder runs in invinity loop. * */ /* if(n.getNode().getScope().equals(node.getNode().getScope())) { System.err.println("equals"); continue; } else { System.err.println("don't equals"); } //remove all children (should contain only one child) node.removePathToChild((IDataFlowNode)node.getChildren().get(0)); node.addPathToChild(n); cbrStack.remove(0); break; }else if(n.isType(NodeType.DO_BEFOR_FIRST_STATEMENT)) { IDataFlowNode inode = (IDataFlowNode)n.getFlow().get(n.getIndex()1); for(int j=0;j<inode.getParents().size();j) { IDataFlowNode parent = (IDataFlowNode)inode.getParents().get(j); if(parent.isType(NodeType.DO_EXPR)) { node.removePathToChild((IDataFlowNode)node.getChildren().get(0)); node.addPathToChild(parent); cbrStack.remove(0); break; } } break; } } */ continueBreakReturnStack.remove(0); // delete this statement if you uncomment the stuff above break; default: // Do nothing break; } } }
(Domain) StartAndEndTagMismatchException 1
              
// 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); } } }
0 0
(Lib) IOException 3
              
// in src/main/java/net/sourceforge/pmd/lang/ast/JavaCharStream.java
static final int hexval(char c) throws java.io.IOException { switch(c) { case '0' : return 0; case '1' : return 1; case '2' : return 2; case '3' : return 3; case '4' : return 4; case '5' : return 5; case '6' : return 6; case '7' : return 7; case '8' : return 8; case '9' : return 9; case 'a' : case 'A' : return 10; case 'b' : case 'B' : return 11; case 'c' : case 'C' : return 12; case 'd' : case 'D' : return 13; case 'e' : case 'E' : return 14; case 'f' : case 'F' : return 15; } throw new java.io.IOException(); // Should never come here }
// in src/main/java/net/sourceforge/pmd/lang/ast/JavaCharStream.java
protected void FillBuff() throws java.io.IOException { int i; if (maxNextCharInd == 4096) maxNextCharInd = nextCharInd = 0; try { if ((i = inputStream.read(nextCharBuf, maxNextCharInd, 4096 - maxNextCharInd)) == -1) { inputStream.close(); throw new java.io.IOException(); } else maxNextCharInd += i; return; } catch(java.io.IOException e) { if (bufpos != 0) { --bufpos; backup(0); } else { bufline[bufpos] = line; bufcolumn[bufpos] = column; } throw e; } }
// in src/main/java/net/sourceforge/pmd/lang/ast/SimpleCharStream.java
protected void FillBuff() throws java.io.IOException { if (maxNextCharInd == available) { if (available == bufsize) { if (tokenBegin > 2048) { bufpos = maxNextCharInd = 0; available = tokenBegin; } else if (tokenBegin < 0) bufpos = maxNextCharInd = 0; else ExpandBuff(false); } else if (available > tokenBegin) available = bufsize; else if ((tokenBegin - available) < 2048) ExpandBuff(true); else available = tokenBegin; } int i; try { if ((i = inputStream.read(buffer, maxNextCharInd, available - maxNextCharInd)) == -1) { inputStream.close(); throw new java.io.IOException(); } else maxNextCharInd += i; return; } catch(java.io.IOException e) { --bufpos; backup(0); if (tokenBegin == -1) tokenBegin = bufpos; throw e; } }
0 62
              
// in src/main/java/net/sourceforge/pmd/cpd/CPDTask.java
private void tokenizeFiles(CPD cpd) throws IOException { for (FileSet fileSet: filesets) { DirectoryScanner directoryScanner = fileSet.getDirectoryScanner(getProject()); String[] includedFiles = directoryScanner.getIncludedFiles(); for (int i = 0; i < includedFiles.length; i++) { File file = new File(directoryScanner.getBasedir() + System.getProperty("file.separator") + includedFiles[i]); log("Tokenizing " + file.getAbsolutePath(), Project.MSG_VERBOSE); cpd.add(file); } } }
// in src/main/java/net/sourceforge/pmd/cpd/CPD.java
public void add(File file) throws IOException { add(1, file); }
// in src/main/java/net/sourceforge/pmd/cpd/CPD.java
public void addAllInDirectory(String dir) throws IOException { addDirectory(dir, false); }
// in src/main/java/net/sourceforge/pmd/cpd/CPD.java
public void addRecursively(String dir) throws IOException { addDirectory(dir, true); }
// in src/main/java/net/sourceforge/pmd/cpd/CPD.java
public void add(List<File> files) throws IOException { for (File f: files) { add(files.size(), f); } }
// in src/main/java/net/sourceforge/pmd/cpd/CPD.java
private void addDirectory(String dir, boolean recurse) throws IOException { if (!(new File(dir)).exists()) { throw new FileNotFoundException("Couldn't find directory " + dir); } FileFinder finder = new FileFinder(); // TODO - could use SourceFileSelector here add(finder.findFilesFrom(dir, configuration.filenameFilter(), recurse)); }
// in src/main/java/net/sourceforge/pmd/cpd/CPD.java
private void add(int fileCount, File file) throws IOException { if (configuration.skipDuplicates()) { // TODO refactor this thing into a separate class String signature = file.getName() + '_' + file.length(); if (current.contains(signature)) { System.err.println("Skipping " + file.getAbsolutePath() + " since it appears to be a duplicate file and --skip-duplicate-files is set"); return; } current.add(signature); } if (!file.getCanonicalPath().equals(new File(file.getAbsolutePath()).getCanonicalPath())) { System.err.println("Skipping " + file + " since it appears to be a symlink"); return; } listener.addedFile(fileCount, file); SourceCode sourceCode = configuration.sourceCodeFor(file); configuration.tokenizer().tokenize(sourceCode, tokens); source.put(sourceCode.getFileName(), sourceCode); }
// in src/main/java/net/sourceforge/pmd/lang/dfa/report/ReportHTMLPrintVisitor.java
private void write(String filename, StringBuilder buf) throws IOException { BufferedWriter bw = new BufferedWriter(new FileWriter(new File(baseDir + FILE_SEPARATOR + filename))); bw.write(buf.toString(), 0, buf.length()); IOUtil.closeQuietly(bw); }
// in src/main/java/net/sourceforge/pmd/lang/ast/JavaCharStream.java
static final int hexval(char c) throws java.io.IOException { switch(c) { case '0' : return 0; case '1' : return 1; case '2' : return 2; case '3' : return 3; case '4' : return 4; case '5' : return 5; case '6' : return 6; case '7' : return 7; case '8' : return 8; case '9' : return 9; case 'a' : case 'A' : return 10; case 'b' : case 'B' : return 11; case 'c' : case 'C' : return 12; case 'd' : case 'D' : return 13; case 'e' : case 'E' : return 14; case 'f' : case 'F' : return 15; } throw new java.io.IOException(); // Should never come here }
// in src/main/java/net/sourceforge/pmd/lang/ast/JavaCharStream.java
protected void FillBuff() throws java.io.IOException { int i; if (maxNextCharInd == 4096) maxNextCharInd = nextCharInd = 0; try { if ((i = inputStream.read(nextCharBuf, maxNextCharInd, 4096 - maxNextCharInd)) == -1) { inputStream.close(); throw new java.io.IOException(); } else maxNextCharInd += i; return; } catch(java.io.IOException e) { if (bufpos != 0) { --bufpos; backup(0); } else { bufline[bufpos] = line; bufcolumn[bufpos] = column; } throw e; } }
// in src/main/java/net/sourceforge/pmd/lang/ast/JavaCharStream.java
protected char ReadByte() throws java.io.IOException { if (++nextCharInd >= maxNextCharInd) FillBuff(); return nextCharBuf[nextCharInd]; }
// in src/main/java/net/sourceforge/pmd/lang/ast/JavaCharStream.java
public char BeginToken() throws java.io.IOException { if (inBuf > 0) { --inBuf; if (++bufpos == bufsize) bufpos = 0; tokenBegin = bufpos; return buffer[bufpos]; } tokenBegin = 0; bufpos = -1; return readChar(); }
// in src/main/java/net/sourceforge/pmd/lang/ast/JavaCharStream.java
public char readChar() throws java.io.IOException { if (inBuf > 0) { --inBuf; if (++bufpos == bufsize) bufpos = 0; return buffer[bufpos]; } char c; if (++bufpos == available) AdjustBuffSize(); if ((buffer[bufpos] = c = ReadByte()) == '\\') { UpdateLineColumn(c); int backSlashCnt = 1; for (;;) // Read all the backslashes { if (++bufpos == available) AdjustBuffSize(); try { if ((buffer[bufpos] = c = ReadByte()) != '\\') { UpdateLineColumn(c); // found a non-backslash char. if ((c == 'u') && ((backSlashCnt & 1) == 1)) { if (--bufpos < 0) bufpos = bufsize - 1; break; } backup(backSlashCnt); return '\\'; } } catch(java.io.IOException e) { if (backSlashCnt > 1) backup(backSlashCnt-1); return '\\'; } UpdateLineColumn(c); backSlashCnt++; } // Here, we have seen an odd number of backslash's followed by a 'u' try { while ((c = ReadByte()) == 'u') ++column; buffer[bufpos] = c = (char)(hexval(c) << 12 | hexval(ReadByte()) << 8 | hexval(ReadByte()) << 4 | hexval(ReadByte())); column += 4; } catch(java.io.IOException e) { throw new Error("Invalid escape character at line " + line + " column " + column + "."); } if (backSlashCnt == 1) return c; else { backup(backSlashCnt - 1); return '\\'; } } else { UpdateLineColumn(c); return c; } }
// in src/main/java/net/sourceforge/pmd/lang/ast/SimpleCharStream.java
protected void FillBuff() throws java.io.IOException { if (maxNextCharInd == available) { if (available == bufsize) { if (tokenBegin > 2048) { bufpos = maxNextCharInd = 0; available = tokenBegin; } else if (tokenBegin < 0) bufpos = maxNextCharInd = 0; else ExpandBuff(false); } else if (available > tokenBegin) available = bufsize; else if ((tokenBegin - available) < 2048) ExpandBuff(true); else available = tokenBegin; } int i; try { if ((i = inputStream.read(buffer, maxNextCharInd, available - maxNextCharInd)) == -1) { inputStream.close(); throw new java.io.IOException(); } else maxNextCharInd += i; return; } catch(java.io.IOException e) { --bufpos; backup(0); if (tokenBegin == -1) tokenBegin = bufpos; throw e; } }
// in src/main/java/net/sourceforge/pmd/lang/ast/SimpleCharStream.java
public char BeginToken() throws java.io.IOException { tokenBegin = -1; char c = readChar(); tokenBegin = bufpos; return c; }
// in src/main/java/net/sourceforge/pmd/lang/ast/SimpleCharStream.java
public char readChar() throws java.io.IOException { if (inBuf > 0) { --inBuf; if (++bufpos == bufsize) bufpos = 0; return buffer[bufpos]; } if (++bufpos >= maxNextCharInd) FillBuff(); char c = buffer[bufpos]; UpdateLineColumn(c); return c; }
// in src/main/java/net/sourceforge/pmd/benchmark/Benchmarker.java
public static void main(String[] args) throws RuleSetNotFoundException, IOException, PMDException { String targetjdk = findOptionalStringValue(args, "--targetjdk", "1.4"); Language language = Language.JAVA; LanguageVersion languageVersion = language.getVersion(targetjdk); if (languageVersion == null) { languageVersion = language.getDefaultVersion(); } String srcDir = findOptionalStringValue(args, "--source-directory", "/usr/local/java/src/java/lang/"); List<DataSource> dataSources = FileUtil.collectFiles(srcDir, new LanguageFilenameFilter(language)); boolean debug = findBooleanSwitch(args, "--debug"); boolean parseOnly = findBooleanSwitch(args, "--parse-only"); if (debug) { System.out.println("Using " +language.getName() + " " + languageVersion.getVersion()); } if (parseOnly) { Parser parser = PMD.parserFor(languageVersion, null); parseStress(parser, dataSources, debug); } else { String ruleset = findOptionalStringValue(args, "--ruleset", ""); if (debug) { System.out.println("Checking directory " + srcDir); } Set<RuleDuration> results = new TreeSet<RuleDuration>(); RuleSetFactory factory = new RuleSetFactory(); if (StringUtil.isNotEmpty(ruleset)) { stress(languageVersion, factory.createRuleSet(ruleset), dataSources, results, debug); } else { Iterator<RuleSet> i = factory.getRegisteredRuleSets(); while (i.hasNext()) { stress(languageVersion, i.next(), dataSources, results, debug); } } TextReport report = new TextReport(); report.generate(results, System.err); } }
// in src/main/java/net/sourceforge/pmd/benchmark/Benchmarker.java
private static void parseStress(Parser parser, List<DataSource> dataSources, boolean debug) throws IOException { long start = System.currentTimeMillis(); for (DataSource dataSource: dataSources) { parser.parse( dataSource.getNiceFileName(false, null), new InputStreamReader(dataSource.getInputStream() ) ); } if (debug) { long end = System.currentTimeMillis(); long elapsed = end - start; System.out.println("That took " + elapsed + " ms"); } }
// in src/main/java/net/sourceforge/pmd/benchmark/Benchmarker.java
private static void stress(LanguageVersion languageVersion, RuleSet ruleSet, List<DataSource> dataSources, Set<RuleDuration> results, boolean debug) throws PMDException, IOException { for (Rule rule: ruleSet.getRules()) { if (debug) { System.out.println("Starting " + rule.getName()); } RuleSet working = new RuleSet(); working.addRule(rule); RuleSets ruleSets = new RuleSets(working); PMDConfiguration config = new PMDConfiguration(); config.setDefaultLanguageVersion(languageVersion); RuleContext ctx = new RuleContext(); long start = System.currentTimeMillis(); Reader reader = null; for (DataSource dataSource: dataSources) { reader = new InputStreamReader(dataSource.getInputStream()); ctx.setSourceCodeFilename(dataSource.getNiceFileName(false, null)); new SourceCodeProcessor(config).processSourceCode(reader, ruleSets, ctx); IOUtil.closeQuietly(reader); } long end = System.currentTimeMillis(); long elapsed = end - start; results.add(new RuleDuration(elapsed, rule)); if (debug) { System.out.println("Done timing " + rule.getName() + "; elapsed time was " + elapsed); } } }
// in src/main/java/net/sourceforge/pmd/renderers/CSVRenderer.java
Override public void start() throws IOException { csvWriter().writeTitles(getWriter()); }
// in src/main/java/net/sourceforge/pmd/renderers/CSVRenderer.java
Override public void renderFileViolations(Iterator<RuleViolation> violations) throws IOException { csvWriter().writeData(getWriter(), violations); }
// in src/main/java/net/sourceforge/pmd/renderers/AbstractIncrementingRenderer.java
public void start() throws IOException { }
// in src/main/java/net/sourceforge/pmd/renderers/AbstractIncrementingRenderer.java
public void renderFileReport(Report report) throws IOException { Iterator<RuleViolation> violations = report.iterator(); if (violations.hasNext()) { renderFileViolations(violations); getWriter().flush(); } for (Iterator<Report.ProcessingError> i = report.errors(); i.hasNext();) { errors.add(i.next()); } if (showSuppressedViolations) { suppressed.addAll(report.getSuppressedRuleViolations()); } }
// in src/main/java/net/sourceforge/pmd/renderers/AbstractIncrementingRenderer.java
public void end() throws IOException { }
// in src/main/java/net/sourceforge/pmd/renderers/EmacsRenderer.java
Override public void renderFileViolations(Iterator<RuleViolation> violations) throws IOException { Writer writer = getWriter(); StringBuilder buf = new StringBuilder(); while (violations.hasNext()) { RuleViolation rv = violations.next(); buf.setLength(0); buf.append(rv.getFilename()); buf.append(':').append(Integer.toString(rv.getBeginLine())); buf.append(": ").append(rv.getDescription()).append(EOL); writer.write(buf.toString()); } }
// in src/main/java/net/sourceforge/pmd/renderers/XMLRenderer.java
Override public void start() throws IOException { Writer writer = getWriter(); StringBuilder buf = new StringBuilder(500); buf.append("<?xml version=\"1.0\" encoding=\"" + encoding + "\"?>").append(PMD.EOL); createVersionAttr(buf); createTimestampAttr(buf); // FIXME: elapsed time not available until the end of the processing //buf.append(createTimeElapsedAttr(report)); buf.append('>').append(PMD.EOL); writer.write(buf.toString()); }
// in src/main/java/net/sourceforge/pmd/renderers/XMLRenderer.java
Override public void renderFileViolations(Iterator<RuleViolation> violations) throws IOException { Writer writer = getWriter(); StringBuilder buf = new StringBuilder(500); String filename = null; // rule violations while (violations.hasNext()) { buf.setLength(0); RuleViolation rv = violations.next(); if (!rv.getFilename().equals(filename)) { // New File if (filename != null) {// Not first file ? buf.append("</file>").append(PMD.EOL); } filename = rv.getFilename(); buf.append("<file name=\""); StringUtil.appendXmlEscaped(buf, filename); buf.append("\">").append(PMD.EOL); } buf.append("<violation beginline=\"").append(rv.getBeginLine()); buf.append("\" endline=\"").append(rv.getEndLine()); buf.append("\" begincolumn=\"").append(rv.getBeginColumn()); buf.append("\" endcolumn=\"").append(rv.getEndColumn()); buf.append("\" rule=\""); StringUtil.appendXmlEscaped(buf, rv.getRule().getName()); buf.append("\" ruleset=\""); StringUtil.appendXmlEscaped(buf, rv.getRule().getRuleSetName()); buf.append('"'); maybeAdd("package", rv.getPackageName(), buf); maybeAdd("class", rv.getClassName(), buf); maybeAdd("method", rv.getMethodName(), buf); maybeAdd("variable", rv.getVariableName(), buf); maybeAdd("externalInfoUrl", rv.getRule().getExternalInfoUrl(), buf); buf.append(" priority=\""); buf.append(rv.getRule().getPriority().getPriority()); buf.append("\">").append(PMD.EOL); StringUtil.appendXmlEscaped(buf, rv.getDescription()); buf.append(PMD.EOL); buf.append("</violation>"); buf.append(PMD.EOL); writer.write(buf.toString()); } if (filename != null) { // Not first file ? writer.write("</file>"); writer.write(PMD.EOL); } }
// in src/main/java/net/sourceforge/pmd/renderers/XMLRenderer.java
Override public void end() throws IOException { Writer writer = getWriter(); StringBuilder buf = new StringBuilder(500); // errors for (Report.ProcessingError pe : errors) { buf.setLength(0); buf.append("<error ").append("filename=\""); StringUtil.appendXmlEscaped(buf, pe.getFile()); buf.append("\" msg=\""); StringUtil.appendXmlEscaped(buf, pe.getMsg()); buf.append("\"/>").append(PMD.EOL); writer.write(buf.toString()); } // suppressed violations if (showSuppressedViolations) { for (Report.SuppressedViolation s : suppressed) { buf.setLength(0); buf.append("<suppressedviolation ").append("filename=\""); StringUtil.appendXmlEscaped(buf, s.getRuleViolation().getFilename()); buf.append("\" suppressiontype=\""); StringUtil.appendXmlEscaped(buf, s.suppressedByNOPMD() ? "nopmd" : "annotation"); buf.append("\" msg=\""); StringUtil.appendXmlEscaped(buf, s.getRuleViolation().getDescription()); buf.append("\" usermsg=\""); StringUtil.appendXmlEscaped(buf, s.getUserMessage() == null ? "" : s.getUserMessage()); buf.append("\"/>").append(PMD.EOL); writer.write(buf.toString()); } } writer.write("</pmd>" + PMD.EOL); }
// in src/main/java/net/sourceforge/pmd/renderers/AbstractAccumulatingRenderer.java
public void start() throws IOException { report = new Report(); }
// in src/main/java/net/sourceforge/pmd/renderers/AbstractAccumulatingRenderer.java
public void renderFileReport(Report report) throws IOException { this.report.merge(report); }
// in src/main/java/net/sourceforge/pmd/renderers/VBHTMLRenderer.java
Override public void start() throws IOException { getWriter().write(header()); }
// in src/main/java/net/sourceforge/pmd/renderers/VBHTMLRenderer.java
Override public void renderFileViolations(Iterator<RuleViolation> violations) throws IOException { if (!violations.hasNext()) { return; } Writer writer = getWriter(); StringBuilder sb = new StringBuilder(500); String filename = null; String lineSep = PMD.EOL; boolean colorize = false; while (violations.hasNext()) { sb.setLength(0); RuleViolation rv = violations.next(); if (!rv.getFilename().equals(filename)) { // New File if (filename != null) { sb.append("</table></br>"); colorize = false; } filename = rv.getFilename(); sb.append("<table border=\"0\" width=\"80%\">"); sb.append("<tr id=TableHeader><td colspan=\"2\"><font class=title>&nbsp;").append(filename).append( "</font></tr>"); sb.append(lineSep); } if (colorize) { sb.append("<tr id=RowColor1>"); } else { sb.append("<tr id=RowColor2>"); } colorize = !colorize; sb.append("<td width=\"50\" align=\"right\"><font class=body>" + rv.getBeginLine() + "&nbsp;&nbsp;&nbsp;</font></td>"); sb.append("<td><font class=body>" + rv.getDescription() + "</font></td>"); sb.append("</tr>"); sb.append(lineSep); writer.write(sb.toString()); } if (filename != null) { writer.write("</table>"); } }
// in src/main/java/net/sourceforge/pmd/renderers/VBHTMLRenderer.java
Override public void end() throws IOException { Writer writer = getWriter(); StringBuilder sb = new StringBuilder(); writer.write("<br>"); // output the problems if (!errors.isEmpty()) { sb.setLength(0); sb.append("<table border=\"0\" width=\"80%\">"); sb.append("<tr id=TableHeader><td><font class=title>&nbsp;Problems found</font></td></tr>"); boolean colorize = false; for (Report.ProcessingError error : errors) { if (colorize) { sb.append("<tr id=RowColor1>"); } else { sb.append("<tr id=RowColor2>"); } colorize = !colorize; sb.append("<td><font class=body>").append(error).append("\"</font></td></tr>"); } sb.append("</table>"); writer.write(sb.toString()); } writer.write(footer()); }
// in src/main/java/net/sourceforge/pmd/renderers/HTMLRenderer.java
public void renderBody(Writer writer, Report report) throws IOException { writer.write("<center><h3>PMD report</h3></center>"); writer.write("<center><h3>Problems found</h3></center>"); writer.write("<table align=\"center\" cellspacing=\"0\" cellpadding=\"3\"><tr>" + PMD.EOL + "<th>#</th><th>File</th><th>Line</th><th>Problem</th></tr>" + PMD.EOL); setWriter(writer); renderFileReport(report); writer.write("</table>"); glomProcessingErrors(writer, errors); if (showSuppressedViolations) { glomSuppressions(writer, suppressed); } }
// in src/main/java/net/sourceforge/pmd/renderers/HTMLRenderer.java
Override public void start() throws IOException { Writer writer = getWriter(); writer.write("<html><head><title>PMD</title></head><body>" + PMD.EOL); writer.write("<center><h3>PMD report</h3></center>"); writer.write("<center><h3>Problems found</h3></center>"); writer.write("<table align=\"center\" cellspacing=\"0\" cellpadding=\"3\"><tr>" + PMD.EOL + "<th>#</th><th>File</th><th>Line</th><th>Problem</th></tr>" + PMD.EOL); }
// in src/main/java/net/sourceforge/pmd/renderers/HTMLRenderer.java
Override public void renderFileViolations(Iterator<RuleViolation> violations) throws IOException { Writer writer = getWriter(); glomRuleViolations(writer, violations); }
// in src/main/java/net/sourceforge/pmd/renderers/HTMLRenderer.java
Override public void end() throws IOException { Writer writer = getWriter(); writer.write("</table>"); glomProcessingErrors(writer, errors); if (showSuppressedViolations) { glomSuppressions(writer, suppressed); } writer.write("</body></html>" + PMD.EOL); }
// in src/main/java/net/sourceforge/pmd/renderers/HTMLRenderer.java
private void glomRuleViolations(Writer writer, Iterator<RuleViolation> violations) throws IOException { StringBuilder buf = new StringBuilder(500); while (violations.hasNext()) { RuleViolation rv = violations.next(); buf.setLength(0); buf.append("<tr"); if (colorize) { buf.append(" bgcolor=\"lightgrey\""); } colorize = !colorize; buf.append("> " + PMD.EOL); buf.append("<td align=\"center\">" + violationCount + "</td>" + PMD.EOL); buf.append("<td width=\"*%\">" + maybeWrap(rv.getFilename(), linePrefix == null ? "" : linePrefix + Integer.toString(rv.getBeginLine())) + "</td>" + PMD.EOL); buf.append("<td align=\"center\" width=\"5%\">" + Integer.toString(rv.getBeginLine()) + "</td>" + PMD.EOL); String d = StringUtil.htmlEncode(rv.getDescription()); String infoUrl = rv.getRule().getExternalInfoUrl(); if (StringUtil.isNotEmpty(infoUrl)) { d = "<a href=\"" + infoUrl + "\">" + d + "</a>"; } buf.append("<td width=\"*\">" + d + "</td>" + PMD.EOL); buf.append("</tr>" + PMD.EOL); writer.write(buf.toString()); violationCount++; } }
// in src/main/java/net/sourceforge/pmd/renderers/HTMLRenderer.java
private void glomProcessingErrors(Writer writer, List<Report.ProcessingError> errors) throws IOException { if (errors.isEmpty()) return; writer.write("<hr/>"); writer.write("<center><h3>Processing errors</h3></center>"); writer.write("<table align=\"center\" cellspacing=\"0\" cellpadding=\"3\"><tr>" + PMD.EOL + "<th>File</th><th>Problem</th></tr>" + PMD.EOL); StringBuffer buf = new StringBuffer(500); boolean colorize = true; for (Report.ProcessingError pe : errors) { buf.setLength(0); buf.append("<tr"); if (colorize) { buf.append(" bgcolor=\"lightgrey\""); } colorize = !colorize; buf.append("> " + PMD.EOL); buf.append("<td>" + pe.getFile() + "</td>" + PMD.EOL); buf.append("<td>" + pe.getMsg() + "</td>" + PMD.EOL); buf.append("</tr>" + PMD.EOL); writer.write(buf.toString()); } writer.write("</table>"); }
// in src/main/java/net/sourceforge/pmd/renderers/HTMLRenderer.java
private void glomSuppressions(Writer writer, List<Report.SuppressedViolation> suppressed) throws IOException { if (suppressed.isEmpty()) return; writer.write("<hr/>"); writer.write("<center><h3>Suppressed warnings</h3></center>"); writer.write("<table align=\"center\" cellspacing=\"0\" cellpadding=\"3\"><tr>" + PMD.EOL + "<th>File</th><th>Line</th><th>Rule</th><th>NOPMD or Annotation</th><th>Reason</th></tr>" + PMD.EOL); StringBuilder buf = new StringBuilder(500); boolean colorize = true; for (Report.SuppressedViolation sv : suppressed) { buf.setLength(0); buf.append("<tr"); if (colorize) { buf.append(" bgcolor=\"lightgrey\""); } colorize = !colorize; buf.append("> " + PMD.EOL); buf.append("<td align=\"left\">" + sv.getRuleViolation().getFilename() + "</td>" + PMD.EOL); buf.append("<td align=\"center\">" + sv.getRuleViolation().getBeginLine() + "</td>" + PMD.EOL); buf.append("<td align=\"center\">" + sv.getRuleViolation().getRule().getName() + "</td>" + PMD.EOL); buf.append("<td align=\"center\">" + (sv.suppressedByNOPMD() ? "NOPMD" : "Annotation") + "</td>" + PMD.EOL); buf.append("<td align=\"center\">" + (sv.getUserMessage() == null ? "" : sv.getUserMessage()) + "</td>" + PMD.EOL); buf.append("</tr>" + PMD.EOL); writer.write(buf.toString()); } writer.write("</table>"); }
// in src/main/java/net/sourceforge/pmd/renderers/SummaryHTMLRenderer.java
Override public void end() throws IOException { writer.write("<html><head><title>PMD</title></head><body>" + PMD.EOL); renderSummary(); writer.write("<h2><center>Detail</h2></center>"); writer.write("<table align=\"center\" cellspacing=\"0\" cellpadding=\"3\"><tr>" + PMD.EOL); new HTMLRenderer(properties).renderBody(writer, report); writer.write("</table></body></html>" + PMD.EOL); }
// in src/main/java/net/sourceforge/pmd/renderers/SummaryHTMLRenderer.java
public void renderSummary() throws IOException { StringBuilder buf = new StringBuilder(500); buf.append("<h2><center>Summary</h2></center>"); buf.append("<table align=\"center\" cellspacing=\"0\" cellpadding=\"3\">"); buf.append("<th>Rule name</th>"); buf.append("<th>Number of violations</th>"); writer.write(buf.toString()); Map<String, Integer> summary = report.getSummary(); for (Map.Entry<String, Integer> entry : summary.entrySet()) { String ruleName = entry.getKey(); buf.setLength(0); buf.append("<tr>"); buf.append("<td>" + ruleName + "</td>"); buf.append("<td align=center>" + entry.getValue().intValue() + "</td>"); buf.append("</tr>"); writer.write(buf.toString()); } writer.write("</table>"); }
// in src/main/java/net/sourceforge/pmd/renderers/CSVWriter.java
public void writeTitles(Writer writer) throws IOException { StringBuilder buf = new StringBuilder(300); for (int i=0; i<columns.size()-1; i++) { quoteAndCommify(buf, columns.get(i).title); } quote(buf, columns.get(columns.size()-1).title); buf.append(lineSeparator); writer.write(buf.toString()); }
// in src/main/java/net/sourceforge/pmd/renderers/CSVWriter.java
public void writeData(Writer writer, Iterator<T> items) throws IOException { int count = 1; StringBuilder buf = new StringBuilder(300); T rv; final int lastColumnIdx = columns.size()-1; while (items.hasNext()) { buf.setLength(0); rv = items.next(); for (int i=0; i<lastColumnIdx; i++) { quoteAndCommify(buf, columns.get(i).accessor.get(count, rv, separator)); } quote(buf, columns.get(lastColumnIdx).accessor.get(count, rv, separator)); buf.append(lineSeparator); writer.write(buf.toString()); count++; } }
// in src/main/java/net/sourceforge/pmd/renderers/TextColorRenderer.java
Override public void end() throws IOException { StringBuffer buf = new StringBuffer(500); buf.append(PMD.EOL); initializeColorsIfSupported(); String lastFile = null; int numberOfErrors = 0; int numberOfWarnings = 0; for (Iterator<RuleViolation> i = report.iterator(); i.hasNext();) { buf.setLength(0); numberOfWarnings++; RuleViolation rv = i.next(); if (!rv.getFilename().equals(lastFile)) { lastFile = rv.getFilename(); buf.append(this.yellowBold + "*" + this.colorReset + " file: " + this.whiteBold + this.getRelativePath(lastFile) + this.colorReset + PMD.EOL); } buf.append(this.green + " src: " + this.cyan + lastFile.substring(lastFile.lastIndexOf(File.separator) + 1) + this.colorReset + ":" + this.cyan + rv.getBeginLine() + (rv.getEndLine() == -1 ? "" : ":" + rv.getEndLine()) + this.colorReset + PMD.EOL); buf.append(this.green + " rule: " + this.colorReset + rv.getRule().getName() + PMD.EOL); buf.append(this.green + " msg: " + this.colorReset + rv.getDescription() + PMD.EOL); buf.append(this.green + " code: " + this.colorReset + this.getLine(lastFile, rv.getBeginLine()) + PMD.EOL + PMD.EOL); writer.write(buf.toString()); } writer.write(PMD.EOL + PMD.EOL); writer.write("Summary:" + PMD.EOL + PMD.EOL); Map<String, Integer> summary = report.getCountSummary(); for (Map.Entry<String, Integer> entry : summary.entrySet()) { buf.setLength(0); String key = entry.getKey(); buf.append(key).append(" : ").append(entry.getValue()).append(PMD.EOL); writer.write(buf.toString()); } for (Iterator<Report.ProcessingError> i = report.errors(); i.hasNext();) { buf.setLength(0); numberOfErrors++; Report.ProcessingError error = i.next(); if (error.getFile().equals(lastFile)) { lastFile = error.getFile(); buf.append(this.redBold + "*" + this.colorReset + " file: " + this.whiteBold + this.getRelativePath(lastFile) + this.colorReset + PMD.EOL); } buf.append(this.green + " err: " + this.cyan + error.getMsg() + this.colorReset + PMD.EOL + PMD.EOL); writer.write(buf.toString()); } // adding error message count, if any if (numberOfErrors > 0) { writer.write(this.redBold + "*" + this.colorReset + " errors: " + this.whiteBold + numberOfWarnings + this.colorReset + PMD.EOL); } writer.write(this.yellowBold + "*" + this.colorReset + " warnings: " + this.whiteBold + numberOfWarnings + this.colorReset + PMD.EOL); }
// in src/main/java/net/sourceforge/pmd/renderers/TextPadRenderer.java
Override public void renderFileViolations(Iterator<RuleViolation> violations) throws IOException { Writer writer = getWriter(); StringBuffer buf = new StringBuffer(); while (violations.hasNext()) { RuleViolation rv = violations.next(); buf.setLength(0); //Filename buf.append(rv.getFilename() + "("); //Line number buf.append(Integer.toString(rv.getBeginLine())).append(", "); //Name of violated rule buf.append(rv.getRule().getName()).append("): "); //Specific violation message buf.append(rv.getDescription()).append(PMD.EOL); writer.write(buf.toString()); } }
// in src/main/java/net/sourceforge/pmd/renderers/IDEAJRenderer.java
Override public void renderFileViolations(Iterator<RuleViolation> violations) throws IOException { Writer writer = getWriter(); if (".method".equals(classAndMethodName)) { // working on a directory tree renderDirectoy(writer, violations); } else { // working on one file renderFile(writer, violations); } }
// in src/main/java/net/sourceforge/pmd/renderers/IDEAJRenderer.java
private void renderDirectoy(Writer writer, Iterator<RuleViolation> violations) throws IOException { SourcePath sourcePath = new SourcePath(this.sourcePath); StringBuilder buf = new StringBuilder(); while (violations.hasNext()) { buf.setLength(0); RuleViolation rv = violations.next(); buf.append(rv.getDescription() + PMD.EOL); buf.append(" at ").append( getFullyQualifiedClassName(rv.getFilename(), sourcePath)).append(".method("); buf.append(getSimpleFileName(rv.getFilename())).append(':') .append(rv.getBeginLine()).append(')').append(PMD.EOL); writer.write(buf.toString()); } }
// in src/main/java/net/sourceforge/pmd/renderers/IDEAJRenderer.java
private void renderFile(Writer writer, Iterator<RuleViolation> violations) throws IOException { StringBuilder buf = new StringBuilder(); while (violations.hasNext()) { buf.setLength(0); RuleViolation rv = violations.next(); buf.append(rv.getDescription()).append(PMD.EOL); buf.append(" at ").append(classAndMethodName).append('(') .append(fileName).append(':') .append(rv.getBeginLine()).append(')').append(PMD.EOL); writer.write(buf.toString()); } }
// in src/main/java/net/sourceforge/pmd/renderers/YAHTMLRenderer.java
Override public void end() throws IOException { ReportTree tree = report.getViolationTree(); tree.getRootNode().accept(new ReportHTMLPrintVisitor(outputDir == null ? ".." : outputDir)); writer.write("<h3 align=\"center\">The HTML files are located " + (outputDir == null ? "above the project directory" : "in '" + outputDir + '\'') + ".</h3>" + PMD.EOL); }
// in src/main/java/net/sourceforge/pmd/renderers/XSLTRenderer.java
Override public void start() throws IOException { // We keep the inital writer to put the final html output this.outputWriter = getWriter(); // We use a new one to store the XML... Writer w = new StringWriter(); setWriter(w); // If don't find the xsl no need to bother doing the all report, // so we check this here... InputStream xslt = null; File file = new File(this.xsltFilename); if (file.exists() && file.canRead()) { xslt = new FileInputStream(file); } else { xslt = this.getClass().getResourceAsStream(xsltFilename); } if (xslt == null) { throw new FileNotFoundException("Can't file XSLT sheet :" + xsltFilename); } this.prepareTransformer(xslt); // Now we build the XML file super.start(); }
// in src/main/java/net/sourceforge/pmd/renderers/XSLTRenderer.java
Override public void end() throws IOException { // First we finish the XML report super.end(); // Now we transform it using XSLT Writer writer = super.getWriter(); if (writer instanceof StringWriter) { StringWriter w = (StringWriter) writer; StringBuffer buffer = w.getBuffer(); // FIXME: If we change the encoding in XMLRenderer, we should change this too ! InputStream xml = new ByteArrayInputStream(buffer.toString().getBytes(this.encoding)); Document doc = this.getDocument(xml); this.transform(doc); } else { // Should not happen ! new RuntimeException("Wrong writer").printStackTrace(); } }
// in src/main/java/net/sourceforge/pmd/renderers/TextRenderer.java
Override public void start() throws IOException { }
// in src/main/java/net/sourceforge/pmd/renderers/TextRenderer.java
Override public void renderFileViolations(Iterator<RuleViolation> violations) throws IOException { Writer writer = getWriter(); StringBuilder buf = new StringBuilder(); while (violations.hasNext()) { buf.setLength(0); RuleViolation rv = violations.next(); buf.append(rv.getFilename()); buf.append(':').append(Integer.toString(rv.getBeginLine())); buf.append('\t').append(rv.getDescription()).append(PMD.EOL); writer.write(buf.toString()); } }
// in src/main/java/net/sourceforge/pmd/renderers/TextRenderer.java
Override public void end() throws IOException { Writer writer = getWriter(); StringBuilder buf = new StringBuilder(500); if (!errors.isEmpty()) { for (Report.ProcessingError error : errors) { buf.setLength(0); buf.append(error.getFile()); buf.append("\t-\t").append(error.getMsg()).append(PMD.EOL); writer.write(buf.toString()); } } for (Report.SuppressedViolation excluded : suppressed) { buf.setLength(0); buf.append(excluded.getRuleViolation().getRule().getName()); buf.append(" rule violation suppressed by "); buf.append(excluded.suppressedByNOPMD() ? "//NOPMD" : "Annotation"); buf.append(" in ").append(excluded.getRuleViolation().getFilename()).append(PMD.EOL); writer.write(buf.toString()); } }
// in src/main/java/net/sourceforge/pmd/ant/Formatter.java
private Writer getToFileWriter(String baseDir) throws IOException { if (!toFile.isAbsolute()) { return new BufferedWriter(new FileWriter(new File(baseDir + System.getProperty("file.separator") + toFile.getPath()))); } return new BufferedWriter(new FileWriter(toFile)); }
// in src/main/java/net/sourceforge/pmd/PMDConfiguration.java
public void prependClasspath(String classpath) throws IOException { if (classLoader == null) { classLoader = PMDConfiguration.class.getClassLoader(); } if (classpath != null) { classLoader = new ClasspathClassLoader(classpath, classLoader); } }
// in src/main/java/net/sourceforge/pmd/util/ClasspathClassLoader.java
private static URL[] initURLs(String classpath) throws IOException { if (classpath == null) { throw new IllegalArgumentException("classpath argument cannot be null"); } final List<URL> urls = new ArrayList<URL>(); if (classpath.startsWith("file://")) { // Treat as file URL addFileURLs(urls, new URL(classpath)); } else { // Treat as classpath addClasspathURLs(urls, classpath); } return urls.toArray(new URL[urls.size()]); }
// in src/main/java/net/sourceforge/pmd/util/ClasspathClassLoader.java
private static void addFileURLs(List<URL> urls, URL fileURL) throws IOException { BufferedReader in = null; try { in = new BufferedReader(new InputStreamReader(fileURL.openStream())); String line; while ((line = in.readLine()) != null) { LOG.log(Level.FINE, "Read classpath entry line: <{0}>", line); line = line.trim(); if (line.length() > 0) { LOG.log(Level.FINE, "Adding classpath entry: <{0}>", line); urls.add(createURLFromPath(line)); } } } finally { IOUtil.closeQuietly(in); } }
// in src/main/java/net/sourceforge/pmd/util/datasource/FileDataSource.java
public InputStream getInputStream() throws IOException { return new FileInputStream(file); }
// in src/main/java/net/sourceforge/pmd/util/datasource/ZipDataSource.java
public InputStream getInputStream() throws IOException { return zipFile.getInputStream(zipEntry); }
Explicit thrown (throw new...): 328/700
Explicit thrown ratio: 46.9%
Builder thrown ratio: 5.6%
Variable thrown ratio: 47.6%
Checked Runtime Total
Domain 9 6 15
Lib 3 195 198
Total 12 201

Caught Exceptions Summary

A (Domain) exception is defined in the application. A (Lib) exception is defined in the JDK or in a library. An exception can be caught, and it happens that the catch block contains a throw (e.g. for wrapping a low-level exception). Hovering over a number triggers showing code snippets from the application code.

Type Exception Caught
(directly)
Caught
with Thrown
(Lib) IOException 126
            
// in src/main/java/net/sourceforge/pmd/dcd/graph/UsageGraphBuilder.java
catch (IOException e) { throw new RuntimeException("For " + name + ": " + e.getMessage(), e); }
// in src/main/java/net/sourceforge/pmd/cpd/GUI.java
catch (IOException e) { error("Couldn't save file" + f.getAbsolutePath(), e); }
// in src/main/java/net/sourceforge/pmd/cpd/GUI.java
catch (IOException t) { t.printStackTrace(); JOptionPane.showMessageDialog(frame, "Halted due to " + t.getClass().getName() + "; " + t.getMessage()); }
// in src/main/java/net/sourceforge/pmd/cpd/CPDTask.java
catch (IOException ioe) { log(ioe.toString(), Project.MSG_ERR); throw new BuildException("IOException during task execution", ioe); }
// in src/main/java/net/sourceforge/pmd/cpd/FileReporter.java
catch (IOException ioe) { throw new ReportException(ioe); }
// in src/main/java/net/sourceforge/pmd/RuleSetFactory.java
catch (IOException ioe) { throw new RuntimeException("Couldn't find " + rulesetsProperties + "; please ensure that the rulesets directory is on the classpath. The current classpath is: " + System.getProperty("java.class.path")); }
// in src/main/java/net/sourceforge/pmd/RuleSetFactory.java
catch (IOException ioe) { return classNotFoundProblem(ioe); }
// in src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/EcmascriptParser.java
catch (final IOException e) { throw new ParseException(e); }
// in src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/DumpFacade.java
catch (IOException e) { throw new RuntimeException("Problem flushing PrintWriter.", e); }
// in src/main/java/net/sourceforge/pmd/lang/xml/ast/XmlParser.java
catch (IOException e) { throw new ParseException(e); }
// in src/main/java/net/sourceforge/pmd/lang/xml/ast/DumpFacade.java
catch (IOException e) { throw new RuntimeException("Problem flushing PrintWriter.", e); }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { return curPos; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { return curPos; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_12(0, active0); return 1; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { return curPos; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_13(0, active0); return 1; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_13(1, active0); return 2; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_13(2, active0); return 3; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_13(3, active0); return 4; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_13(4, active0); return 5; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_13(5, active0); return 6; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_13(6, active0); return 7; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_13(7, active0); return 8; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { return curPos; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_10(0, active0); return 1; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { return curPos; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { return curPos; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_15(0, active0); return 1; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { return curPos; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_6(0, active0); return 1; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_6(1, active0); return 2; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_6(2, active0); return 3; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_6(3, active0); return 4; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_6(4, active0); return 5; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { return curPos; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { return 1; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { return 2; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { return curPos; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_8(0, active0); return 1; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_8(1, active0); return 2; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_8(2, active0); return 3; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { return curPos; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { return curPos; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { return curPos; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { return curPos; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { return curPos; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_11(0, active0); return 1; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { return curPos; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_9(0, active0); return 1; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { return curPos; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_17(0, active0); return 1; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_17(1, active0); return 2; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_17(2, active0); return 3; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_17(3, active0); return 4; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_17(4, active0); return 5; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_17(5, active0); return 6; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_17(6, active0); return 7; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_17(7, active0); return 8; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { return curPos; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjmatchedKind = 0; matchedToken = jjFillToken(); matchedToken.specialToken = specialToken; return matchedToken; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch (java.io.IOException e1) { EOFSeen = true; error_after = curPos <= 1 ? "" : input_stream.GetImage(); if (curChar == '\n' || curChar == '\r') { error_line++; error_column = 0; } else error_column++; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/DumpFacade.java
catch (IOException e) { throw new RuntimeException("Problem flushing PrintWriter.", e); }
// in src/main/java/net/sourceforge/pmd/lang/ast/JavaCharStream.java
catch(java.io.IOException e) { if (bufpos != 0) { --bufpos; backup(0); } else { bufline[bufpos] = line; bufcolumn[bufpos] = column; } throw e; }
// in src/main/java/net/sourceforge/pmd/lang/ast/JavaCharStream.java
catch(java.io.IOException e) { if (backSlashCnt > 1) backup(backSlashCnt-1); return '\\'; }
// in src/main/java/net/sourceforge/pmd/lang/ast/JavaCharStream.java
catch(java.io.IOException e) { throw new Error("Invalid escape character at line " + line + " column " + column + "."); }
// in src/main/java/net/sourceforge/pmd/lang/ast/SimpleCharStream.java
catch(java.io.IOException e) { --bufpos; backup(0); if (tokenBegin == -1) tokenBegin = bufpos; throw e; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_0(0, active0, active1); return 1; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_0(1, active0, active1); return 2; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_0(2, active0, active1); return 3; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_0(3, active0, 0L); return 4; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_0(4, active0, 0L); return 5; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_0(5, active0, 0L); return 6; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_0(6, active0, 0L); return 7; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_0(7, active0, 0L); return 8; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_0(8, active0, 0L); return 9; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_0(9, active0, 0L); return 10; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_0(10, active0, 0L); return 11; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParserTokenManager.java
catch(java.io.IOException e) { return pos + 1; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParserTokenManager.java
catch(java.io.IOException e) { return curPos; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParserTokenManager.java
catch(java.io.IOException e) { return 1; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParserTokenManager.java
catch(java.io.IOException e) { return 1; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParserTokenManager.java
catch(java.io.IOException e) { jjmatchedKind = 0; matchedToken = jjFillToken(); matchedToken.specialToken = specialToken; return matchedToken; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParserTokenManager.java
catch (java.io.IOException e1) { }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParserTokenManager.java
catch (java.io.IOException e1) { EOFSeen = true; error_after = curPos <= 1 ? "" : input_stream.GetImage(); if (curChar == '\n' || curChar == '\r') { error_line++; error_column = 0; } else error_column++; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/DumpFacade.java
catch (IOException e) { throw new RuntimeException("Problem flushing PrintWriter.", e); }
// in src/main/java/net/sourceforge/pmd/lang/java/typeresolution/PMDASMClassLoader.java
catch (IOException e) { dontBother.add(name); throw new ClassNotFoundException(name, e); }
// in src/main/java/net/sourceforge/pmd/lang/java/rule/strings/AvoidDuplicateLiteralsRule.java
catch (IOException ioe) { ioe.printStackTrace(); }
// in src/main/java/net/sourceforge/pmd/lang/cpp/ast/CppParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_0(0, active0, active1, active2); return 1; }
// in src/main/java/net/sourceforge/pmd/lang/cpp/ast/CppParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_0(1, active0, active1, active2); return 2; }
// in src/main/java/net/sourceforge/pmd/lang/cpp/ast/CppParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_0(2, 0L, active1, active2); return 3; }
// in src/main/java/net/sourceforge/pmd/lang/cpp/ast/CppParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_0(3, 0L, active1, active2); return 4; }
// in src/main/java/net/sourceforge/pmd/lang/cpp/ast/CppParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_0(4, 0L, active1, active2); return 5; }
// in src/main/java/net/sourceforge/pmd/lang/cpp/ast/CppParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_0(5, 0L, active1, active2); return 6; }
// in src/main/java/net/sourceforge/pmd/lang/cpp/ast/CppParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_0(6, 0L, active1, 0L); return 7; }
// in src/main/java/net/sourceforge/pmd/lang/cpp/ast/CppParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_0(7, 0L, active1, 0L); return 8; }
// in src/main/java/net/sourceforge/pmd/lang/cpp/ast/CppParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_0(8, 0L, active1, 0L); return 9; }
// in src/main/java/net/sourceforge/pmd/lang/cpp/ast/CppParserTokenManager.java
catch(java.io.IOException e) { return pos + 1; }
// in src/main/java/net/sourceforge/pmd/lang/cpp/ast/CppParserTokenManager.java
catch(java.io.IOException e) { return curPos; }
// in src/main/java/net/sourceforge/pmd/lang/cpp/ast/CppParserTokenManager.java
catch(java.io.IOException e) { return 1; }
// in src/main/java/net/sourceforge/pmd/lang/cpp/ast/CppParserTokenManager.java
catch(java.io.IOException e) { return 2; }
// in src/main/java/net/sourceforge/pmd/lang/cpp/ast/CppParserTokenManager.java
catch(java.io.IOException e) { return 1; }
// in src/main/java/net/sourceforge/pmd/lang/cpp/ast/CppParserTokenManager.java
catch(java.io.IOException e) { return 1; }
// in src/main/java/net/sourceforge/pmd/lang/cpp/ast/CppParserTokenManager.java
catch(java.io.IOException e) { jjmatchedKind = 0; matchedToken = jjFillToken(); return matchedToken; }
// in src/main/java/net/sourceforge/pmd/lang/cpp/ast/CppParserTokenManager.java
catch (java.io.IOException e1) { continue EOFLoop; }
// in src/main/java/net/sourceforge/pmd/lang/cpp/ast/CppParserTokenManager.java
catch (java.io.IOException e1) { }
// in src/main/java/net/sourceforge/pmd/lang/cpp/ast/CppParserTokenManager.java
catch (java.io.IOException e1) { EOFSeen = true; error_after = curPos <= 1 ? "" : input_stream.GetImage(); if (curChar == '\n' || curChar == '\r') { error_line++; error_column = 0; } else error_column++; }
// in src/main/java/net/sourceforge/pmd/processor/AbstractPMDProcessor.java
catch (IOException ioe) { }
// in src/main/java/net/sourceforge/pmd/processor/PmdRunnable.java
catch (IOException ioe) { addErrorAndShutdown(report, ioe, "IOException during processing"); }
// in src/main/java/net/sourceforge/pmd/processor/MonoThreadProcessor.java
catch (IOException ioe) { // unexpected exception: log and stop executor service addError(report, "Unable to read source file", ioe, niceFileName); }
// in src/main/java/net/sourceforge/pmd/renderers/AbstractRenderer.java
catch (IOException e) { throw new IllegalStateException(e); }
// in src/main/java/net/sourceforge/pmd/renderers/TextColorRenderer.java
catch (IOException ioErr) { ioErr.printStackTrace(); }
// in src/main/java/net/sourceforge/pmd/renderers/TextColorRenderer.java
catch (IOException ioErr) { // to avoid further error this.pwd = ""; }
// in src/main/java/net/sourceforge/pmd/renderers/XSLTRenderer.java
catch (IOException e) { e.printStackTrace(); }
// in src/main/java/net/sourceforge/pmd/ant/PMDTask.java
catch (IOException ioe) { throw new BuildException(ioe.getMessage(), ioe); }
// in src/main/java/net/sourceforge/pmd/ant/Formatter.java
catch (IOException ioe) { throw new BuildException(ioe.getMessage(), ioe); }
// in src/main/java/net/sourceforge/pmd/ant/Formatter.java
catch (IOException ioe) { throw new BuildException(ioe.getMessage(), ioe); }
// in src/main/java/net/sourceforge/pmd/PMD.java
catch (IOException e) { LOG.log(Level.FINE, "Couldn't determine version of PMD", e); }
// in src/main/java/net/sourceforge/pmd/PMDParameters.java
catch (IOException e) { throw new IllegalArgumentException("Invalid auxiliary classpath: " + e.getMessage(), e); }
// in src/main/java/net/sourceforge/pmd/util/IOUtil.java
catch (IOException ex) { // ignore }
// in src/main/java/net/sourceforge/pmd/util/IOUtil.java
catch (IOException ex) { // ignore }
// in src/main/java/net/sourceforge/pmd/util/IOUtil.java
catch (IOException ex) { // ignore it }
// in src/main/java/net/sourceforge/pmd/util/IOUtil.java
catch (IOException ex) { //ignore }
// in src/main/java/net/sourceforge/pmd/util/IOUtil.java
catch (IOException e) { throw new IllegalArgumentException(e); }
// in src/main/java/net/sourceforge/pmd/util/FileUtil.java
catch (IOException ze) { throw new RuntimeException("Archive file " + file.getName() + " can't be opened"); }
// in src/main/java/net/sourceforge/pmd/util/designer/Designer.java
catch (IOException e) { e.printStackTrace(); }
// in src/main/java/net/sourceforge/pmd/util/designer/Designer.java
catch (IOException e) { e.printStackTrace(); }
21
            
// in src/main/java/net/sourceforge/pmd/dcd/graph/UsageGraphBuilder.java
catch (IOException e) { throw new RuntimeException("For " + name + ": " + e.getMessage(), e); }
// in src/main/java/net/sourceforge/pmd/cpd/CPDTask.java
catch (IOException ioe) { log(ioe.toString(), Project.MSG_ERR); throw new BuildException("IOException during task execution", ioe); }
// in src/main/java/net/sourceforge/pmd/cpd/FileReporter.java
catch (IOException ioe) { throw new ReportException(ioe); }
// in src/main/java/net/sourceforge/pmd/RuleSetFactory.java
catch (IOException ioe) { throw new RuntimeException("Couldn't find " + rulesetsProperties + "; please ensure that the rulesets directory is on the classpath. The current classpath is: " + System.getProperty("java.class.path")); }
// in src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/EcmascriptParser.java
catch (final IOException e) { throw new ParseException(e); }
// in src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/DumpFacade.java
catch (IOException e) { throw new RuntimeException("Problem flushing PrintWriter.", e); }
// in src/main/java/net/sourceforge/pmd/lang/xml/ast/XmlParser.java
catch (IOException e) { throw new ParseException(e); }
// in src/main/java/net/sourceforge/pmd/lang/xml/ast/DumpFacade.java
catch (IOException e) { throw new RuntimeException("Problem flushing PrintWriter.", e); }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/DumpFacade.java
catch (IOException e) { throw new RuntimeException("Problem flushing PrintWriter.", e); }
// in src/main/java/net/sourceforge/pmd/lang/ast/JavaCharStream.java
catch(java.io.IOException e) { if (bufpos != 0) { --bufpos; backup(0); } else { bufline[bufpos] = line; bufcolumn[bufpos] = column; } throw e; }
// in src/main/java/net/sourceforge/pmd/lang/ast/JavaCharStream.java
catch(java.io.IOException e) { throw new Error("Invalid escape character at line " + line + " column " + column + "."); }
// in src/main/java/net/sourceforge/pmd/lang/ast/SimpleCharStream.java
catch(java.io.IOException e) { --bufpos; backup(0); if (tokenBegin == -1) tokenBegin = bufpos; throw e; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/DumpFacade.java
catch (IOException e) { throw new RuntimeException("Problem flushing PrintWriter.", e); }
// in src/main/java/net/sourceforge/pmd/lang/java/typeresolution/PMDASMClassLoader.java
catch (IOException e) { dontBother.add(name); throw new ClassNotFoundException(name, e); }
// in src/main/java/net/sourceforge/pmd/renderers/AbstractRenderer.java
catch (IOException e) { throw new IllegalStateException(e); }
// in src/main/java/net/sourceforge/pmd/ant/PMDTask.java
catch (IOException ioe) { throw new BuildException(ioe.getMessage(), ioe); }
// in src/main/java/net/sourceforge/pmd/ant/Formatter.java
catch (IOException ioe) { throw new BuildException(ioe.getMessage(), ioe); }
// in src/main/java/net/sourceforge/pmd/ant/Formatter.java
catch (IOException ioe) { throw new BuildException(ioe.getMessage(), ioe); }
// in src/main/java/net/sourceforge/pmd/PMDParameters.java
catch (IOException e) { throw new IllegalArgumentException("Invalid auxiliary classpath: " + e.getMessage(), e); }
// in src/main/java/net/sourceforge/pmd/util/IOUtil.java
catch (IOException e) { throw new IllegalArgumentException(e); }
// in src/main/java/net/sourceforge/pmd/util/FileUtil.java
catch (IOException ze) { throw new RuntimeException("Archive file " + file.getName() + " can't be opened"); }
(Lib) Throwable 116
            
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/ast/JavaCharStream.java
catch (Throwable t) { throw new Error(t.getMessage()); }
// in src/main/java/net/sourceforge/pmd/lang/ast/SimpleCharStream.java
catch (Throwable t) { throw new Error(t.getMessage()); }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/typeresolution/ClassTypeResolver.java
catch (Throwable e) { }
// in src/main/java/net/sourceforge/pmd/lang/java/rule/junit/AbstractJUnitRule.java
catch (Throwable t) { c = null;
// in src/main/java/net/sourceforge/pmd/lang/java/rule/junit/AbstractJUnitRule.java
catch (Throwable t) { c = null; }
// in src/main/java/net/sourceforge/pmd/lang/java/rule/logging/MoreThanOneLoggerRule.java
catch (Throwable t) { c = null; }
// in src/main/java/net/sourceforge/pmd/lang/java/rule/logging/MoreThanOneLoggerRule.java
catch (Throwable t) { c = null; }
329
            
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/ast/JavaCharStream.java
catch (Throwable t) { throw new Error(t.getMessage()); }
// in src/main/java/net/sourceforge/pmd/lang/ast/SimpleCharStream.java
catch (Throwable t) { throw new Error(t.getMessage()); }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
(Domain) LookaheadSuccess 58
            
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
catch(LookaheadSuccess ls) { }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { }
0
(Lib) Exception 21
            
// in src/main/java/net/sourceforge/pmd/cpd/AnyTokenizer.java
catch (Exception ex) { ex.printStackTrace(); }
// in src/main/java/net/sourceforge/pmd/cpd/SourceCode.java
catch (Exception e) { e.printStackTrace(); throw new RuntimeException("Problem while reading " + getFileName() + ":" + e.getMessage()); }
// in src/main/java/net/sourceforge/pmd/cpd/CPD.java
catch (Exception e) { e.printStackTrace(); }
// in src/main/java/net/sourceforge/pmd/cpd/CPDConfiguration.java
catch (Exception e) { System.out.println("Can't find class '" + name + "', defaulting to SimpleRenderer."); }
// in src/main/java/net/sourceforge/pmd/RuleSetFactory.java
catch (Exception ex) { System.out.println("oops"); // debug pt TODO }
// in src/main/java/net/sourceforge/pmd/lang/dfa/report/ReportHTMLPrintVisitor.java
catch (Exception e) { throw new RuntimeException("Error while writing HTML report: " + e.getMessage()); }
// in src/main/java/net/sourceforge/pmd/lang/dfa/report/ReportHTMLPrintVisitor.java
catch (Exception e) { throw new RuntimeException("Error while writing HTML report: " + e.getMessage()); }
// in src/main/java/net/sourceforge/pmd/lang/rule/properties/TypeProperty.java
catch (Exception ex) { throw new IllegalArgumentException(className); }
// in src/main/java/net/sourceforge/pmd/lang/rule/properties/MethodProperty.java
catch (Exception ex) { return null; }
// in src/main/java/net/sourceforge/pmd/lang/rule/properties/factories/BasicPropertyDescriptorFactory.java
catch (Exception ex) { }
// in src/main/java/net/sourceforge/pmd/lang/rule/properties/factories/BasicPropertyDescriptorFactory.java
catch (Exception ex) { }
// in src/main/java/net/sourceforge/pmd/lang/rule/properties/factories/BasicPropertyDescriptorFactory.java
catch (Exception ex) { }
// in src/main/java/net/sourceforge/pmd/lang/rule/properties/factories/BasicPropertyDescriptorFactory.java
catch (Exception ex) { }
// in src/main/java/net/sourceforge/pmd/processor/PmdRunnable.java
catch (Exception e) { e.printStackTrace(); }
// in src/main/java/net/sourceforge/pmd/SourceCodeProcessor.java
catch (Exception e) { throw new PMDException("Error while processing " + ctx.getSourceCodeFilename(), e); }
// in src/main/java/net/sourceforge/pmd/PMD.java
catch (Exception e) { String message = e.getMessage(); if (message != null) { LOG.severe(message); } else { LOG.log(Level.SEVERE, "Exception during processing", e); } LOG.log(Level.FINE, "Exception during processing", e); LOG.info(CommandLineParser.usage()); }
// in src/main/java/net/sourceforge/pmd/PMD.java
catch (Exception e) { System.out.print(CommandLineParser.usage()); System.out.println(e.getMessage()); status = ERROR_STATUS; }
// in src/main/java/net/sourceforge/pmd/util/ResourceLoader.java
catch (Exception e) { return loader.getResourceAsStream(name); }
// in src/main/java/net/sourceforge/pmd/util/designer/Designer.java
catch (Exception e) { e.printStackTrace(); }
// in src/main/java/net/sourceforge/pmd/util/viewer/gui/MainFrame.java
catch (Exception exc) { setStatus(NLS.nls("MAIN.FRAME.EVALUATION.PROBLEM") + " " + exc.toString()); new ParseExceptionHandler(this, exc); }
// in src/main/java/net/sourceforge/pmd/util/datasource/FileDataSource.java
catch (Exception e) { return file.getAbsolutePath(); }
5
            
// in src/main/java/net/sourceforge/pmd/cpd/SourceCode.java
catch (Exception e) { e.printStackTrace(); throw new RuntimeException("Problem while reading " + getFileName() + ":" + e.getMessage()); }
// in src/main/java/net/sourceforge/pmd/lang/dfa/report/ReportHTMLPrintVisitor.java
catch (Exception e) { throw new RuntimeException("Error while writing HTML report: " + e.getMessage()); }
// in src/main/java/net/sourceforge/pmd/lang/dfa/report/ReportHTMLPrintVisitor.java
catch (Exception e) { throw new RuntimeException("Error while writing HTML report: " + e.getMessage()); }
// in src/main/java/net/sourceforge/pmd/lang/rule/properties/TypeProperty.java
catch (Exception ex) { throw new IllegalArgumentException(className); }
// in src/main/java/net/sourceforge/pmd/SourceCodeProcessor.java
catch (Exception e) { throw new PMDException("Error while processing " + ctx.getSourceCodeFilename(), e); }
(Lib) NoSuchMethodException 10
            
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
catch (NoSuchMethodException e) { throw new RuntimeException(e); }
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
catch (NoSuchMethodException e) { try { // Try the super classes if (type.getSuperclass() != null) { // System.out.println("Checking super: " // + type.getSuperclass()); return myGetMethod(type.getSuperclass(), name, parameterTypes); } } catch (NoSuchMethodException e2) { // Okay } // Try the super interfaces for (Class<?> superInterface : type.getInterfaces()) { try { // System.out.println("Checking super interface: " // + superInterface); return myGetMethod(superInterface, name, parameterTypes); } catch (NoSuchMethodException e3) { // Okay } } throw new NoSuchMethodException(type.getName() + '.' + getMethodSignature(name, parameterTypes)); }
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
catch (NoSuchMethodException e2) { // Okay }
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
catch (NoSuchMethodException e3) { // Okay }
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
catch (NoSuchMethodException e) { throw new RuntimeException(e); }
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
catch (NoSuchMethodException e) { }
// in src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/EcmascriptTreeBuilder.java
catch (NoSuchMethodException e) { throw new RuntimeException(e); }
// in src/main/java/net/sourceforge/pmd/renderers/RendererFactory.java
catch (NoSuchMethodException e) { // Ok }
// in src/main/java/net/sourceforge/pmd/renderers/RendererFactory.java
catch (NoSuchMethodException e2) { // Ok }
// in src/main/java/net/sourceforge/pmd/util/ClassUtil.java
catch (NoSuchMethodException ex) { current = current.getSuperclass(); }
4
            
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
catch (NoSuchMethodException e) { throw new RuntimeException(e); }
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
catch (NoSuchMethodException e) { try { // Try the super classes if (type.getSuperclass() != null) { // System.out.println("Checking super: " // + type.getSuperclass()); return myGetMethod(type.getSuperclass(), name, parameterTypes); } } catch (NoSuchMethodException e2) { // Okay } // Try the super interfaces for (Class<?> superInterface : type.getInterfaces()) { try { // System.out.println("Checking super interface: " // + superInterface); return myGetMethod(superInterface, name, parameterTypes); } catch (NoSuchMethodException e3) { // Okay } } throw new NoSuchMethodException(type.getName() + '.' + getMethodSignature(name, parameterTypes)); }
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
catch (NoSuchMethodException e) { throw new RuntimeException(e); }
// in src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/EcmascriptTreeBuilder.java
catch (NoSuchMethodException e) { throw new RuntimeException(e); }
(Lib) ClassNotFoundException 9
            
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
catch (ClassNotFoundException e) { throw new RuntimeException(e); }
// in src/main/java/net/sourceforge/pmd/cpd/LanguageFactory.java
catch (ClassNotFoundException e) { // No class found, returning default implementation // FIXME: There should be somekind of log of this return null; }
// in src/main/java/net/sourceforge/pmd/RuleSetFactory.java
catch (ClassNotFoundException cnfe) { return classNotFoundProblem(cnfe); }
// in src/main/java/net/sourceforge/pmd/lang/java/typeresolution/ClassTypeResolver.java
catch (ClassNotFoundException e) { LOG.log(Level.FINE, "Could not find class " + className + ", due to: " + e.getClass().getName() + ": " + e.getMessage()); }
// in src/main/java/net/sourceforge/pmd/lang/java/typeresolution/ClassTypeResolver.java
catch (ClassNotFoundException e) { myType = processOnDemand(qualifiedName); }
// in src/main/java/net/sourceforge/pmd/lang/java/typeresolution/ClassTypeResolver.java
catch (ClassNotFoundException e) { return false; }
// in src/main/java/net/sourceforge/pmd/lang/java/symboltable/TypeSet.java
catch (ClassNotFoundException cnfe) { }
// in src/main/java/net/sourceforge/pmd/lang/java/symboltable/TypeSet.java
catch (ClassNotFoundException cnfe) { }
// in src/main/java/net/sourceforge/pmd/renderers/RendererFactory.java
catch (ClassNotFoundException e) { throw new IllegalArgumentException("Can't find the custom format " + reportFormat + ": " + e.getClass().getName()); }
2
            
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
catch (ClassNotFoundException e) { throw new RuntimeException(e); }
// in src/main/java/net/sourceforge/pmd/renderers/RendererFactory.java
catch (ClassNotFoundException e) { throw new IllegalArgumentException("Can't find the custom format " + reportFormat + ": " + e.getClass().getName()); }
(Lib) ParserConfigurationException 8
            
// in src/main/java/net/sourceforge/pmd/cpd/XMLRenderer.java
catch (ParserConfigurationException e) { throw new IllegalStateException(e); }
// in src/main/java/net/sourceforge/pmd/RuleSetFactory.java
catch (ParserConfigurationException pce) { return classNotFoundProblem(pce); }
// in src/main/java/net/sourceforge/pmd/lang/xml/ast/XmlParser.java
catch (ParserConfigurationException e) { throw new ParseException(e); }
// in src/main/java/net/sourceforge/pmd/lang/ast/AbstractNode.java
catch (ParserConfigurationException pce) { throw new RuntimeException(pce); }
// in src/main/java/net/sourceforge/pmd/RuleSetWriter.java
catch (ParserConfigurationException e) { throw new RuntimeException(e); }
// in src/main/java/net/sourceforge/pmd/renderers/XSLTRenderer.java
catch (ParserConfigurationException e) { e.printStackTrace(); }
// in src/main/java/net/sourceforge/pmd/util/designer/Designer.java
catch (ParserConfigurationException e) { e.printStackTrace(); }
// in src/main/java/net/sourceforge/pmd/util/designer/Designer.java
catch (ParserConfigurationException e) { e.printStackTrace(); }
4
            
// in src/main/java/net/sourceforge/pmd/cpd/XMLRenderer.java
catch (ParserConfigurationException e) { throw new IllegalStateException(e); }
// in src/main/java/net/sourceforge/pmd/lang/xml/ast/XmlParser.java
catch (ParserConfigurationException e) { throw new ParseException(e); }
// in src/main/java/net/sourceforge/pmd/lang/ast/AbstractNode.java
catch (ParserConfigurationException pce) { throw new RuntimeException(pce); }
// in src/main/java/net/sourceforge/pmd/RuleSetWriter.java
catch (ParserConfigurationException e) { throw new RuntimeException(e); }
(Lib) IllegalAccessException 7
            
// in src/main/java/net/sourceforge/pmd/cpd/LanguageFactory.java
catch (IllegalAccessException e) { e.printStackTrace(); }
// in src/main/java/net/sourceforge/pmd/RuleSetFactory.java
catch (IllegalAccessException iae) { return classNotFoundProblem(iae); }
// in src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/EcmascriptTreeBuilder.java
catch (IllegalAccessException e) { throw new RuntimeException(e); }
// in src/main/java/net/sourceforge/pmd/lang/ast/xpath/Attribute.java
catch (IllegalAccessException iae) { iae.printStackTrace(); }
// in src/main/java/net/sourceforge/pmd/lang/Language.java
catch (IllegalAccessException e) { throw new IllegalStateException("Unable to invoke no-arg constructor for RuleChainVisitor class <" + ruleChainVisitorClass.getName() + ">!"); }
// in src/main/java/net/sourceforge/pmd/RuleChain.java
catch (IllegalAccessException e) { throw new IllegalStateException("Failure to created RuleChainVisitor: " + language.getRuleChainVisitorClass(), e); }
// in src/main/java/net/sourceforge/pmd/renderers/RendererFactory.java
catch (IllegalAccessException e) { throw new IllegalArgumentException("Unable to construct report renderer class: " + e.getLocalizedMessage()); }
4
            
// in src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/EcmascriptTreeBuilder.java
catch (IllegalAccessException e) { throw new RuntimeException(e); }
// in src/main/java/net/sourceforge/pmd/lang/Language.java
catch (IllegalAccessException e) { throw new IllegalStateException("Unable to invoke no-arg constructor for RuleChainVisitor class <" + ruleChainVisitorClass.getName() + ">!"); }
// in src/main/java/net/sourceforge/pmd/RuleChain.java
catch (IllegalAccessException e) { throw new IllegalStateException("Failure to created RuleChainVisitor: " + language.getRuleChainVisitorClass(), e); }
// in src/main/java/net/sourceforge/pmd/renderers/RendererFactory.java
catch (IllegalAccessException e) { throw new IllegalArgumentException("Unable to construct report renderer class: " + e.getLocalizedMessage()); }
(Lib) InstantiationException 6
            
// in src/main/java/net/sourceforge/pmd/cpd/LanguageFactory.java
catch (InstantiationException e) { e.printStackTrace(); }
// in src/main/java/net/sourceforge/pmd/RuleSetFactory.java
catch (InstantiationException ie) { return classNotFoundProblem(ie); }
// in src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/EcmascriptTreeBuilder.java
catch (InstantiationException e) { throw new RuntimeException(e); }
// in src/main/java/net/sourceforge/pmd/lang/Language.java
catch (InstantiationException e) { throw new IllegalStateException("Unable to invoke no-arg constructor for RuleChainVisitor class <" + ruleChainVisitorClass.getName() + ">!"); }
// in src/main/java/net/sourceforge/pmd/RuleChain.java
catch (InstantiationException e) { throw new IllegalStateException("Failure to created RuleChainVisitor: " + language.getRuleChainVisitorClass(), e); }
// in src/main/java/net/sourceforge/pmd/renderers/RendererFactory.java
catch (InstantiationException e) { throw new IllegalArgumentException("Unable to construct report renderer class: " + e.getLocalizedMessage()); }
4
            
// in src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/EcmascriptTreeBuilder.java
catch (InstantiationException e) { throw new RuntimeException(e); }
// in src/main/java/net/sourceforge/pmd/lang/Language.java
catch (InstantiationException e) { throw new IllegalStateException("Unable to invoke no-arg constructor for RuleChainVisitor class <" + ruleChainVisitorClass.getName() + ">!"); }
// in src/main/java/net/sourceforge/pmd/RuleChain.java
catch (InstantiationException e) { throw new IllegalStateException("Failure to created RuleChainVisitor: " + language.getRuleChainVisitorClass(), e); }
// in src/main/java/net/sourceforge/pmd/renderers/RendererFactory.java
catch (InstantiationException e) { throw new IllegalArgumentException("Unable to construct report renderer class: " + e.getLocalizedMessage()); }
(Lib) NumberFormatException 5
            
// in src/main/java/net/sourceforge/pmd/lang/java/typeresolution/ClassTypeResolver.java
catch (NumberFormatException e) { // Bad literal, 'long' requires use of 'l' or 'L' suffix. }
// in src/main/java/net/sourceforge/pmd/lang/java/typeresolution/ClassTypeResolver.java
catch (NumberFormatException e) { // Bad literal, 'float' requires use of 'f' or 'F' suffix. }
// in src/main/java/net/sourceforge/pmd/lang/java/rule/basic/AvoidUsingHardCodedIPRule.java
catch (NumberFormatException e) { // The last part can be a standard IPv4 address. if (i != parts.length - 1 || !isIPv4(firstChar, part)) { return false; } ipv4Mapped = true; }
// in src/main/java/net/sourceforge/pmd/PMDParameters.java
catch (NumberFormatException e) { throw new IllegalArgumentException( "Minimum priority must be a whole number between " + RulePriority.HIGH + " and " + RulePriority.LOW + ", " + priority + " received", e); }
// in src/main/java/net/sourceforge/pmd/PMDParameters.java
catch (NumberFormatException e) { throw new IllegalArgumentException(opt + " parameter must be a whole number, " + s + " received"); }
2
            
// in src/main/java/net/sourceforge/pmd/PMDParameters.java
catch (NumberFormatException e) { throw new IllegalArgumentException( "Minimum priority must be a whole number between " + RulePriority.HIGH + " and " + RulePriority.LOW + ", " + priority + " received", e); }
// in src/main/java/net/sourceforge/pmd/PMDParameters.java
catch (NumberFormatException e) { throw new IllegalArgumentException(opt + " parameter must be a whole number, " + s + " received"); }
(Lib) TransformerException 5
            
// in src/main/java/net/sourceforge/pmd/cpd/XMLRenderer.java
catch (TransformerException e) { throw new IllegalStateException(e); }
// in src/main/java/net/sourceforge/pmd/RuleSetWriter.java
catch (TransformerException e) { throw new RuntimeException(e); }
// in src/main/java/net/sourceforge/pmd/renderers/XSLTRenderer.java
catch (TransformerException e) { e.printStackTrace(); }
// in src/main/java/net/sourceforge/pmd/util/designer/Designer.java
catch (TransformerException e) { e.printStackTrace(); xml = "Error trying to construct XML representation"; }
// in src/main/java/net/sourceforge/pmd/util/designer/Designer.java
catch (TransformerException e) { e.printStackTrace(); }
2
            
// in src/main/java/net/sourceforge/pmd/cpd/XMLRenderer.java
catch (TransformerException e) { throw new IllegalStateException(e); }
// in src/main/java/net/sourceforge/pmd/RuleSetWriter.java
catch (TransformerException e) { throw new RuntimeException(e); }
(Lib) JaxenException 4
            
// in src/main/java/net/sourceforge/pmd/lang/ast/AbstractNode.java
catch (JaxenException e) { throw new RuntimeException("XPath expression " + xpathString + " failed: " + e.getLocalizedMessage(), e); }
// in src/main/java/net/sourceforge/pmd/lang/java/rule/design/PreserveStackTraceRule.java
catch (JaxenException e) { // XPath is valid, this should never happens... throw new IllegalStateException(e); }
// in src/main/java/net/sourceforge/pmd/lang/rule/xpath/JaxenXPathRuleQuery.java
catch (JaxenException ex) { throw new RuntimeException(ex); }
// in src/main/java/net/sourceforge/pmd/lang/rule/xpath/JaxenXPathRuleQuery.java
catch (JaxenException ex) { throw new RuntimeException(ex); }
4
            
// in src/main/java/net/sourceforge/pmd/lang/ast/AbstractNode.java
catch (JaxenException e) { throw new RuntimeException("XPath expression " + xpathString + " failed: " + e.getLocalizedMessage(), e); }
// in src/main/java/net/sourceforge/pmd/lang/java/rule/design/PreserveStackTraceRule.java
catch (JaxenException e) { // XPath is valid, this should never happens... throw new IllegalStateException(e); }
// in src/main/java/net/sourceforge/pmd/lang/rule/xpath/JaxenXPathRuleQuery.java
catch (JaxenException ex) { throw new RuntimeException(ex); }
// in src/main/java/net/sourceforge/pmd/lang/rule/xpath/JaxenXPathRuleQuery.java
catch (JaxenException ex) { throw new RuntimeException(ex); }
(Domain) ParseException 4
            
// in src/main/java/net/sourceforge/pmd/SourceCodeProcessor.java
catch (ParseException pe) { throw new PMDException("Error while parsing " + ctx.getSourceCodeFilename(), pe); }
// in src/main/java/net/sourceforge/pmd/util/designer/Designer.java
catch (ParseException pe) { tn = new ExceptionNode(pe); }
// in src/main/java/net/sourceforge/pmd/util/designer/Designer.java
catch (ParseException pe) { xpathResults.addElement(pe.fillInStackTrace().getMessage()); }
// in src/main/java/net/sourceforge/pmd/util/viewer/gui/MainFrame.java
catch (ParseException exc) { setStatus(NLS.nls("MAIN.FRAME.COMPILATION.PROBLEM") + " " + exc.toString()); new ParseExceptionHandler(this, exc); }
1
            
// in src/main/java/net/sourceforge/pmd/SourceCodeProcessor.java
catch (ParseException pe) { throw new PMDException("Error while parsing " + ctx.getSourceCodeFilename(), pe); }
(Domain) RuleSetNotFoundException 4
            
// in src/main/java/net/sourceforge/pmd/RuleSetFactory.java
catch (RuleSetNotFoundException rsnfe) { return classNotFoundProblem(rsnfe); }
// in src/main/java/net/sourceforge/pmd/RulesetsFactoryUtils.java
catch (RuleSetNotFoundException rsnfe) { LOG.log(Level.SEVERE, "Ruleset not found", rsnfe); throw new IllegalArgumentException(rsnfe); }
// in src/main/java/net/sourceforge/pmd/processor/AbstractPMDProcessor.java
catch (RuleSetNotFoundException rsnfe) { // should not happen: parent already created a ruleset return null; }
// in src/main/java/net/sourceforge/pmd/ant/PMDTask.java
catch (RuleSetNotFoundException e) { throw new BuildException(e.getMessage(), e); }
2
            
// in src/main/java/net/sourceforge/pmd/RulesetsFactoryUtils.java
catch (RuleSetNotFoundException rsnfe) { LOG.log(Level.SEVERE, "Ruleset not found", rsnfe); throw new IllegalArgumentException(rsnfe); }
// in src/main/java/net/sourceforge/pmd/ant/PMDTask.java
catch (RuleSetNotFoundException e) { throw new BuildException(e.getMessage(), e); }
(Lib) RuntimeException 4
            
// in src/main/java/net/sourceforge/pmd/cpd/GUI.java
catch (RuntimeException t) { t.printStackTrace(); JOptionPane.showMessageDialog(frame, "Halted due to " + t.getClass().getName() + "; " + t.getMessage()); }
// in src/main/java/net/sourceforge/pmd/processor/PmdRunnable.java
catch (RuntimeException re) { addErrorAndShutdown(report, re,"RuntimeException during processing"); }
// in src/main/java/net/sourceforge/pmd/processor/MonoThreadProcessor.java
catch (RuntimeException re) { // unexpected exception: log and stop executor service addError(report, "RuntimeException while processing file", re, niceFileName); }
// in src/main/java/net/sourceforge/pmd/ant/PMDTask.java
catch (RuntimeException pmde) { handleError(ctx, errorReport, pmde); }
0
(Lib) SAXException 4
            
// in src/main/java/net/sourceforge/pmd/RuleSetFactory.java
catch (SAXException se) { return classNotFoundProblem(se); }
// in src/main/java/net/sourceforge/pmd/lang/xml/ast/XmlParser.java
catch (SAXException e) { throw new ParseException(e); }
// in src/main/java/net/sourceforge/pmd/renderers/XSLTRenderer.java
catch (SAXException e) { e.printStackTrace(); }
// in src/main/java/net/sourceforge/pmd/util/designer/Designer.java
catch (SAXException e) { e.printStackTrace(); }
1
            
// in src/main/java/net/sourceforge/pmd/lang/xml/ast/XmlParser.java
catch (SAXException e) { throw new ParseException(e); }
(Lib) InvocationTargetException 3
            
// in src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/EcmascriptTreeBuilder.java
catch (InvocationTargetException e) { throw new RuntimeException(e.getTargetException()); }
// in src/main/java/net/sourceforge/pmd/lang/ast/xpath/Attribute.java
catch (InvocationTargetException ite) { ite.printStackTrace(); }
// in src/main/java/net/sourceforge/pmd/renderers/RendererFactory.java
catch (InvocationTargetException e) { throw new IllegalArgumentException("Unable to construct report renderer class: " + e.getTargetException().getLocalizedMessage()); }
2
            
// in src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/EcmascriptTreeBuilder.java
catch (InvocationTargetException e) { throw new RuntimeException(e.getTargetException()); }
// in src/main/java/net/sourceforge/pmd/renderers/RendererFactory.java
catch (InvocationTargetException e) { throw new IllegalArgumentException("Unable to construct report renderer class: " + e.getTargetException().getLocalizedMessage()); }
(Lib) NoClassDefFoundError 3
            
// in src/main/java/net/sourceforge/pmd/cpd/LanguageFactory.java
catch (NoClassDefFoundError e) { // Windows is case insensitive, so it may find the file, even though // the name has a different case. Since Java is case sensitive, it // will not accept the classname inside the file that was found and // will throw a NoClassDefFoundError return null; }
// in src/main/java/net/sourceforge/pmd/lang/java/typeresolution/ClassTypeResolver.java
catch (NoClassDefFoundError e) { LOG.log(Level.WARNING, "Could not find class " + className + ", due to: " + e.getClass().getName() + ": " + e.getMessage()); }
// in src/main/java/net/sourceforge/pmd/lang/java/typeresolution/ClassTypeResolver.java
catch (NoClassDefFoundError e) { myType = processOnDemand(qualifiedName); }
0
(Lib) NoSuchFieldException 3
            
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
catch (NoSuchFieldException e) { throw new RuntimeException(e); }
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
catch (NoSuchFieldException e) { // Try the super interfaces for (Class<?> superInterface : type.getInterfaces()) { try { return myGetField(superInterface, name); } catch (NoSuchFieldException e2) { // Okay } } // Try the super classes if (type.getSuperclass() != null) { return myGetField(type.getSuperclass(), name); } else { throw new NoSuchFieldException(type.getName() + "." + name); } }
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
catch (NoSuchFieldException e2) { // Okay }
2
            
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
catch (NoSuchFieldException e) { throw new RuntimeException(e); }
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
catch (NoSuchFieldException e) { // Try the super interfaces for (Class<?> superInterface : type.getInterfaces()) { try { return myGetField(superInterface, name); } catch (NoSuchFieldException e2) { // Okay } } // Try the super classes if (type.getSuperclass() != null) { return myGetField(type.getSuperclass(), name); } else { throw new NoSuchFieldException(type.getName() + "." + name); } }
(Lib) ClassFormatError 2
            
// in src/main/java/net/sourceforge/pmd/lang/java/typeresolution/ClassTypeResolver.java
catch (ClassFormatError e) { LOG.log(Level.WARNING, "Could not find class " + className + ", due to: " + e.getClass().getName() + ": " + e.getMessage()); }
// in src/main/java/net/sourceforge/pmd/lang/java/typeresolution/ClassTypeResolver.java
catch (ClassFormatError e) { myType = processOnDemand(qualifiedName); }
0
(Domain) PMDException 2
            
// in src/main/java/net/sourceforge/pmd/processor/PmdRunnable.java
catch (PMDException pmde) { LOG.log(Level.FINE, "Error while processing file", pmde.getCause()); addError(report, pmde, fileName); }
// in src/main/java/net/sourceforge/pmd/processor/MonoThreadProcessor.java
catch (PMDException pmde) { LOG.log(Level.FINE, "Error while processing file", pmde.getCause()); report.addError(new Report.ProcessingError(pmde.getMessage(), niceFileName)); }
0
(Lib) XPathException 2
            
// in src/main/java/net/sourceforge/pmd/lang/rule/xpath/SaxonXPathRuleQuery.java
catch (XPathException e) { throw new RuntimeException(super.xpath + " had problem: " + e.getMessage(), e); }
// in src/main/java/net/sourceforge/pmd/lang/rule/xpath/SaxonXPathRuleQuery.java
catch (XPathException e) { throw new RuntimeException(e); }
2
            
// in src/main/java/net/sourceforge/pmd/lang/rule/xpath/SaxonXPathRuleQuery.java
catch (XPathException e) { throw new RuntimeException(super.xpath + " had problem: " + e.getMessage(), e); }
// in src/main/java/net/sourceforge/pmd/lang/rule/xpath/SaxonXPathRuleQuery.java
catch (XPathException e) { throw new RuntimeException(e); }
(Lib) ArrayIndexOutOfBoundsException 1
            
// in src/main/java/net/sourceforge/pmd/RulePriority.java
catch (ArrayIndexOutOfBoundsException e) { return LOW; }
0
(Lib) BadLocationException 1
            
// in src/main/java/net/sourceforge/pmd/util/viewer/gui/SourceCodePanel.java
catch (BadLocationException exc) { throw new IllegalStateException(exc.getMessage()); }
1
            
// in src/main/java/net/sourceforge/pmd/util/viewer/gui/SourceCodePanel.java
catch (BadLocationException exc) { throw new IllegalStateException(exc.getMessage()); }
(Lib) CannotRedoException 1
            
// in src/main/java/net/sourceforge/pmd/util/designer/Designer.java
catch (CannotRedoException e) { }
0
(Lib) CannotUndoException 1
            
// in src/main/java/net/sourceforge/pmd/util/designer/Designer.java
catch (CannotUndoException e) { }
0
(Lib) DOMException 1
            
// in src/main/java/net/sourceforge/pmd/RuleSetWriter.java
catch (DOMException e) { throw new RuntimeException(e); }
1
            
// in src/main/java/net/sourceforge/pmd/RuleSetWriter.java
catch (DOMException e) { throw new RuntimeException(e); }
(Lib) ExecutionException 1
            
// in src/main/java/net/sourceforge/pmd/processor/MultiThreadProcessor.java
catch (ExecutionException ee) { Throwable t = ee.getCause(); if (t instanceof RuntimeException) { throw (RuntimeException) t; } else if (t instanceof Error) { throw (Error) t; } else { throw new IllegalStateException( "PmdRunnable exception", t); } }
3
            
// in src/main/java/net/sourceforge/pmd/processor/MultiThreadProcessor.java
catch (ExecutionException ee) { Throwable t = ee.getCause(); if (t instanceof RuntimeException) { throw (RuntimeException) t; } else if (t instanceof Error) { throw (Error) t; } else { throw new IllegalStateException( "PmdRunnable exception", t); } }
(Lib) FactoryConfigurationError 1
            
// in src/main/java/net/sourceforge/pmd/RuleSetWriter.java
catch (FactoryConfigurationError e) { throw new RuntimeException(e); }
1
            
// in src/main/java/net/sourceforge/pmd/RuleSetWriter.java
catch (FactoryConfigurationError e) { throw new RuntimeException(e); }
(Lib) FileNotFoundException 1
            
// in src/main/java/net/sourceforge/pmd/util/ResourceLoader.java
catch (FileNotFoundException e) { // if the file didn't exist, we wouldn't be here }
0
(Lib) IllegalArgumentException 1
            
// in src/main/java/net/sourceforge/pmd/RuleSetWriter.java
catch (IllegalArgumentException iae) { //ignore it, specific to one parser }
0
(Lib) IndexOutOfBoundsException 1
            
// in src/main/java/net/sourceforge/pmd/lang/dfa/AbstractDataFlowNode.java
catch (IndexOutOfBoundsException e) { e.printStackTrace(); }
0
(Lib) InterruptedException 1
            
// in src/main/java/net/sourceforge/pmd/processor/MultiThreadProcessor.java
catch (InterruptedException ie) { Thread.currentThread().interrupt(); future.cancel(true); }
0
(Domain) LinkerException 1
            
// in src/main/java/net/sourceforge/pmd/lang/java/dfa/StatementAndBraceFinder.java
catch (LinkerException e) { e.printStackTrace(); }
0
(Lib) NoSuchElementException 1
            
// in src/main/java/net/sourceforge/pmd/cpd/AnyTokenizer.java
catch (NoSuchElementException ex) { // done with tokens }
0
(Lib) PatternSyntaxException 1
            
// in src/main/java/net/sourceforge/pmd/util/filter/RegexStringFilter.java
catch (PatternSyntaxException e) { // If the regular expression is invalid, then pattern will be null. }
0
(Domain) ReportException 1
            
// in src/main/java/net/sourceforge/pmd/cpd/CPDTask.java
catch (ReportException re) { re.printStackTrace(); log(re.toString(), Project.MSG_ERR); throw new BuildException("ReportException during task execution", re); }
1
            
// in src/main/java/net/sourceforge/pmd/cpd/CPDTask.java
catch (ReportException re) { re.printStackTrace(); log(re.toString(), Project.MSG_ERR); throw new BuildException("ReportException during task execution", re); }
(Lib) SecurityException 1
            
// in src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/EcmascriptTreeBuilder.java
catch (SecurityException e) { throw new RuntimeException(e); }
1
            
// in src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/EcmascriptTreeBuilder.java
catch (SecurityException e) { throw new RuntimeException(e); }
(Domain) SequenceException 1
            
// in src/main/java/net/sourceforge/pmd/lang/java/dfa/StatementAndBraceFinder.java
catch (SequenceException e) { e.printStackTrace(); }
0
(Domain) TokenMgrError 1
            
// in src/main/java/net/sourceforge/pmd/cpd/CPPTokenizer.java
catch (TokenMgrError err) { err.printStackTrace(); System.err.println("Skipping " + sourceCode.getFileName() + " due to parse error"); tokenEntries.add(TokenEntry.getEOF()); }
0
(Lib) TransformerConfigurationException 1
            
// in src/main/java/net/sourceforge/pmd/renderers/XSLTRenderer.java
catch (TransformerConfigurationException e) { e.printStackTrace(); }
0
(Lib) UnsupportedEncodingException 1
            
// in src/main/java/net/sourceforge/pmd/SourceCodeProcessor.java
catch (UnsupportedEncodingException uee) { throw new PMDException("Unsupported encoding exception: " + uee.getMessage()); }
1
            
// in src/main/java/net/sourceforge/pmd/SourceCodeProcessor.java
catch (UnsupportedEncodingException uee) { throw new PMDException("Unsupported encoding exception: " + uee.getMessage()); }

Exception Recast Summary

There is a common practice of throwing exceptions from within a catch block (e.g. for wrapping a low-level exception). The following table summarizes the usage of this practice in the application. The last column gives the number of times it happens for a pair of exceptions. The graph below the table graphically renders the same information. For a given node, its color represents its origin (blue means library exception, orange means domain exception); the left-most number is the number of times it is thrown, the right-most is the number of times it is caught.

Catch Throw
(Domain) ParseException
(Domain) PMDException
1
                    
// in src/main/java/net/sourceforge/pmd/SourceCodeProcessor.java
catch (ParseException pe) { throw new PMDException("Error while parsing " + ctx.getSourceCodeFilename(), pe); }
(Lib) ClassNotFoundException
(Lib) RuntimeException
(Lib) IllegalArgumentException
1
                    
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
catch (ClassNotFoundException e) { throw new RuntimeException(e); }
1
                    
// in src/main/java/net/sourceforge/pmd/renderers/RendererFactory.java
catch (ClassNotFoundException e) { throw new IllegalArgumentException("Can't find the custom format " + reportFormat + ": " + e.getClass().getName()); }
(Lib) NoSuchFieldException
(Lib) RuntimeException
(Lib) NoSuchFieldException
1
                    
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
catch (NoSuchFieldException e) { throw new RuntimeException(e); }
1
                    
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
catch (NoSuchFieldException e) { // Try the super interfaces for (Class<?> superInterface : type.getInterfaces()) { try { return myGetField(superInterface, name); } catch (NoSuchFieldException e2) { // Okay } } // Try the super classes if (type.getSuperclass() != null) { return myGetField(type.getSuperclass(), name); } else { throw new NoSuchFieldException(type.getName() + "." + name); } }
(Lib) NoSuchMethodException
(Lib) RuntimeException
(Lib) NoSuchMethodException
3
                    
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
catch (NoSuchMethodException e) { throw new RuntimeException(e); }
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
catch (NoSuchMethodException e) { throw new RuntimeException(e); }
// in src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/EcmascriptTreeBuilder.java
catch (NoSuchMethodException e) { throw new RuntimeException(e); }
1
                    
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
catch (NoSuchMethodException e) { try { // Try the super classes if (type.getSuperclass() != null) { // System.out.println("Checking super: " // + type.getSuperclass()); return myGetMethod(type.getSuperclass(), name, parameterTypes); } } catch (NoSuchMethodException e2) { // Okay } // Try the super interfaces for (Class<?> superInterface : type.getInterfaces()) { try { // System.out.println("Checking super interface: " // + superInterface); return myGetMethod(superInterface, name, parameterTypes); } catch (NoSuchMethodException e3) { // Okay } } throw new NoSuchMethodException(type.getName() + '.' + getMethodSignature(name, parameterTypes)); }
(Lib) IOException
(Lib) RuntimeException
(Lib) BuildException
(Domain) ReportException
(Domain) ParseException
(Lib) Error
(Lib) ClassNotFoundException
(Lib) IllegalStateException
(Lib) IllegalArgumentException
Unknown
7
                    
// in src/main/java/net/sourceforge/pmd/dcd/graph/UsageGraphBuilder.java
catch (IOException e) { throw new RuntimeException("For " + name + ": " + e.getMessage(), e); }
// in src/main/java/net/sourceforge/pmd/RuleSetFactory.java
catch (IOException ioe) { throw new RuntimeException("Couldn't find " + rulesetsProperties + "; please ensure that the rulesets directory is on the classpath. The current classpath is: " + System.getProperty("java.class.path")); }
// in src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/DumpFacade.java
catch (IOException e) { throw new RuntimeException("Problem flushing PrintWriter.", e); }
// in src/main/java/net/sourceforge/pmd/lang/xml/ast/DumpFacade.java
catch (IOException e) { throw new RuntimeException("Problem flushing PrintWriter.", e); }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/DumpFacade.java
catch (IOException e) { throw new RuntimeException("Problem flushing PrintWriter.", e); }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/DumpFacade.java
catch (IOException e) { throw new RuntimeException("Problem flushing PrintWriter.", e); }
// in src/main/java/net/sourceforge/pmd/util/FileUtil.java
catch (IOException ze) { throw new RuntimeException("Archive file " + file.getName() + " can't be opened"); }
4
                    
// in src/main/java/net/sourceforge/pmd/cpd/CPDTask.java
catch (IOException ioe) { log(ioe.toString(), Project.MSG_ERR); throw new BuildException("IOException during task execution", ioe); }
// in src/main/java/net/sourceforge/pmd/ant/PMDTask.java
catch (IOException ioe) { throw new BuildException(ioe.getMessage(), ioe); }
// in src/main/java/net/sourceforge/pmd/ant/Formatter.java
catch (IOException ioe) { throw new BuildException(ioe.getMessage(), ioe); }
// in src/main/java/net/sourceforge/pmd/ant/Formatter.java
catch (IOException ioe) { throw new BuildException(ioe.getMessage(), ioe); }
1
                    
// in src/main/java/net/sourceforge/pmd/cpd/FileReporter.java
catch (IOException ioe) { throw new ReportException(ioe); }
2
                    
// in src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/EcmascriptParser.java
catch (final IOException e) { throw new ParseException(e); }
// in src/main/java/net/sourceforge/pmd/lang/xml/ast/XmlParser.java
catch (IOException e) { throw new ParseException(e); }
1
                    
// in src/main/java/net/sourceforge/pmd/lang/ast/JavaCharStream.java
catch(java.io.IOException e) { throw new Error("Invalid escape character at line " + line + " column " + column + "."); }
1
                    
// in src/main/java/net/sourceforge/pmd/lang/java/typeresolution/PMDASMClassLoader.java
catch (IOException e) { dontBother.add(name); throw new ClassNotFoundException(name, e); }
1
                    
// in src/main/java/net/sourceforge/pmd/renderers/AbstractRenderer.java
catch (IOException e) { throw new IllegalStateException(e); }
2
                    
// in src/main/java/net/sourceforge/pmd/PMDParameters.java
catch (IOException e) { throw new IllegalArgumentException("Invalid auxiliary classpath: " + e.getMessage(), e); }
// in src/main/java/net/sourceforge/pmd/util/IOUtil.java
catch (IOException e) { throw new IllegalArgumentException(e); }
2
                    
// in src/main/java/net/sourceforge/pmd/lang/ast/JavaCharStream.java
catch(java.io.IOException e) { if (bufpos != 0) { --bufpos; backup(0); } else { bufline[bufpos] = line; bufcolumn[bufpos] = column; } throw e; }
// in src/main/java/net/sourceforge/pmd/lang/ast/SimpleCharStream.java
catch(java.io.IOException e) { --bufpos; backup(0); if (tokenBegin == -1) tokenBegin = bufpos; throw e; }
(Domain) RuleSetNotFoundException
(Lib) IllegalArgumentException
(Lib) BuildException
1
                    
// in src/main/java/net/sourceforge/pmd/RulesetsFactoryUtils.java
catch (RuleSetNotFoundException rsnfe) { LOG.log(Level.SEVERE, "Ruleset not found", rsnfe); throw new IllegalArgumentException(rsnfe); }
1
                    
// in src/main/java/net/sourceforge/pmd/ant/PMDTask.java
catch (RuleSetNotFoundException e) { throw new BuildException(e.getMessage(), e); }
(Lib) ParserConfigurationException
(Lib) IllegalStateException
(Domain) ParseException
(Lib) RuntimeException
1
                    
// in src/main/java/net/sourceforge/pmd/cpd/XMLRenderer.java
catch (ParserConfigurationException e) { throw new IllegalStateException(e); }
1
                    
// in src/main/java/net/sourceforge/pmd/lang/xml/ast/XmlParser.java
catch (ParserConfigurationException e) { throw new ParseException(e); }
2
                    
// in src/main/java/net/sourceforge/pmd/lang/ast/AbstractNode.java
catch (ParserConfigurationException pce) { throw new RuntimeException(pce); }
// in src/main/java/net/sourceforge/pmd/RuleSetWriter.java
catch (ParserConfigurationException e) { throw new RuntimeException(e); }
(Lib) TransformerException
(Lib) IllegalStateException
(Lib) RuntimeException
1
                    
// in src/main/java/net/sourceforge/pmd/cpd/XMLRenderer.java
catch (TransformerException e) { throw new IllegalStateException(e); }
1
                    
// in src/main/java/net/sourceforge/pmd/RuleSetWriter.java
catch (TransformerException e) { throw new RuntimeException(e); }
(Lib) Exception
(Lib) RuntimeException
(Lib) IllegalArgumentException
(Domain) PMDException
3
                    
// in src/main/java/net/sourceforge/pmd/cpd/SourceCode.java
catch (Exception e) { e.printStackTrace(); throw new RuntimeException("Problem while reading " + getFileName() + ":" + e.getMessage()); }
// in src/main/java/net/sourceforge/pmd/lang/dfa/report/ReportHTMLPrintVisitor.java
catch (Exception e) { throw new RuntimeException("Error while writing HTML report: " + e.getMessage()); }
// in src/main/java/net/sourceforge/pmd/lang/dfa/report/ReportHTMLPrintVisitor.java
catch (Exception e) { throw new RuntimeException("Error while writing HTML report: " + e.getMessage()); }
1
                    
// in src/main/java/net/sourceforge/pmd/lang/rule/properties/TypeProperty.java
catch (Exception ex) { throw new IllegalArgumentException(className); }
1
                    
// in src/main/java/net/sourceforge/pmd/SourceCodeProcessor.java
catch (Exception e) { throw new PMDException("Error while processing " + ctx.getSourceCodeFilename(), e); }
(Domain) ReportException
(Lib) BuildException
1
                    
// in src/main/java/net/sourceforge/pmd/cpd/CPDTask.java
catch (ReportException re) { re.printStackTrace(); log(re.toString(), Project.MSG_ERR); throw new BuildException("ReportException during task execution", re); }
(Lib) InstantiationException
(Lib) RuntimeException
(Lib) IllegalStateException
(Lib) IllegalArgumentException
1
                    
// in src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/EcmascriptTreeBuilder.java
catch (InstantiationException e) { throw new RuntimeException(e); }
2
                    
// in src/main/java/net/sourceforge/pmd/lang/Language.java
catch (InstantiationException e) { throw new IllegalStateException("Unable to invoke no-arg constructor for RuleChainVisitor class <" + ruleChainVisitorClass.getName() + ">!"); }
// in src/main/java/net/sourceforge/pmd/RuleChain.java
catch (InstantiationException e) { throw new IllegalStateException("Failure to created RuleChainVisitor: " + language.getRuleChainVisitorClass(), e); }
1
                    
// in src/main/java/net/sourceforge/pmd/renderers/RendererFactory.java
catch (InstantiationException e) { throw new IllegalArgumentException("Unable to construct report renderer class: " + e.getLocalizedMessage()); }
(Lib) IllegalAccessException
(Lib) RuntimeException
(Lib) IllegalStateException
(Lib) IllegalArgumentException
1
                    
// in src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/EcmascriptTreeBuilder.java
catch (IllegalAccessException e) { throw new RuntimeException(e); }
2
                    
// in src/main/java/net/sourceforge/pmd/lang/Language.java
catch (IllegalAccessException e) { throw new IllegalStateException("Unable to invoke no-arg constructor for RuleChainVisitor class <" + ruleChainVisitorClass.getName() + ">!"); }
// in src/main/java/net/sourceforge/pmd/RuleChain.java
catch (IllegalAccessException e) { throw new IllegalStateException("Failure to created RuleChainVisitor: " + language.getRuleChainVisitorClass(), e); }
1
                    
// in src/main/java/net/sourceforge/pmd/renderers/RendererFactory.java
catch (IllegalAccessException e) { throw new IllegalArgumentException("Unable to construct report renderer class: " + e.getLocalizedMessage()); }
(Lib) SAXException
(Domain) ParseException
1
                    
// in src/main/java/net/sourceforge/pmd/lang/xml/ast/XmlParser.java
catch (SAXException e) { throw new ParseException(e); }
(Lib) SecurityException
(Lib) RuntimeException
1
                    
// in src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/EcmascriptTreeBuilder.java
catch (SecurityException e) { throw new RuntimeException(e); }
(Lib) InvocationTargetException
(Lib) RuntimeException
(Lib) IllegalArgumentException
1
                    
// in src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/EcmascriptTreeBuilder.java
catch (InvocationTargetException e) { throw new RuntimeException(e.getTargetException()); }
1
                    
// in src/main/java/net/sourceforge/pmd/renderers/RendererFactory.java
catch (InvocationTargetException e) { throw new IllegalArgumentException("Unable to construct report renderer class: " + e.getTargetException().getLocalizedMessage()); }
(Lib) Throwable
(Lib) Error
Unknown
2
                    
// in src/main/java/net/sourceforge/pmd/lang/ast/JavaCharStream.java
catch (Throwable t) { throw new Error(t.getMessage()); }
// in src/main/java/net/sourceforge/pmd/lang/ast/SimpleCharStream.java
catch (Throwable t) { throw new Error(t.getMessage()); }
327
                    
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
(Lib) JaxenException
(Lib) RuntimeException
(Lib) IllegalStateException
3
                    
// in src/main/java/net/sourceforge/pmd/lang/ast/AbstractNode.java
catch (JaxenException e) { throw new RuntimeException("XPath expression " + xpathString + " failed: " + e.getLocalizedMessage(), e); }
// in src/main/java/net/sourceforge/pmd/lang/rule/xpath/JaxenXPathRuleQuery.java
catch (JaxenException ex) { throw new RuntimeException(ex); }
// in src/main/java/net/sourceforge/pmd/lang/rule/xpath/JaxenXPathRuleQuery.java
catch (JaxenException ex) { throw new RuntimeException(ex); }
1
                    
// in src/main/java/net/sourceforge/pmd/lang/java/rule/design/PreserveStackTraceRule.java
catch (JaxenException e) { // XPath is valid, this should never happens... throw new IllegalStateException(e); }
(Lib) NumberFormatException
(Lib) IllegalArgumentException
2
                    
// in src/main/java/net/sourceforge/pmd/PMDParameters.java
catch (NumberFormatException e) { throw new IllegalArgumentException( "Minimum priority must be a whole number between " + RulePriority.HIGH + " and " + RulePriority.LOW + ", " + priority + " received", e); }
// in src/main/java/net/sourceforge/pmd/PMDParameters.java
catch (NumberFormatException e) { throw new IllegalArgumentException(opt + " parameter must be a whole number, " + s + " received"); }
(Lib) XPathException
(Lib) RuntimeException
2
                    
// in src/main/java/net/sourceforge/pmd/lang/rule/xpath/SaxonXPathRuleQuery.java
catch (XPathException e) { throw new RuntimeException(super.xpath + " had problem: " + e.getMessage(), e); }
// in src/main/java/net/sourceforge/pmd/lang/rule/xpath/SaxonXPathRuleQuery.java
catch (XPathException e) { throw new RuntimeException(e); }
(Lib) DOMException
(Lib) RuntimeException
1
                    
// in src/main/java/net/sourceforge/pmd/RuleSetWriter.java
catch (DOMException e) { throw new RuntimeException(e); }
(Lib) FactoryConfigurationError
(Lib) RuntimeException
1
                    
// in src/main/java/net/sourceforge/pmd/RuleSetWriter.java
catch (FactoryConfigurationError e) { throw new RuntimeException(e); }
(Lib) ExecutionException
(Lib) IllegalStateException
Unknown
1
                    
// in src/main/java/net/sourceforge/pmd/processor/MultiThreadProcessor.java
catch (ExecutionException ee) { Throwable t = ee.getCause(); if (t instanceof RuntimeException) { throw (RuntimeException) t; } else if (t instanceof Error) { throw (Error) t; } else { throw new IllegalStateException( "PmdRunnable exception", t); } }
2
                    
// in src/main/java/net/sourceforge/pmd/processor/MultiThreadProcessor.java
catch (ExecutionException ee) { Throwable t = ee.getCause(); if (t instanceof RuntimeException) { throw (RuntimeException) t; } else if (t instanceof Error) { throw (Error) t; } else { throw new IllegalStateException( "PmdRunnable exception", t); } }
(Lib) UnsupportedEncodingException
(Domain) PMDException
1
                    
// in src/main/java/net/sourceforge/pmd/SourceCodeProcessor.java
catch (UnsupportedEncodingException uee) { throw new PMDException("Unsupported encoding exception: " + uee.getMessage()); }
(Lib) BadLocationException
(Lib) IllegalStateException
1
                    
// in src/main/java/net/sourceforge/pmd/util/viewer/gui/SourceCodePanel.java
catch (BadLocationException exc) { throw new IllegalStateException(exc.getMessage()); }

Caught / Thrown Exception

Not all exceptions are thrown AND caught in the same project. The following table gives the exceptions types with respect to this. The lower left hand side sell lists all exceptions thrown but not caught (prevalent for libraries), the upper right-hand side lists all exceptions caught but not thrown (usually coming from external dependencies).

Thrown Not Thrown
Caught
Type Name
(Lib) RuntimeException
(Domain) TokenMgrError
(Domain) ParseException
(Lib) ClassNotFoundException
(Lib) NoSuchFieldException
(Lib) NoSuchMethodException
(Lib) IOException
(Lib) IllegalArgumentException
(Domain) RuleSetNotFoundException
(Lib) NoSuchElementException
(Domain) ReportException
(Domain) SequenceException
(Domain) PMDException
(Lib) FileNotFoundException
(Lib) IndexOutOfBoundsException
Type Name
(Lib) ParserConfigurationException
(Lib) TransformerException
(Lib) Exception
(Domain) LinkerException
(Lib) InstantiationException
(Lib) IllegalAccessException
(Lib) NoClassDefFoundError
(Lib) SAXException
(Lib) SecurityException
(Lib) InvocationTargetException
(Lib) Throwable
(Domain) LookaheadSuccess
(Lib) JaxenException
(Lib) ClassFormatError
(Lib) NumberFormatException
(Lib) XPathException
(Lib) DOMException
(Lib) FactoryConfigurationError
(Lib) InterruptedException
(Lib) ExecutionException
(Lib) UnsupportedEncodingException
(Lib) TransformerConfigurationException
(Lib) ArrayIndexOutOfBoundsException
(Lib) PatternSyntaxException
(Lib) CannotUndoException
(Lib) CannotRedoException
(Lib) BadLocationException
Not caught
Type Name
(Lib) IllegalStateException
(Lib) BuildException
(Lib) UnsupportedOperationException
(Domain) StartAndEndTagMismatchException
(Lib) Error

Methods called in Catch and Finally Blocks

The following shows the methods that are called inside catch blocks (first column) and finally blocks (second column). For each method, we give the number of times it is called in a catch block (second sub-column), and the total number of calls (third sub-column). If the method name is red, it means that it is only called from catch/finally blocks. Hovering over a number triggers showing code snippets from the application code.

Catch Finally
Method Nbr Nbr total
clearNodeScope
109
                  
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
109
popNode 109
                  
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
115
printStackTrace 30
                  
// in src/main/java/net/sourceforge/pmd/cpd/CPPTokenizer.java
catch (TokenMgrError err) { err.printStackTrace(); System.err.println("Skipping " + sourceCode.getFileName() + " due to parse error"); tokenEntries.add(TokenEntry.getEOF()); }
// in src/main/java/net/sourceforge/pmd/cpd/GUI.java
catch (IOException t) { t.printStackTrace(); JOptionPane.showMessageDialog(frame, "Halted due to " + t.getClass().getName() + "; " + t.getMessage()); }
// in src/main/java/net/sourceforge/pmd/cpd/GUI.java
catch (RuntimeException t) { t.printStackTrace(); JOptionPane.showMessageDialog(frame, "Halted due to " + t.getClass().getName() + "; " + t.getMessage()); }
// in src/main/java/net/sourceforge/pmd/cpd/AnyTokenizer.java
catch (Exception ex) { ex.printStackTrace(); }
// in src/main/java/net/sourceforge/pmd/cpd/CPDTask.java
catch (ReportException re) { re.printStackTrace(); log(re.toString(), Project.MSG_ERR); throw new BuildException("ReportException during task execution", re); }
// in src/main/java/net/sourceforge/pmd/cpd/SourceCode.java
catch (Exception e) { e.printStackTrace(); throw new RuntimeException("Problem while reading " + getFileName() + ":" + e.getMessage()); }
// in src/main/java/net/sourceforge/pmd/cpd/CPD.java
catch (Exception e) { e.printStackTrace(); }
// in src/main/java/net/sourceforge/pmd/cpd/LanguageFactory.java
catch (InstantiationException e) { e.printStackTrace(); }
// in src/main/java/net/sourceforge/pmd/cpd/LanguageFactory.java
catch (IllegalAccessException e) { e.printStackTrace(); }
// in src/main/java/net/sourceforge/pmd/lang/dfa/AbstractDataFlowNode.java
catch (IndexOutOfBoundsException e) { e.printStackTrace(); }
// in src/main/java/net/sourceforge/pmd/lang/ast/xpath/Attribute.java
catch (IllegalAccessException iae) { iae.printStackTrace(); }
// in src/main/java/net/sourceforge/pmd/lang/ast/xpath/Attribute.java
catch (InvocationTargetException ite) { ite.printStackTrace(); }
// in src/main/java/net/sourceforge/pmd/lang/java/dfa/StatementAndBraceFinder.java
catch (LinkerException e) { e.printStackTrace(); }
// in src/main/java/net/sourceforge/pmd/lang/java/dfa/StatementAndBraceFinder.java
catch (SequenceException e) { e.printStackTrace(); }
// in src/main/java/net/sourceforge/pmd/lang/java/rule/strings/AvoidDuplicateLiteralsRule.java
catch (IOException ioe) { ioe.printStackTrace(); }
// in src/main/java/net/sourceforge/pmd/processor/PmdRunnable.java
catch (Exception e) { e.printStackTrace(); }
// in src/main/java/net/sourceforge/pmd/renderers/TextColorRenderer.java
catch (IOException ioErr) { ioErr.printStackTrace(); }
// in src/main/java/net/sourceforge/pmd/renderers/XSLTRenderer.java
catch (TransformerConfigurationException e) { e.printStackTrace(); }
// in src/main/java/net/sourceforge/pmd/renderers/XSLTRenderer.java
catch (TransformerException e) { e.printStackTrace(); }
// in src/main/java/net/sourceforge/pmd/renderers/XSLTRenderer.java
catch (ParserConfigurationException e) { e.printStackTrace(); }
// in src/main/java/net/sourceforge/pmd/renderers/XSLTRenderer.java
catch (SAXException e) { e.printStackTrace(); }
// in src/main/java/net/sourceforge/pmd/renderers/XSLTRenderer.java
catch (IOException e) { e.printStackTrace(); }
// in src/main/java/net/sourceforge/pmd/util/designer/Designer.java
catch (Exception e) { e.printStackTrace(); }
// in src/main/java/net/sourceforge/pmd/util/designer/Designer.java
catch (TransformerException e) { e.printStackTrace(); xml = "Error trying to construct XML representation"; }
// in src/main/java/net/sourceforge/pmd/util/designer/Designer.java
catch (ParserConfigurationException e) { e.printStackTrace(); }
// in src/main/java/net/sourceforge/pmd/util/designer/Designer.java
catch (IOException e) { e.printStackTrace(); }
// in src/main/java/net/sourceforge/pmd/util/designer/Designer.java
catch (SAXException e) { e.printStackTrace(); }
// in src/main/java/net/sourceforge/pmd/util/designer/Designer.java
catch (ParserConfigurationException e) { e.printStackTrace(); }
// in src/main/java/net/sourceforge/pmd/util/designer/Designer.java
catch (IOException e) { e.printStackTrace(); }
// in src/main/java/net/sourceforge/pmd/util/designer/Designer.java
catch (TransformerException e) { e.printStackTrace(); }
37
getMessage 23
                  
// in src/main/java/net/sourceforge/pmd/dcd/graph/UsageGraphBuilder.java
catch (IOException e) { throw new RuntimeException("For " + name + ": " + e.getMessage(), e); }
// in src/main/java/net/sourceforge/pmd/cpd/GUI.java
catch (IOException t) { t.printStackTrace(); JOptionPane.showMessageDialog(frame, "Halted due to " + t.getClass().getName() + "; " + t.getMessage()); }
// in src/main/java/net/sourceforge/pmd/cpd/GUI.java
catch (RuntimeException t) { t.printStackTrace(); JOptionPane.showMessageDialog(frame, "Halted due to " + t.getClass().getName() + "; " + t.getMessage()); }
// in src/main/java/net/sourceforge/pmd/cpd/SourceCode.java
catch (Exception e) { e.printStackTrace(); throw new RuntimeException("Problem while reading " + getFileName() + ":" + e.getMessage()); }
// in src/main/java/net/sourceforge/pmd/lang/dfa/report/ReportHTMLPrintVisitor.java
catch (Exception e) { throw new RuntimeException("Error while writing HTML report: " + e.getMessage()); }
// in src/main/java/net/sourceforge/pmd/lang/dfa/report/ReportHTMLPrintVisitor.java
catch (Exception e) { throw new RuntimeException("Error while writing HTML report: " + e.getMessage()); }
// in src/main/java/net/sourceforge/pmd/lang/ast/JavaCharStream.java
catch (Throwable t) { throw new Error(t.getMessage()); }
// in src/main/java/net/sourceforge/pmd/lang/ast/SimpleCharStream.java
catch (Throwable t) { throw new Error(t.getMessage()); }
// in src/main/java/net/sourceforge/pmd/lang/java/typeresolution/ClassTypeResolver.java
catch (ClassNotFoundException e) { LOG.log(Level.FINE, "Could not find class " + className + ", due to: " + e.getClass().getName() + ": " + e.getMessage()); }
// in src/main/java/net/sourceforge/pmd/lang/java/typeresolution/ClassTypeResolver.java
catch (NoClassDefFoundError e) { LOG.log(Level.WARNING, "Could not find class " + className + ", due to: " + e.getClass().getName() + ": " + e.getMessage()); }
// in src/main/java/net/sourceforge/pmd/lang/java/typeresolution/ClassTypeResolver.java
catch (ClassFormatError e) { LOG.log(Level.WARNING, "Could not find class " + className + ", due to: " + e.getClass().getName() + ": " + e.getMessage()); }
// in src/main/java/net/sourceforge/pmd/lang/rule/xpath/SaxonXPathRuleQuery.java
catch (XPathException e) { throw new RuntimeException(super.xpath + " had problem: " + e.getMessage(), e); }
// in src/main/java/net/sourceforge/pmd/processor/MonoThreadProcessor.java
catch (PMDException pmde) { LOG.log(Level.FINE, "Error while processing file", pmde.getCause()); report.addError(new Report.ProcessingError(pmde.getMessage(), niceFileName)); }
// in src/main/java/net/sourceforge/pmd/SourceCodeProcessor.java
catch (UnsupportedEncodingException uee) { throw new PMDException("Unsupported encoding exception: " + uee.getMessage()); }
// in src/main/java/net/sourceforge/pmd/ant/PMDTask.java
catch (RuleSetNotFoundException e) { throw new BuildException(e.getMessage(), e); }
// in src/main/java/net/sourceforge/pmd/ant/PMDTask.java
catch (IOException ioe) { throw new BuildException(ioe.getMessage(), ioe); }
// in src/main/java/net/sourceforge/pmd/ant/Formatter.java
catch (IOException ioe) { throw new BuildException(ioe.getMessage(), ioe); }
// in src/main/java/net/sourceforge/pmd/ant/Formatter.java
catch (IOException ioe) { throw new BuildException(ioe.getMessage(), ioe); }
// in src/main/java/net/sourceforge/pmd/PMD.java
catch (Exception e) { String message = e.getMessage(); if (message != null) { LOG.severe(message); } else { LOG.log(Level.SEVERE, "Exception during processing", e); } LOG.log(Level.FINE, "Exception during processing", e); LOG.info(CommandLineParser.usage()); }
// in src/main/java/net/sourceforge/pmd/PMD.java
catch (Exception e) { System.out.print(CommandLineParser.usage()); System.out.println(e.getMessage()); status = ERROR_STATUS; }
// in src/main/java/net/sourceforge/pmd/PMDParameters.java
catch (IOException e) { throw new IllegalArgumentException("Invalid auxiliary classpath: " + e.getMessage(), e); }
// in src/main/java/net/sourceforge/pmd/util/designer/Designer.java
catch (ParseException pe) { xpathResults.addElement(pe.fillInStackTrace().getMessage()); }
// in src/main/java/net/sourceforge/pmd/util/viewer/gui/SourceCodePanel.java
catch (BadLocationException exc) { throw new IllegalStateException(exc.getMessage()); }
54
jjStopStringLiteralDfa_0 20
                  
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_0(0, active0, active1); return 1; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_0(1, active0, active1); return 2; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_0(2, active0, active1); return 3; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_0(3, active0, 0L); return 4; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_0(4, active0, 0L); return 5; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_0(5, active0, 0L); return 6; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_0(6, active0, 0L); return 7; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_0(7, active0, 0L); return 8; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_0(8, active0, 0L); return 9; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_0(9, active0, 0L); return 10; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_0(10, active0, 0L); return 11; }
// in src/main/java/net/sourceforge/pmd/lang/cpp/ast/CppParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_0(0, active0, active1, active2); return 1; }
// in src/main/java/net/sourceforge/pmd/lang/cpp/ast/CppParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_0(1, active0, active1, active2); return 2; }
// in src/main/java/net/sourceforge/pmd/lang/cpp/ast/CppParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_0(2, 0L, active1, active2); return 3; }
// in src/main/java/net/sourceforge/pmd/lang/cpp/ast/CppParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_0(3, 0L, active1, active2); return 4; }
// in src/main/java/net/sourceforge/pmd/lang/cpp/ast/CppParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_0(4, 0L, active1, active2); return 5; }
// in src/main/java/net/sourceforge/pmd/lang/cpp/ast/CppParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_0(5, 0L, active1, active2); return 6; }
// in src/main/java/net/sourceforge/pmd/lang/cpp/ast/CppParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_0(6, 0L, active1, 0L); return 7; }
// in src/main/java/net/sourceforge/pmd/lang/cpp/ast/CppParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_0(7, 0L, active1, 0L); return 8; }
// in src/main/java/net/sourceforge/pmd/lang/cpp/ast/CppParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_0(8, 0L, active1, 0L); return 9; }
22
getName 11
                  
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
catch (NoSuchFieldException e) { // Try the super interfaces for (Class<?> superInterface : type.getInterfaces()) { try { return myGetField(superInterface, name); } catch (NoSuchFieldException e2) { // Okay } } // Try the super classes if (type.getSuperclass() != null) { return myGetField(type.getSuperclass(), name); } else { throw new NoSuchFieldException(type.getName() + "." + name); } }
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
catch (NoSuchMethodException e) { try { // Try the super classes if (type.getSuperclass() != null) { // System.out.println("Checking super: " // + type.getSuperclass()); return myGetMethod(type.getSuperclass(), name, parameterTypes); } } catch (NoSuchMethodException e2) { // Okay } // Try the super interfaces for (Class<?> superInterface : type.getInterfaces()) { try { // System.out.println("Checking super interface: " // + superInterface); return myGetMethod(superInterface, name, parameterTypes); } catch (NoSuchMethodException e3) { // Okay } } throw new NoSuchMethodException(type.getName() + '.' + getMethodSignature(name, parameterTypes)); }
// in src/main/java/net/sourceforge/pmd/cpd/GUI.java
catch (IOException t) { t.printStackTrace(); JOptionPane.showMessageDialog(frame, "Halted due to " + t.getClass().getName() + "; " + t.getMessage()); }
// in src/main/java/net/sourceforge/pmd/cpd/GUI.java
catch (RuntimeException t) { t.printStackTrace(); JOptionPane.showMessageDialog(frame, "Halted due to " + t.getClass().getName() + "; " + t.getMessage()); }
// in src/main/java/net/sourceforge/pmd/lang/Language.java
catch (InstantiationException e) { throw new IllegalStateException("Unable to invoke no-arg constructor for RuleChainVisitor class <" + ruleChainVisitorClass.getName() + ">!"); }
// in src/main/java/net/sourceforge/pmd/lang/Language.java
catch (IllegalAccessException e) { throw new IllegalStateException("Unable to invoke no-arg constructor for RuleChainVisitor class <" + ruleChainVisitorClass.getName() + ">!"); }
// in src/main/java/net/sourceforge/pmd/lang/java/typeresolution/ClassTypeResolver.java
catch (ClassNotFoundException e) { LOG.log(Level.FINE, "Could not find class " + className + ", due to: " + e.getClass().getName() + ": " + e.getMessage()); }
// in src/main/java/net/sourceforge/pmd/lang/java/typeresolution/ClassTypeResolver.java
catch (NoClassDefFoundError e) { LOG.log(Level.WARNING, "Could not find class " + className + ", due to: " + e.getClass().getName() + ": " + e.getMessage()); }
// in src/main/java/net/sourceforge/pmd/lang/java/typeresolution/ClassTypeResolver.java
catch (ClassFormatError e) { LOG.log(Level.WARNING, "Could not find class " + className + ", due to: " + e.getClass().getName() + ": " + e.getMessage()); }
// in src/main/java/net/sourceforge/pmd/renderers/RendererFactory.java
catch (ClassNotFoundException e) { throw new IllegalArgumentException("Can't find the custom format " + reportFormat + ": " + e.getClass().getName()); }
// in src/main/java/net/sourceforge/pmd/util/FileUtil.java
catch (IOException ze) { throw new RuntimeException("Archive file " + file.getName() + " can't be opened"); }
212
log 11
                  
// in src/main/java/net/sourceforge/pmd/cpd/CPDTask.java
catch (IOException ioe) { log(ioe.toString(), Project.MSG_ERR); throw new BuildException("IOException during task execution", ioe); }
// in src/main/java/net/sourceforge/pmd/cpd/CPDTask.java
catch (ReportException re) { re.printStackTrace(); log(re.toString(), Project.MSG_ERR); throw new BuildException("ReportException during task execution", re); }
// in src/main/java/net/sourceforge/pmd/lang/java/typeresolution/ClassTypeResolver.java
catch (ClassNotFoundException e) { LOG.log(Level.FINE, "Could not find class " + className + ", due to: " + e.getClass().getName() + ": " + e.getMessage()); }
// in src/main/java/net/sourceforge/pmd/lang/java/typeresolution/ClassTypeResolver.java
catch (NoClassDefFoundError e) { LOG.log(Level.WARNING, "Could not find class " + className + ", due to: " + e.getClass().getName() + ": " + e.getMessage()); }
// in src/main/java/net/sourceforge/pmd/lang/java/typeresolution/ClassTypeResolver.java
catch (ClassFormatError e) { LOG.log(Level.WARNING, "Could not find class " + className + ", due to: " + e.getClass().getName() + ": " + e.getMessage()); }
// in src/main/java/net/sourceforge/pmd/RulesetsFactoryUtils.java
catch (RuleSetNotFoundException rsnfe) { LOG.log(Level.SEVERE, "Ruleset not found", rsnfe); throw new IllegalArgumentException(rsnfe); }
// in src/main/java/net/sourceforge/pmd/processor/PmdRunnable.java
catch (PMDException pmde) { LOG.log(Level.FINE, "Error while processing file", pmde.getCause()); addError(report, pmde, fileName); }
// in src/main/java/net/sourceforge/pmd/processor/MonoThreadProcessor.java
catch (PMDException pmde) { LOG.log(Level.FINE, "Error while processing file", pmde.getCause()); report.addError(new Report.ProcessingError(pmde.getMessage(), niceFileName)); }
// in src/main/java/net/sourceforge/pmd/PMD.java
catch (Exception e) { String message = e.getMessage(); if (message != null) { LOG.severe(message); } else { LOG.log(Level.SEVERE, "Exception during processing", e); } LOG.log(Level.FINE, "Exception during processing", e); LOG.info(CommandLineParser.usage()); }
// in src/main/java/net/sourceforge/pmd/PMD.java
catch (IOException e) { LOG.log(Level.FINE, "Couldn't determine version of PMD", e); }
40
jjStopStringLiteralDfa_13 8
                  
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_13(0, active0); return 1; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_13(1, active0); return 2; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_13(2, active0); return 3; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_13(3, active0); return 4; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_13(4, active0); return 5; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_13(5, active0); return 6; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_13(6, active0); return 7; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_13(7, active0); return 8; }
9
jjStopStringLiteralDfa_17 8
                  
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_17(0, active0); return 1; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_17(1, active0); return 2; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_17(2, active0); return 3; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_17(3, active0); return 4; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_17(4, active0); return 5; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_17(5, active0); return 6; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_17(6, active0); return 7; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_17(7, active0); return 8; }
9
classNotFoundProblem
7
                  
// in src/main/java/net/sourceforge/pmd/RuleSetFactory.java
catch (ClassNotFoundException cnfe) { return classNotFoundProblem(cnfe); }
// in src/main/java/net/sourceforge/pmd/RuleSetFactory.java
catch (InstantiationException ie) { return classNotFoundProblem(ie); }
// in src/main/java/net/sourceforge/pmd/RuleSetFactory.java
catch (IllegalAccessException iae) { return classNotFoundProblem(iae); }
// in src/main/java/net/sourceforge/pmd/RuleSetFactory.java
catch (ParserConfigurationException pce) { return classNotFoundProblem(pce); }
// in src/main/java/net/sourceforge/pmd/RuleSetFactory.java
catch (RuleSetNotFoundException rsnfe) { return classNotFoundProblem(rsnfe); }
// in src/main/java/net/sourceforge/pmd/RuleSetFactory.java
catch (IOException ioe) { return classNotFoundProblem(ioe); }
// in src/main/java/net/sourceforge/pmd/RuleSetFactory.java
catch (SAXException se) { return classNotFoundProblem(se); }
7
getClass 6
                  
// in src/main/java/net/sourceforge/pmd/cpd/GUI.java
catch (IOException t) { t.printStackTrace(); JOptionPane.showMessageDialog(frame, "Halted due to " + t.getClass().getName() + "; " + t.getMessage()); }
// in src/main/java/net/sourceforge/pmd/cpd/GUI.java
catch (RuntimeException t) { t.printStackTrace(); JOptionPane.showMessageDialog(frame, "Halted due to " + t.getClass().getName() + "; " + t.getMessage()); }
// in src/main/java/net/sourceforge/pmd/lang/java/typeresolution/ClassTypeResolver.java
catch (ClassNotFoundException e) { LOG.log(Level.FINE, "Could not find class " + className + ", due to: " + e.getClass().getName() + ": " + e.getMessage()); }
// in src/main/java/net/sourceforge/pmd/lang/java/typeresolution/ClassTypeResolver.java
catch (NoClassDefFoundError e) { LOG.log(Level.WARNING, "Could not find class " + className + ", due to: " + e.getClass().getName() + ": " + e.getMessage()); }
// in src/main/java/net/sourceforge/pmd/lang/java/typeresolution/ClassTypeResolver.java
catch (ClassFormatError e) { LOG.log(Level.WARNING, "Could not find class " + className + ", due to: " + e.getClass().getName() + ": " + e.getMessage()); }
// in src/main/java/net/sourceforge/pmd/renderers/RendererFactory.java
catch (ClassNotFoundException e) { throw new IllegalArgumentException("Can't find the custom format " + reportFormat + ": " + e.getClass().getName()); }
77
getSuperclass 5
                  
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
catch (NoSuchFieldException e) { // Try the super interfaces for (Class<?> superInterface : type.getInterfaces()) { try { return myGetField(superInterface, name); } catch (NoSuchFieldException e2) { // Okay } } // Try the super classes if (type.getSuperclass() != null) { return myGetField(type.getSuperclass(), name); } else { throw new NoSuchFieldException(type.getName() + "." + name); } }
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
catch (NoSuchMethodException e) { try { // Try the super classes if (type.getSuperclass() != null) { // System.out.println("Checking super: " // + type.getSuperclass()); return myGetMethod(type.getSuperclass(), name, parameterTypes); } } catch (NoSuchMethodException e2) { // Okay } // Try the super interfaces for (Class<?> superInterface : type.getInterfaces()) { try { // System.out.println("Checking super interface: " // + superInterface); return myGetMethod(superInterface, name, parameterTypes); } catch (NoSuchMethodException e3) { // Okay } } throw new NoSuchMethodException(type.getName() + '.' + getMethodSignature(name, parameterTypes)); }
// in src/main/java/net/sourceforge/pmd/util/ClassUtil.java
catch (NoSuchMethodException ex) { current = current.getSuperclass(); }
15
jjStopStringLiteralDfa_6 5
                  
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_6(0, active0); return 1; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_6(1, active0); return 2; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_6(2, active0); return 3; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_6(3, active0); return 4; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_6(4, active0); return 5; }
6
addError 4
                  
// in src/main/java/net/sourceforge/pmd/processor/PmdRunnable.java
catch (PMDException pmde) { LOG.log(Level.FINE, "Error while processing file", pmde.getCause()); addError(report, pmde, fileName); }
// in src/main/java/net/sourceforge/pmd/processor/MonoThreadProcessor.java
catch (PMDException pmde) { LOG.log(Level.FINE, "Error while processing file", pmde.getCause()); report.addError(new Report.ProcessingError(pmde.getMessage(), niceFileName)); }
// in src/main/java/net/sourceforge/pmd/processor/MonoThreadProcessor.java
catch (IOException ioe) { // unexpected exception: log and stop executor service addError(report, "Unable to read source file", ioe, niceFileName); }
// in src/main/java/net/sourceforge/pmd/processor/MonoThreadProcessor.java
catch (RuntimeException re) { // unexpected exception: log and stop executor service addError(report, "RuntimeException while processing file", re, niceFileName); }
9
getLocalizedMessage
4
                  
// in src/main/java/net/sourceforge/pmd/lang/ast/AbstractNode.java
catch (JaxenException e) { throw new RuntimeException("XPath expression " + xpathString + " failed: " + e.getLocalizedMessage(), e); }
// in src/main/java/net/sourceforge/pmd/renderers/RendererFactory.java
catch (InstantiationException e) { throw new IllegalArgumentException("Unable to construct report renderer class: " + e.getLocalizedMessage()); }
// in src/main/java/net/sourceforge/pmd/renderers/RendererFactory.java
catch (IllegalAccessException e) { throw new IllegalArgumentException("Unable to construct report renderer class: " + e.getLocalizedMessage()); }
// in src/main/java/net/sourceforge/pmd/renderers/RendererFactory.java
catch (InvocationTargetException e) { throw new IllegalArgumentException("Unable to construct report renderer class: " + e.getTargetException().getLocalizedMessage()); }
4
println 4
                  
// in src/main/java/net/sourceforge/pmd/cpd/CPPTokenizer.java
catch (TokenMgrError err) { err.printStackTrace(); System.err.println("Skipping " + sourceCode.getFileName() + " due to parse error"); tokenEntries.add(TokenEntry.getEOF()); }
// in src/main/java/net/sourceforge/pmd/cpd/CPDConfiguration.java
catch (Exception e) { System.out.println("Can't find class '" + name + "', defaulting to SimpleRenderer."); }
// in src/main/java/net/sourceforge/pmd/RuleSetFactory.java
catch (Exception ex) { System.out.println("oops"); // debug pt TODO }
// in src/main/java/net/sourceforge/pmd/PMD.java
catch (Exception e) { System.out.print(CommandLineParser.usage()); System.out.println(e.getMessage()); status = ERROR_STATUS; }
136
toString 4
                  
// in src/main/java/net/sourceforge/pmd/cpd/CPDTask.java
catch (IOException ioe) { log(ioe.toString(), Project.MSG_ERR); throw new BuildException("IOException during task execution", ioe); }
// in src/main/java/net/sourceforge/pmd/cpd/CPDTask.java
catch (ReportException re) { re.printStackTrace(); log(re.toString(), Project.MSG_ERR); throw new BuildException("ReportException during task execution", re); }
// in src/main/java/net/sourceforge/pmd/util/viewer/gui/MainFrame.java
catch (ParseException exc) { setStatus(NLS.nls("MAIN.FRAME.COMPILATION.PROBLEM") + " " + exc.toString()); new ParseExceptionHandler(this, exc); }
// in src/main/java/net/sourceforge/pmd/util/viewer/gui/MainFrame.java
catch (Exception exc) { setStatus(NLS.nls("MAIN.FRAME.EVALUATION.PROBLEM") + " " + exc.toString()); new ParseExceptionHandler(this, exc); }
169
GetImage 3
                  
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch (java.io.IOException e1) { EOFSeen = true; error_after = curPos <= 1 ? "" : input_stream.GetImage(); if (curChar == '\n' || curChar == '\r') { error_line++; error_column = 0; } else error_column++; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParserTokenManager.java
catch (java.io.IOException e1) { EOFSeen = true; error_after = curPos <= 1 ? "" : input_stream.GetImage(); if (curChar == '\n' || curChar == '\r') { error_line++; error_column = 0; } else error_column++; }
// in src/main/java/net/sourceforge/pmd/lang/cpp/ast/CppParserTokenManager.java
catch (java.io.IOException e1) { EOFSeen = true; error_after = curPos <= 1 ? "" : input_stream.GetImage(); if (curChar == '\n' || curChar == '\r') { error_line++; error_column = 0; } else error_column++; }
9
backup 3
                  
// in src/main/java/net/sourceforge/pmd/lang/ast/JavaCharStream.java
catch(java.io.IOException e) { if (bufpos != 0) { --bufpos; backup(0); } else { bufline[bufpos] = line; bufcolumn[bufpos] = column; } throw e; }
// in src/main/java/net/sourceforge/pmd/lang/ast/JavaCharStream.java
catch(java.io.IOException e) { if (backSlashCnt > 1) backup(backSlashCnt-1); return '\\'; }
// in src/main/java/net/sourceforge/pmd/lang/ast/SimpleCharStream.java
catch(java.io.IOException e) { --bufpos; backup(0); if (tokenBegin == -1) tokenBegin = bufpos; throw e; }
19
getCause 3
                  
// in src/main/java/net/sourceforge/pmd/processor/MultiThreadProcessor.java
catch (ExecutionException ee) { Throwable t = ee.getCause(); if (t instanceof RuntimeException) { throw (RuntimeException) t; } else if (t instanceof Error) { throw (Error) t; } else { throw new IllegalStateException( "PmdRunnable exception", t); } }
// in src/main/java/net/sourceforge/pmd/processor/PmdRunnable.java
catch (PMDException pmde) { LOG.log(Level.FINE, "Error while processing file", pmde.getCause()); addError(report, pmde, fileName); }
// in src/main/java/net/sourceforge/pmd/processor/MonoThreadProcessor.java
catch (PMDException pmde) { LOG.log(Level.FINE, "Error while processing file", pmde.getCause()); report.addError(new Report.ProcessingError(pmde.getMessage(), niceFileName)); }
4
jjFillToken 3
                  
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjmatchedKind = 0; matchedToken = jjFillToken(); matchedToken.specialToken = specialToken; return matchedToken; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParserTokenManager.java
catch(java.io.IOException e) { jjmatchedKind = 0; matchedToken = jjFillToken(); matchedToken.specialToken = specialToken; return matchedToken; }
// in src/main/java/net/sourceforge/pmd/lang/cpp/ast/CppParserTokenManager.java
catch(java.io.IOException e) { jjmatchedKind = 0; matchedToken = jjFillToken(); return matchedToken; }
8
jjStopStringLiteralDfa_8 3
                  
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_8(0, active0); return 1; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_8(1, active0); return 2; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_8(2, active0); return 3; }
4
processOnDemand
3
                  
// in src/main/java/net/sourceforge/pmd/lang/java/typeresolution/ClassTypeResolver.java
catch (ClassNotFoundException e) { myType = processOnDemand(qualifiedName); }
// in src/main/java/net/sourceforge/pmd/lang/java/typeresolution/ClassTypeResolver.java
catch (NoClassDefFoundError e) { myType = processOnDemand(qualifiedName); }
// in src/main/java/net/sourceforge/pmd/lang/java/typeresolution/ClassTypeResolver.java
catch (ClassFormatError e) { myType = processOnDemand(qualifiedName); }
3
ParseExceptionHandler
2
                  
// in src/main/java/net/sourceforge/pmd/util/viewer/gui/MainFrame.java
catch (ParseException exc) { setStatus(NLS.nls("MAIN.FRAME.COMPILATION.PROBLEM") + " " + exc.toString()); new ParseExceptionHandler(this, exc); }
// in src/main/java/net/sourceforge/pmd/util/viewer/gui/MainFrame.java
catch (Exception exc) { setStatus(NLS.nls("MAIN.FRAME.EVALUATION.PROBLEM") + " " + exc.toString()); new ParseExceptionHandler(this, exc); }
2
add 2
                  
// in src/main/java/net/sourceforge/pmd/cpd/CPPTokenizer.java
catch (TokenMgrError err) { err.printStackTrace(); System.err.println("Skipping " + sourceCode.getFileName() + " due to parse error"); tokenEntries.add(TokenEntry.getEOF()); }
// in src/main/java/net/sourceforge/pmd/lang/java/typeresolution/PMDASMClassLoader.java
catch (IOException e) { dontBother.add(name); throw new ClassNotFoundException(name, e); }
517
addErrorAndShutdown
2
                  
// in src/main/java/net/sourceforge/pmd/processor/PmdRunnable.java
catch (IOException ioe) { addErrorAndShutdown(report, ioe, "IOException during processing"); }
// in src/main/java/net/sourceforge/pmd/processor/PmdRunnable.java
catch (RuntimeException re) { addErrorAndShutdown(report, re,"RuntimeException during processing"); }
2
getAbsolutePath 2
                  
// in src/main/java/net/sourceforge/pmd/cpd/GUI.java
catch (IOException e) { error("Couldn't save file" + f.getAbsolutePath(), e); }
// in src/main/java/net/sourceforge/pmd/util/datasource/FileDataSource.java
catch (Exception e) { return file.getAbsolutePath(); }
11
getFileName 2
                  
// in src/main/java/net/sourceforge/pmd/cpd/CPPTokenizer.java
catch (TokenMgrError err) { err.printStackTrace(); System.err.println("Skipping " + sourceCode.getFileName() + " due to parse error"); tokenEntries.add(TokenEntry.getEOF()); }
// in src/main/java/net/sourceforge/pmd/cpd/SourceCode.java
catch (Exception e) { e.printStackTrace(); throw new RuntimeException("Problem while reading " + getFileName() + ":" + e.getMessage()); }
16
getInterfaces 2
                  
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
catch (NoSuchFieldException e) { // Try the super interfaces for (Class<?> superInterface : type.getInterfaces()) { try { return myGetField(superInterface, name); } catch (NoSuchFieldException e2) { // Okay } } // Try the super classes if (type.getSuperclass() != null) { return myGetField(type.getSuperclass(), name); } else { throw new NoSuchFieldException(type.getName() + "." + name); } }
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
catch (NoSuchMethodException e) { try { // Try the super classes if (type.getSuperclass() != null) { // System.out.println("Checking super: " // + type.getSuperclass()); return myGetMethod(type.getSuperclass(), name, parameterTypes); } } catch (NoSuchMethodException e2) { // Okay } // Try the super interfaces for (Class<?> superInterface : type.getInterfaces()) { try { // System.out.println("Checking super interface: " // + superInterface); return myGetMethod(superInterface, name, parameterTypes); } catch (NoSuchMethodException e3) { // Okay } } throw new NoSuchMethodException(type.getName() + '.' + getMethodSignature(name, parameterTypes)); }
9
getRuleChainVisitorClass 2
                  
// in src/main/java/net/sourceforge/pmd/RuleChain.java
catch (InstantiationException e) { throw new IllegalStateException("Failure to created RuleChainVisitor: " + language.getRuleChainVisitorClass(), e); }
// in src/main/java/net/sourceforge/pmd/RuleChain.java
catch (IllegalAccessException e) { throw new IllegalStateException("Failure to created RuleChainVisitor: " + language.getRuleChainVisitorClass(), e); }
5
getSourceCodeFilename 2
                  
// in src/main/java/net/sourceforge/pmd/SourceCodeProcessor.java
catch (ParseException pe) { throw new PMDException("Error while parsing " + ctx.getSourceCodeFilename(), pe); }
// in src/main/java/net/sourceforge/pmd/SourceCodeProcessor.java
catch (Exception e) { throw new PMDException("Error while processing " + ctx.getSourceCodeFilename(), e); }
8
getTargetException
2
                  
// in src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/EcmascriptTreeBuilder.java
catch (InvocationTargetException e) { throw new RuntimeException(e.getTargetException()); }
// in src/main/java/net/sourceforge/pmd/renderers/RendererFactory.java
catch (InvocationTargetException e) { throw new IllegalArgumentException("Unable to construct report renderer class: " + e.getTargetException().getLocalizedMessage()); }
2
myGetField 2
                  
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
catch (NoSuchFieldException e) { // Try the super interfaces for (Class<?> superInterface : type.getInterfaces()) { try { return myGetField(superInterface, name); } catch (NoSuchFieldException e2) { // Okay } } // Try the super classes if (type.getSuperclass() != null) { return myGetField(type.getSuperclass(), name); } else { throw new NoSuchFieldException(type.getName() + "." + name); } }
3
myGetMethod 2
                  
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
catch (NoSuchMethodException e) { try { // Try the super classes if (type.getSuperclass() != null) { // System.out.println("Checking super: " // + type.getSuperclass()); return myGetMethod(type.getSuperclass(), name, parameterTypes); } } catch (NoSuchMethodException e2) { // Okay } // Try the super interfaces for (Class<?> superInterface : type.getInterfaces()) { try { // System.out.println("Checking super interface: " // + superInterface); return myGetMethod(superInterface, name, parameterTypes); } catch (NoSuchMethodException e3) { // Okay } } throw new NoSuchMethodException(type.getName() + '.' + getMethodSignature(name, parameterTypes)); }
3
nls 2
                  
// in src/main/java/net/sourceforge/pmd/util/viewer/gui/MainFrame.java
catch (ParseException exc) { setStatus(NLS.nls("MAIN.FRAME.COMPILATION.PROBLEM") + " " + exc.toString()); new ParseExceptionHandler(this, exc); }
// in src/main/java/net/sourceforge/pmd/util/viewer/gui/MainFrame.java
catch (Exception exc) { setStatus(NLS.nls("MAIN.FRAME.EVALUATION.PROBLEM") + " " + exc.toString()); new ParseExceptionHandler(this, exc); }
19
setStatus 2
                  
// in src/main/java/net/sourceforge/pmd/util/viewer/gui/MainFrame.java
catch (ParseException exc) { setStatus(NLS.nls("MAIN.FRAME.COMPILATION.PROBLEM") + " " + exc.toString()); new ParseExceptionHandler(this, exc); }
// in src/main/java/net/sourceforge/pmd/util/viewer/gui/MainFrame.java
catch (Exception exc) { setStatus(NLS.nls("MAIN.FRAME.EVALUATION.PROBLEM") + " " + exc.toString()); new ParseExceptionHandler(this, exc); }
4
showMessageDialog 2
                  
// in src/main/java/net/sourceforge/pmd/cpd/GUI.java
catch (IOException t) { t.printStackTrace(); JOptionPane.showMessageDialog(frame, "Halted due to " + t.getClass().getName() + "; " + t.getMessage()); }
// in src/main/java/net/sourceforge/pmd/cpd/GUI.java
catch (RuntimeException t) { t.printStackTrace(); JOptionPane.showMessageDialog(frame, "Halted due to " + t.getClass().getName() + "; " + t.getMessage()); }
6
usage 2
                  
// in src/main/java/net/sourceforge/pmd/PMD.java
catch (Exception e) { String message = e.getMessage(); if (message != null) { LOG.severe(message); } else { LOG.log(Level.SEVERE, "Exception during processing", e); } LOG.log(Level.FINE, "Exception during processing", e); LOG.info(CommandLineParser.usage()); }
// in src/main/java/net/sourceforge/pmd/PMD.java
catch (Exception e) { System.out.print(CommandLineParser.usage()); System.out.println(e.getMessage()); status = ERROR_STATUS; }
8
ExceptionNode 1
                  
// in src/main/java/net/sourceforge/pmd/util/designer/Designer.java
catch (ParseException pe) { tn = new ExceptionNode(pe); }
2
ProcessingError 1
                  
// in src/main/java/net/sourceforge/pmd/processor/MonoThreadProcessor.java
catch (PMDException pmde) { LOG.log(Level.FINE, "Error while processing file", pmde.getCause()); report.addError(new Report.ProcessingError(pmde.getMessage(), niceFileName)); }
4
addElement 1
                  
// in src/main/java/net/sourceforge/pmd/util/designer/Designer.java
catch (ParseException pe) { xpathResults.addElement(pe.fillInStackTrace().getMessage()); }
6
cancel
1
                  
// in src/main/java/net/sourceforge/pmd/processor/MultiThreadProcessor.java
catch (InterruptedException ie) { Thread.currentThread().interrupt(); future.cancel(true); }
1
currentThread 1
                  
// in src/main/java/net/sourceforge/pmd/processor/MultiThreadProcessor.java
catch (InterruptedException ie) { Thread.currentThread().interrupt(); future.cancel(true); }
2
error 1
                  
// in src/main/java/net/sourceforge/pmd/cpd/GUI.java
catch (IOException e) { error("Couldn't save file" + f.getAbsolutePath(), e); }
7
fillInStackTrace
1
                  
// in src/main/java/net/sourceforge/pmd/util/designer/Designer.java
catch (ParseException pe) { xpathResults.addElement(pe.fillInStackTrace().getMessage()); }
1
getEOF 1
                  
// in src/main/java/net/sourceforge/pmd/cpd/CPPTokenizer.java
catch (TokenMgrError err) { err.printStackTrace(); System.err.println("Skipping " + sourceCode.getFileName() + " due to parse error"); tokenEntries.add(TokenEntry.getEOF()); }
7
getMethodSignature
1
                  
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
catch (NoSuchMethodException e) { try { // Try the super classes if (type.getSuperclass() != null) { // System.out.println("Checking super: " // + type.getSuperclass()); return myGetMethod(type.getSuperclass(), name, parameterTypes); } } catch (NoSuchMethodException e2) { // Okay } // Try the super interfaces for (Class<?> superInterface : type.getInterfaces()) { try { // System.out.println("Checking super interface: " // + superInterface); return myGetMethod(superInterface, name, parameterTypes); } catch (NoSuchMethodException e3) { // Okay } } throw new NoSuchMethodException(type.getName() + '.' + getMethodSignature(name, parameterTypes)); }
1
getProperty 1
                  
// in src/main/java/net/sourceforge/pmd/RuleSetFactory.java
catch (IOException ioe) { throw new RuntimeException("Couldn't find " + rulesetsProperties + "; please ensure that the rulesets directory is on the classpath. The current classpath is: " + System.getProperty("java.class.path")); }
146
getResourceAsStream 1
                  
// in src/main/java/net/sourceforge/pmd/util/ResourceLoader.java
catch (Exception e) { return loader.getResourceAsStream(name); }
6
handleError
1
                  
// in src/main/java/net/sourceforge/pmd/ant/PMDTask.java
catch (RuntimeException pmde) { handleError(ctx, errorReport, pmde); }
1
info
1
                  
// in src/main/java/net/sourceforge/pmd/PMD.java
catch (Exception e) { String message = e.getMessage(); if (message != null) { LOG.severe(message); } else { LOG.log(Level.SEVERE, "Exception during processing", e); } LOG.log(Level.FINE, "Exception during processing", e); LOG.info(CommandLineParser.usage()); }
1
interrupt
1
                  
// in src/main/java/net/sourceforge/pmd/processor/MultiThreadProcessor.java
catch (InterruptedException ie) { Thread.currentThread().interrupt(); future.cancel(true); }
1
isIPv4 1
                  
// in src/main/java/net/sourceforge/pmd/lang/java/rule/basic/AvoidUsingHardCodedIPRule.java
catch (NumberFormatException e) { // The last part can be a standard IPv4 address. if (i != parts.length - 1 || !isIPv4(firstChar, part)) { return false; } ipv4Mapped = true; }
2
jjStopStringLiteralDfa_10 1
                  
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_10(0, active0); return 1; }
2
jjStopStringLiteralDfa_11 1
                  
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_11(0, active0); return 1; }
2
jjStopStringLiteralDfa_12 1
                  
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_12(0, active0); return 1; }
2
jjStopStringLiteralDfa_15 1
                  
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_15(0, active0); return 1; }
2
jjStopStringLiteralDfa_9 1
                  
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_9(0, active0); return 1; }
2
print 1
                  
// in src/main/java/net/sourceforge/pmd/PMD.java
catch (Exception e) { System.out.print(CommandLineParser.usage()); System.out.println(e.getMessage()); status = ERROR_STATUS; }
31
severe
1
                  
// in src/main/java/net/sourceforge/pmd/PMD.java
catch (Exception e) { String message = e.getMessage(); if (message != null) { LOG.severe(message); } else { LOG.log(Level.SEVERE, "Exception during processing", e); } LOG.log(Level.FINE, "Exception during processing", e); LOG.info(CommandLineParser.usage()); }
1
Method Nbr Nbr total
closeNodeScope 136
                  
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, jjtree.nodeArity() > 1); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, jjtree.nodeArity() > 1); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, jjtree.nodeArity() > 1); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, jjtree.nodeArity() > 1); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, jjtree.nodeArity() > 1); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, jjtree.nodeArity() > 1); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, jjtree.nodeArity() > 1); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, jjtree.nodeArity() > 1); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, jjtree.nodeArity() > 1); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, jjtree.nodeArity() > 1); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, jjtree.nodeArity() > 1); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, jjtree.nodeArity() > 1); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, ( jjtn000 . getImage ( ) != null )); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, ( jjtn000 . getImage ( ) != null )); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, ( jjtn000 . getImage ( ) != null )); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, jjtree.nodeArity() > 1); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
196
jj_save
56
                  
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
finally { jj_save(0, xla); }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
finally { jj_save(1, xla); }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { jj_save(0, xla); }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { jj_save(1, xla); }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { jj_save(2, xla); }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { jj_save(3, xla); }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { jj_save(4, xla); }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { jj_save(5, xla); }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { jj_save(6, xla); }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { jj_save(7, xla); }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { jj_save(8, xla); }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { jj_save(9, xla); }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { jj_save(10, xla); }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { jj_save(11, xla); }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { jj_save(12, xla); }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { jj_save(13, xla); }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { jj_save(14, xla); }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { jj_save(15, xla); }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { jj_save(16, xla); }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { jj_save(17, xla); }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { jj_save(18, xla); }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { jj_save(19, xla); }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { jj_save(20, xla); }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { jj_save(21, xla); }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { jj_save(22, xla); }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { jj_save(23, xla); }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { jj_save(24, xla); }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { jj_save(25, xla); }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { jj_save(26, xla); }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { jj_save(27, xla); }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { jj_save(28, xla); }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { jj_save(29, xla); }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { jj_save(30, xla); }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { jj_save(31, xla); }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { jj_save(32, xla); }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { jj_save(33, xla); }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { jj_save(34, xla); }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { jj_save(35, xla); }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { jj_save(36, xla); }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { jj_save(37, xla); }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { jj_save(38, xla); }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { jj_save(39, xla); }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { jj_save(40, xla); }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { jj_save(41, xla); }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { jj_save(42, xla); }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { jj_save(43, xla); }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { jj_save(44, xla); }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { jj_save(45, xla); }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { jj_save(46, xla); }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { jj_save(47, xla); }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { jj_save(48, xla); }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { jj_save(49, xla); }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { jj_save(50, xla); }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { jj_save(51, xla); }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { jj_save(52, xla); }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { jj_save(53, xla); }
56
nodeArity 13
                  
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, jjtree.nodeArity() > 1); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, jjtree.nodeArity() > 1); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, jjtree.nodeArity() > 1); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, jjtree.nodeArity() > 1); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, jjtree.nodeArity() > 1); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, jjtree.nodeArity() > 1); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, jjtree.nodeArity() > 1); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, jjtree.nodeArity() > 1); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, jjtree.nodeArity() > 1); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, jjtree.nodeArity() > 1); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, jjtree.nodeArity() > 1); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, jjtree.nodeArity() > 1); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, jjtree.nodeArity() > 1); } }
15
closeQuietly 10
                  
// in src/main/java/net/sourceforge/pmd/cpd/CPPTokenizer.java
finally { IOUtil.closeQuietly(reader); }
// in src/main/java/net/sourceforge/pmd/cpd/GUI.java
finally { IOUtil.closeQuietly(pw); }
// in src/main/java/net/sourceforge/pmd/cpd/AnyTokenizer.java
finally { IOUtil.closeQuietly(reader); tokenEntries.add(TokenEntry.getEOF()); }
// in src/main/java/net/sourceforge/pmd/cpd/SourceCode.java
finally { IOUtil.closeQuietly(lnr); }
// in src/main/java/net/sourceforge/pmd/cpd/FileReporter.java
finally { IOUtil.closeQuietly(writer); }
// in src/main/java/net/sourceforge/pmd/lang/java/rule/strings/AvoidDuplicateLiteralsRule.java
finally { IOUtil.closeQuietly(reader); }
// in src/main/java/net/sourceforge/pmd/SourceCodeProcessor.java
finally { IOUtil.closeQuietly(sourceCode); }
// in src/main/java/net/sourceforge/pmd/renderers/AbstractRenderer.java
finally { IOUtil.closeQuietly(writer); }
// in src/main/java/net/sourceforge/pmd/renderers/TextColorRenderer.java
finally { IOUtil.closeQuietly(br); }
// in src/main/java/net/sourceforge/pmd/util/ClasspathClassLoader.java
finally { IOUtil.closeQuietly(in); }
14
getImage 3
                  
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, ( jjtn000 . getImage ( ) != null )); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, ( jjtn000 . getImage ( ) != null )); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, ( jjtn000 . getImage ( ) != null )); } }
301
close 2
                  
// in src/main/java/net/sourceforge/pmd/ant/PMDTask.java
finally { logManager.close(); }
// in src/main/java/net/sourceforge/pmd/PMD.java
finally { logHandlerManager.close(); LOG.setLevel(oldLogLevel); if (configuration.isBenchmark()) { long end = System.nanoTime(); Benchmarker.mark(Benchmark.TotalPMD, end - start, 0); TextReport report = new TextReport(); // TODO get specified report format from config report.generate(Benchmarker.values(), System.err); } }
9
mark 2
                  
// in src/main/java/net/sourceforge/pmd/PMD.java
finally { Benchmarker.mark(Benchmark.Reporting, System.nanoTime() - reportStart, 0); }
// in src/main/java/net/sourceforge/pmd/PMD.java
finally { logHandlerManager.close(); LOG.setLevel(oldLogLevel); if (configuration.isBenchmark()) { long end = System.nanoTime(); Benchmarker.mark(Benchmark.TotalPMD, end - start, 0); TextReport report = new TextReport(); // TODO get specified report format from config report.generate(Benchmarker.values(), System.err); } }
29
nanoTime 2
                  
// in src/main/java/net/sourceforge/pmd/PMD.java
finally { Benchmarker.mark(Benchmark.Reporting, System.nanoTime() - reportStart, 0); }
// in src/main/java/net/sourceforge/pmd/PMD.java
finally { logHandlerManager.close(); LOG.setLevel(oldLogLevel); if (configuration.isBenchmark()) { long end = System.nanoTime(); Benchmarker.mark(Benchmark.TotalPMD, end - start, 0); TextReport report = new TextReport(); // TODO get specified report format from config report.generate(Benchmarker.values(), System.err); } }
26
TextReport 1
                  
// in src/main/java/net/sourceforge/pmd/PMD.java
finally { logHandlerManager.close(); LOG.setLevel(oldLogLevel); if (configuration.isBenchmark()) { long end = System.nanoTime(); Benchmarker.mark(Benchmark.TotalPMD, end - start, 0); TextReport report = new TextReport(); // TODO get specified report format from config report.generate(Benchmarker.values(), System.err); } }
2
add 1
                  
// in src/main/java/net/sourceforge/pmd/cpd/AnyTokenizer.java
finally { IOUtil.closeQuietly(reader); tokenEntries.add(TokenEntry.getEOF()); }
517
generate 1
                  
// in src/main/java/net/sourceforge/pmd/PMD.java
finally { logHandlerManager.close(); LOG.setLevel(oldLogLevel); if (configuration.isBenchmark()) { long end = System.nanoTime(); Benchmarker.mark(Benchmark.TotalPMD, end - start, 0); TextReport report = new TextReport(); // TODO get specified report format from config report.generate(Benchmarker.values(), System.err); } }
3
getEOF 1
                  
// in src/main/java/net/sourceforge/pmd/cpd/AnyTokenizer.java
finally { IOUtil.closeQuietly(reader); tokenEntries.add(TokenEntry.getEOF()); }
7
isBenchmark
1
                  
// in src/main/java/net/sourceforge/pmd/PMD.java
finally { logHandlerManager.close(); LOG.setLevel(oldLogLevel); if (configuration.isBenchmark()) { long end = System.nanoTime(); Benchmarker.mark(Benchmark.TotalPMD, end - start, 0); TextReport report = new TextReport(); // TODO get specified report format from config report.generate(Benchmarker.values(), System.err); } }
1
populateImports
1
                  
// in src/main/java/net/sourceforge/pmd/lang/java/typeresolution/ClassTypeResolver.java
finally { populateImports(node); }
1
setLevel 1
                  
// in src/main/java/net/sourceforge/pmd/PMD.java
finally { logHandlerManager.close(); LOG.setLevel(oldLogLevel); if (configuration.isBenchmark()) { long end = System.nanoTime(); Benchmarker.mark(Benchmark.TotalPMD, end - start, 0); TextReport report = new TextReport(); // TODO get specified report format from config report.generate(Benchmarker.values(), System.err); } }
4
values 1
                  
// in src/main/java/net/sourceforge/pmd/PMD.java
finally { logHandlerManager.close(); LOG.setLevel(oldLogLevel); if (configuration.isBenchmark()) { long end = System.nanoTime(); Benchmarker.mark(Benchmark.TotalPMD, end - start, 0); TextReport report = new TextReport(); // TODO get specified report format from config report.generate(Benchmarker.values(), System.err); } }
28

Reference Table

This table concatenates the results of the previous tables.

Checked/Runtime Type Exception Thrown Thrown from Catch Declared Caught directly Caught
with Thrown
Caught
with Thrown Runtime
unknown (Lib) . 0 0 0 0 0 0
unknown (Lib) ArrayIndexOutOfBoundsException 0 0 0 1
            
// in src/main/java/net/sourceforge/pmd/RulePriority.java
catch (ArrayIndexOutOfBoundsException e) { return LOW; }
0 0
unknown (Lib) BadLocationException 0 0 0 1
            
// in src/main/java/net/sourceforge/pmd/util/viewer/gui/SourceCodePanel.java
catch (BadLocationException exc) { throw new IllegalStateException(exc.getMessage()); }
1
            
// in src/main/java/net/sourceforge/pmd/util/viewer/gui/SourceCodePanel.java
catch (BadLocationException exc) { throw new IllegalStateException(exc.getMessage()); }
1
unknown (Lib) BuildException 14
            
// in src/main/java/net/sourceforge/pmd/cpd/CPDTask.java
public void execute() throws BuildException { try { validateFields(); log("Starting run, minimumTokenCount is " + minimumTokenCount, Project.MSG_INFO); log("Tokenizing files", Project.MSG_INFO); CPDConfiguration config = new CPDConfiguration( minimumTokenCount, createLanguage(), encoding ); CPD cpd = new CPD(config); tokenizeFiles(cpd); log("Starting to analyze code", Project.MSG_INFO); long timeTaken = analyzeCode(cpd); log("Done analyzing code; that took " + timeTaken + " milliseconds"); log("Generating report", Project.MSG_INFO); report(cpd); } catch (IOException ioe) { log(ioe.toString(), Project.MSG_ERR); throw new BuildException("IOException during task execution", ioe); } catch (ReportException re) { re.printStackTrace(); log(re.toString(), Project.MSG_ERR); throw new BuildException("ReportException during task execution", re); } }
// in src/main/java/net/sourceforge/pmd/cpd/CPDTask.java
private void validateFields() throws BuildException { if (minimumTokenCount == 0) { throw new BuildException("minimumTokenCount is required and must be greater than zero"); } else if (filesets.isEmpty()) { throw new BuildException("Must include at least one FileSet"); } }
// in src/main/java/net/sourceforge/pmd/ant/PMDTask.java
public void addConfiguredVersion(Version version) { LanguageVersion languageVersion = LanguageVersion.findByTerseName(version.getTerseName()); if (languageVersion == null) { StringBuilder buf = new StringBuilder("The <version> element, if used, must be one of "); boolean first = true; for (Language language : Language.values()) { if (language.getVersions().size() > 2) { for (LanguageVersion v : language.getVersions()) { if (!first) { buf.append(", "); } buf.append('\'').append(v.getTerseName()).append('\''); first = false; } } } buf.append('.'); throw new BuildException(buf.toString()); } configuration.setDefaultLanguageVersion(languageVersion); }
// in src/main/java/net/sourceforge/pmd/ant/PMDTask.java
private void doTask() { setupClassLoader(); // Setup RuleSetFactory and validate RuleSets RuleSetFactory ruleSetFactory = new RuleSetFactory(); ruleSetFactory.setClassLoader(configuration.getClassLoader()); try { // This is just used to validate and display rules. Each thread will create its own ruleset ruleSetFactory.setMinimumPriority(configuration.getMinimumPriority()); ruleSetFactory.setWarnDeprecated(true); String ruleSets = configuration.getRuleSets(); if (StringUtil.isNotEmpty(ruleSets)) { // Substitute env variables/properties configuration.setRuleSets(getProject().replaceProperties(ruleSets)); } RuleSets rules = ruleSetFactory.createRuleSets(configuration.getRuleSets()); ruleSetFactory.setWarnDeprecated(false); logRulesUsed(rules); } catch (RuleSetNotFoundException e) { throw new BuildException(e.getMessage(), e); } if (configuration.getSuppressMarker() != null) { log("Setting suppress marker to be " + configuration.getSuppressMarker(), Project.MSG_VERBOSE); } // Start the Formatters for (Formatter formatter : formatters) { log("Sending a report to " + formatter, Project.MSG_VERBOSE); formatter.start(getProject().getBaseDir().toString()); } //log("Setting Language Version " + languageVersion.getShortName(), Project.MSG_VERBOSE); // TODO Do we really need all this in a loop over each FileSet? Seems like a lot of redundancy RuleContext ctx = new RuleContext(); Report errorReport = new Report(); final AtomicInteger reportSize = new AtomicInteger(); final String separator = System.getProperty("file.separator"); for (FileSet fs : filesets) { List<DataSource> files = new LinkedList<DataSource>(); DirectoryScanner ds = fs.getDirectoryScanner(getProject()); String[] srcFiles = ds.getIncludedFiles(); for (String srcFile : srcFiles) { File file = new File(ds.getBasedir() + separator + srcFile); files.add(new FileDataSource(file)); } final String inputPaths = ds.getBasedir().getPath(); configuration.setInputPaths(inputPaths); Renderer logRenderer = new AbstractRenderer("log", "Logging renderer", null) { public void start() { // Nothing to do } public void startFileAnalysis(DataSource dataSource) { log("Processing file " + dataSource.getNiceFileName(false, inputPaths), Project.MSG_VERBOSE); } public void renderFileReport(Report r) { int size = r.size(); if (size > 0) { reportSize.addAndGet(size); } } public void end() { // Nothing to do } public String defaultFileExtension() { return null; } // not relevant }; List<Renderer> renderers = new LinkedList<Renderer>(); renderers.add(logRenderer); for (Formatter formatter : formatters) { renderers.add(formatter.getRenderer()); } try { PMD.processFiles(configuration, ruleSetFactory, files, ctx, renderers); } catch (RuntimeException pmde) { handleError(ctx, errorReport, pmde); } } int problemCount = reportSize.get(); log(problemCount + " problems found", Project.MSG_VERBOSE); for (Formatter formatter : formatters) { formatter.end(errorReport); } if (failuresPropertyName != null && problemCount > 0) { getProject().setProperty(failuresPropertyName, String.valueOf(problemCount)); log("Setting property " + failuresPropertyName + " to " + problemCount, Project.MSG_VERBOSE); } if (failOnRuleViolation && problemCount > maxRuleViolations) { throw new BuildException("Stopping build since PMD found " + problemCount + " rule violations in the code"); } }
// in src/main/java/net/sourceforge/pmd/ant/PMDTask.java
private void handleError(RuleContext ctx, Report errorReport, RuntimeException pmde) { pmde.printStackTrace(); log(pmde.toString(), Project.MSG_VERBOSE); Throwable cause = pmde.getCause(); if (cause != null) { StringWriter strWriter = new StringWriter(); PrintWriter printWriter = new PrintWriter(strWriter); cause.printStackTrace(printWriter); log(strWriter.toString(), Project.MSG_VERBOSE); IOUtil.closeQuietly(printWriter); if (StringUtil.isNotEmpty(cause.getMessage())) { log(cause.getMessage(), Project.MSG_VERBOSE); } } if (failOnError) { throw new BuildException(pmde); } errorReport.addError(new Report.ProcessingError(pmde.getMessage(), ctx.getSourceCodeFilename())); }
// in src/main/java/net/sourceforge/pmd/ant/PMDTask.java
private void setupClassLoader() { if (classpath == null) { log("Using the normal ClassLoader", Project.MSG_VERBOSE); } else { log("Using the AntClassLoader", Project.MSG_VERBOSE); configuration.setClassLoader(new AntClassLoader(getProject(), classpath)); } try { /* * 'basedir' is added to the path to make sure that relative paths * such as "<ruleset>resources/custom_ruleset.xml</ruleset>" still * work when ant is invoked from a different directory using "-f" */ configuration.prependClasspath(getProject().getBaseDir().toString()); if (auxClasspath != null) { log("Using auxclasspath: " + auxClasspath, Project.MSG_VERBOSE); configuration.prependClasspath(auxClasspath.toString()); } } catch (IOException ioe) { throw new BuildException(ioe.getMessage(), ioe); } }
// in src/main/java/net/sourceforge/pmd/ant/PMDTask.java
private void validate() throws BuildException { if (formatters.isEmpty()) { Formatter defaultFormatter = new Formatter(); defaultFormatter.setType("text"); defaultFormatter.setToConsole(true); formatters.add(defaultFormatter); } else { for (Formatter f : formatters) { if (f.isNoOutputSupplied()) { throw new BuildException("toFile or toConsole needs to be specified in Formatter"); } } } if (configuration.getRuleSets() == null) { if (nestedRules.isEmpty()) { throw new BuildException("No rulesets specified"); } configuration.setRuleSets(getNestedRuleSetFiles()); } }
// in src/main/java/net/sourceforge/pmd/ant/Formatter.java
public void start(String baseDir) { try { if (toConsole) { writer = new BufferedWriter(new OutputStreamWriter(System.out)); } if (toFile != null) { writer = getToFileWriter(baseDir); } renderer = createRenderer(); renderer.setWriter(writer); renderer.start(); } catch (IOException ioe) { throw new BuildException(ioe.getMessage(), ioe); } }
// in src/main/java/net/sourceforge/pmd/ant/Formatter.java
public void end(Report errorReport) { try { renderer.renderFileReport(errorReport); renderer.end(); if (toConsole) { writer.flush(); } else { writer.close(); } } catch (IOException ioe) { throw new BuildException(ioe.getMessage(), ioe); } }
// in src/main/java/net/sourceforge/pmd/ant/Formatter.java
private Renderer createRenderer() { if (StringUtil.isEmpty(type)) { throw new BuildException(unknownRendererMessage("<unspecified>")); } Properties properties = createProperties(); Renderer renderer = RendererFactory.createRenderer(type, properties); renderer.setShowSuppressedViolations(showSuppressed); return renderer; }
6
            
// in src/main/java/net/sourceforge/pmd/cpd/CPDTask.java
catch (IOException ioe) { log(ioe.toString(), Project.MSG_ERR); throw new BuildException("IOException during task execution", ioe); }
// in src/main/java/net/sourceforge/pmd/cpd/CPDTask.java
catch (ReportException re) { re.printStackTrace(); log(re.toString(), Project.MSG_ERR); throw new BuildException("ReportException during task execution", re); }
// in src/main/java/net/sourceforge/pmd/ant/PMDTask.java
catch (RuleSetNotFoundException e) { throw new BuildException(e.getMessage(), e); }
// in src/main/java/net/sourceforge/pmd/ant/PMDTask.java
catch (IOException ioe) { throw new BuildException(ioe.getMessage(), ioe); }
// in src/main/java/net/sourceforge/pmd/ant/Formatter.java
catch (IOException ioe) { throw new BuildException(ioe.getMessage(), ioe); }
// in src/main/java/net/sourceforge/pmd/ant/Formatter.java
catch (IOException ioe) { throw new BuildException(ioe.getMessage(), ioe); }
4
            
// in src/main/java/net/sourceforge/pmd/cpd/CPDTask.java
public void execute() throws BuildException { try { validateFields(); log("Starting run, minimumTokenCount is " + minimumTokenCount, Project.MSG_INFO); log("Tokenizing files", Project.MSG_INFO); CPDConfiguration config = new CPDConfiguration( minimumTokenCount, createLanguage(), encoding ); CPD cpd = new CPD(config); tokenizeFiles(cpd); log("Starting to analyze code", Project.MSG_INFO); long timeTaken = analyzeCode(cpd); log("Done analyzing code; that took " + timeTaken + " milliseconds"); log("Generating report", Project.MSG_INFO); report(cpd); } catch (IOException ioe) { log(ioe.toString(), Project.MSG_ERR); throw new BuildException("IOException during task execution", ioe); } catch (ReportException re) { re.printStackTrace(); log(re.toString(), Project.MSG_ERR); throw new BuildException("ReportException during task execution", re); } }
// in src/main/java/net/sourceforge/pmd/cpd/CPDTask.java
private void validateFields() throws BuildException { if (minimumTokenCount == 0) { throw new BuildException("minimumTokenCount is required and must be greater than zero"); } else if (filesets.isEmpty()) { throw new BuildException("Must include at least one FileSet"); } }
// in src/main/java/net/sourceforge/pmd/ant/PMDTask.java
Override public void execute() throws BuildException { validate(); final Handler antLogHandler = new AntLogHandler(this); final ScopedLogHandlersManager logManager = new ScopedLogHandlersManager(Level.FINEST, antLogHandler); try { doTask(); } finally { logManager.close(); } }
// in src/main/java/net/sourceforge/pmd/ant/PMDTask.java
private void validate() throws BuildException { if (formatters.isEmpty()) { Formatter defaultFormatter = new Formatter(); defaultFormatter.setType("text"); defaultFormatter.setToConsole(true); formatters.add(defaultFormatter); } else { for (Formatter f : formatters) { if (f.isNoOutputSupplied()) { throw new BuildException("toFile or toConsole needs to be specified in Formatter"); } } } if (configuration.getRuleSets() == null) { if (nestedRules.isEmpty()) { throw new BuildException("No rulesets specified"); } configuration.setRuleSets(getNestedRuleSetFiles()); } }
0 0 0
unknown (Lib) CannotRedoException 0 0 0 1
            
// in src/main/java/net/sourceforge/pmd/util/designer/Designer.java
catch (CannotRedoException e) { }
0 0
unknown (Lib) CannotUndoException 0 0 0 1
            
// in src/main/java/net/sourceforge/pmd/util/designer/Designer.java
catch (CannotUndoException e) { }
0 0
unknown (Lib) ClassFormatError 0 0 0 2
            
// in src/main/java/net/sourceforge/pmd/lang/java/typeresolution/ClassTypeResolver.java
catch (ClassFormatError e) { LOG.log(Level.WARNING, "Could not find class " + className + ", due to: " + e.getClass().getName() + ": " + e.getMessage()); }
// in src/main/java/net/sourceforge/pmd/lang/java/typeresolution/ClassTypeResolver.java
catch (ClassFormatError e) { myType = processOnDemand(qualifiedName); }
0 0
unknown (Lib) ClassNotFoundException 7
            
// in src/main/java/net/sourceforge/pmd/lang/java/typeresolution/PMDASMClassLoader.java
public synchronized Map<String, String> getImportedClasses(String name) throws ClassNotFoundException { if (dontBother.contains(name)) { throw new ClassNotFoundException(name); } try { ClassReader reader = new ClassReader(getResourceAsStream(name.replace('.', '/') + ".class")); PMDASMVisitor asmVisitor = new PMDASMVisitor(); reader.accept(asmVisitor, 0); List<String> inner = asmVisitor.getInnerClasses(); if (inner != null && !inner.isEmpty()) { inner = new ArrayList<String>(inner); // to avoid ConcurrentModificationException for (String str: inner) { reader = new ClassReader(getResourceAsStream(str.replace('.', '/') + ".class")); reader.accept(asmVisitor, 0); } } return asmVisitor.getPackages(); } catch (IOException e) { dontBother.add(name); throw new ClassNotFoundException(name, e); } }
// in src/main/java/net/sourceforge/pmd/lang/java/symboltable/TypeSet.java
public Class<?> resolve(String name) throws ClassNotFoundException { for (String importStmt : importStmts) { if (importStmt.endsWith(name)) { return Class.forName(importStmt); } } throw new ClassNotFoundException("Type " + name + " not found"); }
// in src/main/java/net/sourceforge/pmd/lang/java/symboltable/TypeSet.java
public Class<?> resolve(String name) throws ClassNotFoundException { for (String importStmt : importStmts) { if (importStmt.endsWith("*")) { try { String importPkg = importStmt.substring(0, importStmt.indexOf('*') - 1); return Class.forName(importPkg + '.' + name); } catch (ClassNotFoundException cnfe) { } } } throw new ClassNotFoundException("Type " + name + " not found"); }
// in src/main/java/net/sourceforge/pmd/lang/java/symboltable/TypeSet.java
public Class<?> resolve(String name) throws ClassNotFoundException { if (name.equals("void")) { return void.class; } throw new ClassNotFoundException(); }
// in src/main/java/net/sourceforge/pmd/lang/java/symboltable/TypeSet.java
public Class<?> findClass(String name) throws ClassNotFoundException { // we don't build the resolvers until now since we first want to get all the imports if (resolvers.isEmpty()) { buildResolvers(); } for (Resolver resolver : resolvers) { try { return resolver.resolve(name); } catch (ClassNotFoundException cnfe) { } } throw new ClassNotFoundException("Type " + name + " not found"); }
1
            
// in src/main/java/net/sourceforge/pmd/lang/java/typeresolution/PMDASMClassLoader.java
catch (IOException e) { dontBother.add(name); throw new ClassNotFoundException(name, e); }
11
            
// in src/main/java/net/sourceforge/pmd/RuleSetFactory.java
private void parseRuleNode(RuleSetReferenceId ruleSetReferenceId, RuleSet ruleSet, Node ruleNode) throws ClassNotFoundException, InstantiationException, IllegalAccessException, RuleSetNotFoundException { Element ruleElement = (Element) ruleNode; String ref = ruleElement.getAttribute("ref"); if (ref.endsWith("xml")) { parseRuleSetReferenceNode(ruleSetReferenceId, ruleSet, ruleElement, ref); } else if (StringUtil.isEmpty(ref)) { parseSingleRuleNode(ruleSetReferenceId, ruleSet, ruleNode); } else { parseRuleReferenceNode(ruleSetReferenceId, ruleSet, ruleNode, ref); } }
// in src/main/java/net/sourceforge/pmd/RuleSetFactory.java
private void parseSingleRuleNode(RuleSetReferenceId ruleSetReferenceId, RuleSet ruleSet, Node ruleNode) throws ClassNotFoundException, InstantiationException, IllegalAccessException { Element ruleElement = (Element) ruleNode; // Stop if we're looking for a particular Rule, and this element is not it. if (StringUtil.isNotEmpty(ruleSetReferenceId.getRuleName()) && !isRuleName(ruleElement, ruleSetReferenceId.getRuleName())) { return; } String attribute = ruleElement.getAttribute("class"); Class<?> c = classLoader.loadClass(attribute); Rule rule = (Rule) c.newInstance(); rule.setName(ruleElement.getAttribute("name")); if (ruleElement.hasAttribute("language")) { String languageName = ruleElement.getAttribute("language"); Language language = Language.findByTerseName(languageName); if (language == null) { throw new IllegalArgumentException("Unknown Language '" + languageName + "' for Rule " + rule.getName() + ", supported Languages are " + Language.commaSeparatedTerseNames(Language.findWithRuleSupport())); } rule.setLanguage(language); } Language language = rule.getLanguage(); if (language == null) { throw new IllegalArgumentException("Rule " + rule.getName() + " does not have a Language; missing 'language' attribute?"); } if (ruleElement.hasAttribute("minimumLanguageVersion")) { String minimumLanguageVersionName = ruleElement.getAttribute("minimumLanguageVersion"); LanguageVersion minimumLanguageVersion = language.getVersion(minimumLanguageVersionName); if (minimumLanguageVersion == null) { throw new IllegalArgumentException("Unknown minimum Language Version '" + minimumLanguageVersionName + "' for Language '" + language.getTerseName() + "' for Rule " + rule.getName() + "; supported Language Versions are: " + LanguageVersion.commaSeparatedTerseNames(language.getVersions())); } rule.setMinimumLanguageVersion(minimumLanguageVersion); } if (ruleElement.hasAttribute("maximumLanguageVersion")) { String maximumLanguageVersionName = ruleElement.getAttribute("maximumLanguageVersion"); LanguageVersion maximumLanguageVersion = language.getVersion(maximumLanguageVersionName); if (maximumLanguageVersion == null) { throw new IllegalArgumentException("Unknown maximum Language Version '" + maximumLanguageVersionName + "' for Language '" + language.getTerseName() + "' for Rule " + rule.getName() + "; supported Language Versions are: " + LanguageVersion.commaSeparatedTerseNames(language.getVersions())); } rule.setMaximumLanguageVersion(maximumLanguageVersion); } if (rule.getMinimumLanguageVersion() != null && rule.getMaximumLanguageVersion() != null) { throw new IllegalArgumentException("The minimum Language Version '" + rule.getMinimumLanguageVersion().getTerseName() + "' must be prior to the maximum Language Version '" + rule.getMaximumLanguageVersion().getTerseName() + "' for Rule " + rule.getName() + "; perhaps swap them around?"); } String since = ruleElement.getAttribute("since"); if (StringUtil.isNotEmpty(since)) { rule.setSince(since); } rule.setMessage(ruleElement.getAttribute("message")); rule.setRuleSetName(ruleSet.getName()); rule.setExternalInfoUrl(ruleElement.getAttribute("externalInfoUrl")); if (hasAttributeSetTrue(ruleElement,"dfa")) { rule.setUsesDFA(); } if (hasAttributeSetTrue(ruleElement,"typeResolution")) { rule.setUsesTypeResolution(); } final NodeList nodeList = ruleElement.getChildNodes(); for (int i = 0; i < nodeList.getLength(); i++) { Node node = nodeList.item(i); if (node.getNodeType() != Node.ELEMENT_NODE) { continue; } String nodeName = node.getNodeName(); if (nodeName.equals("description")) { rule.setDescription(parseTextNode(node)); } else if (nodeName.equals("example")) { rule.addExample(parseTextNode(node)); } else if (nodeName.equals("priority")) { rule.setPriority(RulePriority.valueOf(Integer.parseInt(parseTextNode(node).trim()))); } else if (nodeName.equals("properties")) { parsePropertiesNode(rule, node); } else { throw new IllegalArgumentException("Unexpected element <" + nodeName + "> encountered as child of <rule> element for Rule " + rule.getName()); } } if (StringUtil.isNotEmpty(ruleSetReferenceId.getRuleName()) || rule.getPriority().compareTo(minimumPriority) <= 0) { ruleSet.addRule(rule); } }
// in src/main/java/net/sourceforge/pmd/lang/java/typeresolution/PMDASMClassLoader.java
public synchronized Map<String, String> getImportedClasses(String name) throws ClassNotFoundException { if (dontBother.contains(name)) { throw new ClassNotFoundException(name); } try { ClassReader reader = new ClassReader(getResourceAsStream(name.replace('.', '/') + ".class")); PMDASMVisitor asmVisitor = new PMDASMVisitor(); reader.accept(asmVisitor, 0); List<String> inner = asmVisitor.getInnerClasses(); if (inner != null && !inner.isEmpty()) { inner = new ArrayList<String>(inner); // to avoid ConcurrentModificationException for (String str: inner) { reader = new ClassReader(getResourceAsStream(str.replace('.', '/') + ".class")); reader.accept(asmVisitor, 0); } } return asmVisitor.getPackages(); } catch (IOException e) { dontBother.add(name); throw new ClassNotFoundException(name, e); } }
// in src/main/java/net/sourceforge/pmd/lang/java/typeresolution/ClassTypeResolver.java
private void populateClassName(ASTCompilationUnit node, String className) throws ClassNotFoundException { node.setType(pmdClassLoader.loadClass(className)); importedClasses.putAll(pmdClassLoader.getImportedClasses(className)); }
// in src/main/java/net/sourceforge/pmd/lang/java/symboltable/TypeSet.java
public Class<?> resolve(String name) throws ClassNotFoundException { for (String importStmt : importStmts) { if (importStmt.endsWith(name)) { return Class.forName(importStmt); } } throw new ClassNotFoundException("Type " + name + " not found"); }
// in src/main/java/net/sourceforge/pmd/lang/java/symboltable/TypeSet.java
public Class<?> resolve(String name) throws ClassNotFoundException { return Class.forName(pkg + name); }
// in src/main/java/net/sourceforge/pmd/lang/java/symboltable/TypeSet.java
public Class<?> resolve(String name) throws ClassNotFoundException { return Class.forName("java.lang." + name); }
// in src/main/java/net/sourceforge/pmd/lang/java/symboltable/TypeSet.java
public Class<?> resolve(String name) throws ClassNotFoundException { for (String importStmt : importStmts) { if (importStmt.endsWith("*")) { try { String importPkg = importStmt.substring(0, importStmt.indexOf('*') - 1); return Class.forName(importPkg + '.' + name); } catch (ClassNotFoundException cnfe) { } } } throw new ClassNotFoundException("Type " + name + " not found"); }
// in src/main/java/net/sourceforge/pmd/lang/java/symboltable/TypeSet.java
public Class<?> resolve(String name) throws ClassNotFoundException { if (name.equals("void")) { return void.class; } throw new ClassNotFoundException(); }
// in src/main/java/net/sourceforge/pmd/lang/java/symboltable/TypeSet.java
public Class<?> resolve(String name) throws ClassNotFoundException { return Class.forName(name); }
// in src/main/java/net/sourceforge/pmd/lang/java/symboltable/TypeSet.java
public Class<?> findClass(String name) throws ClassNotFoundException { // we don't build the resolvers until now since we first want to get all the imports if (resolvers.isEmpty()) { buildResolvers(); } for (Resolver resolver : resolvers) { try { return resolver.resolve(name); } catch (ClassNotFoundException cnfe) { } } throw new ClassNotFoundException("Type " + name + " not found"); }
9
            
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
catch (ClassNotFoundException e) { throw new RuntimeException(e); }
// in src/main/java/net/sourceforge/pmd/cpd/LanguageFactory.java
catch (ClassNotFoundException e) { // No class found, returning default implementation // FIXME: There should be somekind of log of this return null; }
// in src/main/java/net/sourceforge/pmd/RuleSetFactory.java
catch (ClassNotFoundException cnfe) { return classNotFoundProblem(cnfe); }
// in src/main/java/net/sourceforge/pmd/lang/java/typeresolution/ClassTypeResolver.java
catch (ClassNotFoundException e) { LOG.log(Level.FINE, "Could not find class " + className + ", due to: " + e.getClass().getName() + ": " + e.getMessage()); }
// in src/main/java/net/sourceforge/pmd/lang/java/typeresolution/ClassTypeResolver.java
catch (ClassNotFoundException e) { myType = processOnDemand(qualifiedName); }
// in src/main/java/net/sourceforge/pmd/lang/java/typeresolution/ClassTypeResolver.java
catch (ClassNotFoundException e) { return false; }
// in src/main/java/net/sourceforge/pmd/lang/java/symboltable/TypeSet.java
catch (ClassNotFoundException cnfe) { }
// in src/main/java/net/sourceforge/pmd/lang/java/symboltable/TypeSet.java
catch (ClassNotFoundException cnfe) { }
// in src/main/java/net/sourceforge/pmd/renderers/RendererFactory.java
catch (ClassNotFoundException e) { throw new IllegalArgumentException("Can't find the custom format " + reportFormat + ": " + e.getClass().getName()); }
2
            
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
catch (ClassNotFoundException e) { throw new RuntimeException(e); }
// in src/main/java/net/sourceforge/pmd/renderers/RendererFactory.java
catch (ClassNotFoundException e) { throw new IllegalArgumentException("Can't find the custom format " + reportFormat + ": " + e.getClass().getName()); }
2
unknown (Lib) DOMException 0 0 0 1
            
// in src/main/java/net/sourceforge/pmd/RuleSetWriter.java
catch (DOMException e) { throw new RuntimeException(e); }
1
            
// in src/main/java/net/sourceforge/pmd/RuleSetWriter.java
catch (DOMException e) { throw new RuntimeException(e); }
1
runtime (Lib) Error 3
            
// in src/main/java/net/sourceforge/pmd/lang/ast/JavaCharStream.java
protected void ExpandBuff(boolean wrapAround) { char[] newbuffer = new char[bufsize + 2048]; int newbufline[] = new int[bufsize + 2048]; int newbufcolumn[] = new int[bufsize + 2048]; try { if (wrapAround) { System.arraycopy(buffer, tokenBegin, newbuffer, 0, bufsize - tokenBegin); System.arraycopy(buffer, 0, newbuffer, bufsize - tokenBegin, bufpos); buffer = newbuffer; System.arraycopy(bufline, tokenBegin, newbufline, 0, bufsize - tokenBegin); System.arraycopy(bufline, 0, newbufline, bufsize - tokenBegin, bufpos); bufline = newbufline; System.arraycopy(bufcolumn, tokenBegin, newbufcolumn, 0, bufsize - tokenBegin); System.arraycopy(bufcolumn, 0, newbufcolumn, bufsize - tokenBegin, bufpos); bufcolumn = newbufcolumn; bufpos += (bufsize - tokenBegin); } else { System.arraycopy(buffer, tokenBegin, newbuffer, 0, bufsize - tokenBegin); buffer = newbuffer; System.arraycopy(bufline, tokenBegin, newbufline, 0, bufsize - tokenBegin); bufline = newbufline; System.arraycopy(bufcolumn, tokenBegin, newbufcolumn, 0, bufsize - tokenBegin); bufcolumn = newbufcolumn; bufpos -= tokenBegin; } } catch (Throwable t) { throw new Error(t.getMessage()); } available = (bufsize += 2048); tokenBegin = 0; }
// in src/main/java/net/sourceforge/pmd/lang/ast/JavaCharStream.java
public char readChar() throws java.io.IOException { if (inBuf > 0) { --inBuf; if (++bufpos == bufsize) bufpos = 0; return buffer[bufpos]; } char c; if (++bufpos == available) AdjustBuffSize(); if ((buffer[bufpos] = c = ReadByte()) == '\\') { UpdateLineColumn(c); int backSlashCnt = 1; for (;;) // Read all the backslashes { if (++bufpos == available) AdjustBuffSize(); try { if ((buffer[bufpos] = c = ReadByte()) != '\\') { UpdateLineColumn(c); // found a non-backslash char. if ((c == 'u') && ((backSlashCnt & 1) == 1)) { if (--bufpos < 0) bufpos = bufsize - 1; break; } backup(backSlashCnt); return '\\'; } } catch(java.io.IOException e) { if (backSlashCnt > 1) backup(backSlashCnt-1); return '\\'; } UpdateLineColumn(c); backSlashCnt++; } // Here, we have seen an odd number of backslash's followed by a 'u' try { while ((c = ReadByte()) == 'u') ++column; buffer[bufpos] = c = (char)(hexval(c) << 12 | hexval(ReadByte()) << 8 | hexval(ReadByte()) << 4 | hexval(ReadByte())); column += 4; } catch(java.io.IOException e) { throw new Error("Invalid escape character at line " + line + " column " + column + "."); } if (backSlashCnt == 1) return c; else { backup(backSlashCnt - 1); return '\\'; } } else { UpdateLineColumn(c); return c; } }
// in src/main/java/net/sourceforge/pmd/lang/ast/SimpleCharStream.java
protected void ExpandBuff(boolean wrapAround) { char[] newbuffer = new char[bufsize + 2048]; int newbufline[] = new int[bufsize + 2048]; int newbufcolumn[] = new int[bufsize + 2048]; try { if (wrapAround) { System.arraycopy(buffer, tokenBegin, newbuffer, 0, bufsize - tokenBegin); System.arraycopy(buffer, 0, newbuffer, bufsize - tokenBegin, bufpos); buffer = newbuffer; System.arraycopy(bufline, tokenBegin, newbufline, 0, bufsize - tokenBegin); System.arraycopy(bufline, 0, newbufline, bufsize - tokenBegin, bufpos); bufline = newbufline; System.arraycopy(bufcolumn, tokenBegin, newbufcolumn, 0, bufsize - tokenBegin); System.arraycopy(bufcolumn, 0, newbufcolumn, bufsize - tokenBegin, bufpos); bufcolumn = newbufcolumn; maxNextCharInd = (bufpos += (bufsize - tokenBegin)); } else { System.arraycopy(buffer, tokenBegin, newbuffer, 0, bufsize - tokenBegin); buffer = newbuffer; System.arraycopy(bufline, tokenBegin, newbufline, 0, bufsize - tokenBegin); bufline = newbufline; System.arraycopy(bufcolumn, tokenBegin, newbufcolumn, 0, bufsize - tokenBegin); bufcolumn = newbufcolumn; maxNextCharInd = (bufpos -= tokenBegin); } } catch (Throwable t) { throw new Error(t.getMessage()); } bufsize += 2048; available = bufsize; tokenBegin = 0; }
3
            
// in src/main/java/net/sourceforge/pmd/lang/ast/JavaCharStream.java
catch (Throwable t) { throw new Error(t.getMessage()); }
// in src/main/java/net/sourceforge/pmd/lang/ast/JavaCharStream.java
catch(java.io.IOException e) { throw new Error("Invalid escape character at line " + line + " column " + column + "."); }
// in src/main/java/net/sourceforge/pmd/lang/ast/SimpleCharStream.java
catch (Throwable t) { throw new Error(t.getMessage()); }
1
            
// in src/main/java/net/sourceforge/pmd/processor/MultiThreadProcessor.java
private void processReports(final List<Renderer> renderers, List<Future<Report>> tasks) throws Error { while (!tasks.isEmpty()) { Future<Report> future = tasks.remove(0); Report report = null; try { report = future.get(); } catch (InterruptedException ie) { Thread.currentThread().interrupt(); future.cancel(true); } catch (ExecutionException ee) { Throwable t = ee.getCause(); if (t instanceof RuntimeException) { throw (RuntimeException) t; } else if (t instanceof Error) { throw (Error) t; } else { throw new IllegalStateException( "PmdRunnable exception", t); } } super.renderReports(renderers, report); } }
0 0 0
checked (Lib) Exception 0 0 3
            
// in src/main/java/net/sourceforge/pmd/dcd/DCD.java
public static void main(String[] args) throws Exception { // 1) Directories List<File> directories = new ArrayList<File>(); directories.add(new File("C:/pmd/workspace/pmd-trunk/src")); // Basic filter FilenameFilter javaFilter = new FilenameFilter() { public boolean accept(File dir, String name) { // Recurse on directories if (new File(dir, name).isDirectory()) { return true; } else { return name.endsWith(".java"); } } }; // 2) Filename filters List<FilenameFilter> filters = new ArrayList<FilenameFilter>(); filters.add(javaFilter); assert directories.size() == filters.size(); // Find all files, convert to class names List<String> classes = new ArrayList<String>(); for (int i = 0; i < directories.size(); i++) { File directory = directories.get(i); FilenameFilter filter = filters.get(i); List<File> files = new FileFinder().findFilesFrom(directory.getPath(), filter, true); for (File file : files) { String name = file.getPath(); // Chop off directory name = name.substring(directory.getPath().length() + 1); // Drop extension name = name.replaceAll("\\.java$", ""); // Trim path separators name = name.replace('\\', '.'); name = name.replace('/', '.'); classes.add(name); } } long start = System.currentTimeMillis(); // Define filter for "indirect users" and "dead code candidates". // TODO Need to support these are different concepts. List<String> includeRegexes = Arrays.asList(new String[] { "net\\.sourceforge\\.pmd\\.dcd.*", "us\\..*" }); List<String> excludeRegexes = Arrays.asList(new String[] { "java\\..*", "javax\\..*", ".*\\.twa\\..*" }); Filter<String> classFilter = Filters.buildRegexFilterExcludeOverInclude(includeRegexes, excludeRegexes); System.out.println("Class filter: " + classFilter); // Index each of the "direct users" UsageGraphBuilder builder = new UsageGraphBuilder(classFilter); int total = 0; for (String clazz : classes) { System.out.println("indexing class: " + clazz); builder.index(clazz); total++; if (total % 20 == 0) { System.out.println(total + " : " + total / ((System.currentTimeMillis() - start) / 1000.0)); } } // Reporting boolean dump = true; boolean deadCode = true; UsageGraph usageGraph = builder.getUsageGraph(); if (dump) { System.out.println("--- Dump ---"); dump(usageGraph, true); } if (deadCode) { System.out.println("--- Dead Code ---"); report(usageGraph, true); } long end = System.currentTimeMillis(); System.out.println("Time: " + (end - start) / 1000.0); }
// in src/main/java/net/sourceforge/pmd/cpd/SourceCode.java
Override public Reader getReader() throws Exception { return new InputStreamReader(new FileInputStream(file), encoding); }
// in src/main/java/net/sourceforge/pmd/XPathCLI.java
public static void main(String[] args) throws Exception { String xpath = args[0].equals("-xpath") ? args[1] : args[3]; String filename = args[0].equals("-file") ? args[1] : args[3]; Rule rule = new XPathRule(xpath); rule.setMessage("Got one!"); RuleSet ruleSet = RuleSet.createFor("", rule); RuleContext ctx = PMD.newRuleContext(filename, new File(filename)); ctx.setLanguageVersion(Language.JAVA.getDefaultVersion()); PMDConfiguration config = new PMDConfiguration(); config.setDefaultLanguageVersion(Language.JAVA.getDefaultVersion()); new SourceCodeProcessor(config).processSourceCode(new FileReader(filename), new RuleSets(ruleSet), ctx); for (Iterator<RuleViolation> i = ctx.getReport().iterator(); i.hasNext();) { RuleViolation rv = i.next(); StringBuilder sb = new StringBuilder("Match at line " + rv.getBeginLine() + " column " + rv.getBeginColumn()); if (StringUtil.isNotEmpty(rv.getPackageName())) { sb.append("; package name '" + rv.getPackageName() + "'"); } if (StringUtil.isNotEmpty(rv.getMethodName())) { sb.append("; method name '" + rv.getMethodName() + "'"); } if (StringUtil.isNotEmpty(rv.getVariableName())) { sb.append("; variable name '" + rv.getVariableName() + "'"); } System.out.println(sb.toString()); } }
21
            
// in src/main/java/net/sourceforge/pmd/cpd/AnyTokenizer.java
catch (Exception ex) { ex.printStackTrace(); }
// in src/main/java/net/sourceforge/pmd/cpd/SourceCode.java
catch (Exception e) { e.printStackTrace(); throw new RuntimeException("Problem while reading " + getFileName() + ":" + e.getMessage()); }
// in src/main/java/net/sourceforge/pmd/cpd/CPD.java
catch (Exception e) { e.printStackTrace(); }
// in src/main/java/net/sourceforge/pmd/cpd/CPDConfiguration.java
catch (Exception e) { System.out.println("Can't find class '" + name + "', defaulting to SimpleRenderer."); }
// in src/main/java/net/sourceforge/pmd/RuleSetFactory.java
catch (Exception ex) { System.out.println("oops"); // debug pt TODO }
// in src/main/java/net/sourceforge/pmd/lang/dfa/report/ReportHTMLPrintVisitor.java
catch (Exception e) { throw new RuntimeException("Error while writing HTML report: " + e.getMessage()); }
// in src/main/java/net/sourceforge/pmd/lang/dfa/report/ReportHTMLPrintVisitor.java
catch (Exception e) { throw new RuntimeException("Error while writing HTML report: " + e.getMessage()); }
// in src/main/java/net/sourceforge/pmd/lang/rule/properties/TypeProperty.java
catch (Exception ex) { throw new IllegalArgumentException(className); }
// in src/main/java/net/sourceforge/pmd/lang/rule/properties/MethodProperty.java
catch (Exception ex) { return null; }
// in src/main/java/net/sourceforge/pmd/lang/rule/properties/factories/BasicPropertyDescriptorFactory.java
catch (Exception ex) { }
// in src/main/java/net/sourceforge/pmd/lang/rule/properties/factories/BasicPropertyDescriptorFactory.java
catch (Exception ex) { }
// in src/main/java/net/sourceforge/pmd/lang/rule/properties/factories/BasicPropertyDescriptorFactory.java
catch (Exception ex) { }
// in src/main/java/net/sourceforge/pmd/lang/rule/properties/factories/BasicPropertyDescriptorFactory.java
catch (Exception ex) { }
// in src/main/java/net/sourceforge/pmd/processor/PmdRunnable.java
catch (Exception e) { e.printStackTrace(); }
// in src/main/java/net/sourceforge/pmd/SourceCodeProcessor.java
catch (Exception e) { throw new PMDException("Error while processing " + ctx.getSourceCodeFilename(), e); }
// in src/main/java/net/sourceforge/pmd/PMD.java
catch (Exception e) { String message = e.getMessage(); if (message != null) { LOG.severe(message); } else { LOG.log(Level.SEVERE, "Exception during processing", e); } LOG.log(Level.FINE, "Exception during processing", e); LOG.info(CommandLineParser.usage()); }
// in src/main/java/net/sourceforge/pmd/PMD.java
catch (Exception e) { System.out.print(CommandLineParser.usage()); System.out.println(e.getMessage()); status = ERROR_STATUS; }
// in src/main/java/net/sourceforge/pmd/util/ResourceLoader.java
catch (Exception e) { return loader.getResourceAsStream(name); }
// in src/main/java/net/sourceforge/pmd/util/designer/Designer.java
catch (Exception e) { e.printStackTrace(); }
// in src/main/java/net/sourceforge/pmd/util/viewer/gui/MainFrame.java
catch (Exception exc) { setStatus(NLS.nls("MAIN.FRAME.EVALUATION.PROBLEM") + " " + exc.toString()); new ParseExceptionHandler(this, exc); }
// in src/main/java/net/sourceforge/pmd/util/datasource/FileDataSource.java
catch (Exception e) { return file.getAbsolutePath(); }
5
            
// in src/main/java/net/sourceforge/pmd/cpd/SourceCode.java
catch (Exception e) { e.printStackTrace(); throw new RuntimeException("Problem while reading " + getFileName() + ":" + e.getMessage()); }
// in src/main/java/net/sourceforge/pmd/lang/dfa/report/ReportHTMLPrintVisitor.java
catch (Exception e) { throw new RuntimeException("Error while writing HTML report: " + e.getMessage()); }
// in src/main/java/net/sourceforge/pmd/lang/dfa/report/ReportHTMLPrintVisitor.java
catch (Exception e) { throw new RuntimeException("Error while writing HTML report: " + e.getMessage()); }
// in src/main/java/net/sourceforge/pmd/lang/rule/properties/TypeProperty.java
catch (Exception ex) { throw new IllegalArgumentException(className); }
// in src/main/java/net/sourceforge/pmd/SourceCodeProcessor.java
catch (Exception e) { throw new PMDException("Error while processing " + ctx.getSourceCodeFilename(), e); }
4
unknown (Lib) ExecutionException 0 0 0 1
            
// in src/main/java/net/sourceforge/pmd/processor/MultiThreadProcessor.java
catch (ExecutionException ee) { Throwable t = ee.getCause(); if (t instanceof RuntimeException) { throw (RuntimeException) t; } else if (t instanceof Error) { throw (Error) t; } else { throw new IllegalStateException( "PmdRunnable exception", t); } }
3
            
// in src/main/java/net/sourceforge/pmd/processor/MultiThreadProcessor.java
catch (ExecutionException ee) { Throwable t = ee.getCause(); if (t instanceof RuntimeException) { throw (RuntimeException) t; } else if (t instanceof Error) { throw (Error) t; } else { throw new IllegalStateException( "PmdRunnable exception", t); } }
1
unknown (Lib) FactoryConfigurationError 0 0 0 1
            
// in src/main/java/net/sourceforge/pmd/RuleSetWriter.java
catch (FactoryConfigurationError e) { throw new RuntimeException(e); }
1
            
// in src/main/java/net/sourceforge/pmd/RuleSetWriter.java
catch (FactoryConfigurationError e) { throw new RuntimeException(e); }
1
unknown (Lib) FileNotFoundException 2
            
// in src/main/java/net/sourceforge/pmd/cpd/CPD.java
private void addDirectory(String dir, boolean recurse) throws IOException { if (!(new File(dir)).exists()) { throw new FileNotFoundException("Couldn't find directory " + dir); } FileFinder finder = new FileFinder(); // TODO - could use SourceFileSelector here add(finder.findFilesFrom(dir, configuration.filenameFilter(), recurse)); }
// in src/main/java/net/sourceforge/pmd/renderers/XSLTRenderer.java
Override public void start() throws IOException { // We keep the inital writer to put the final html output this.outputWriter = getWriter(); // We use a new one to store the XML... Writer w = new StringWriter(); setWriter(w); // If don't find the xsl no need to bother doing the all report, // so we check this here... InputStream xslt = null; File file = new File(this.xsltFilename); if (file.exists() && file.canRead()) { xslt = new FileInputStream(file); } else { xslt = this.getClass().getResourceAsStream(xsltFilename); } if (xslt == null) { throw new FileNotFoundException("Can't file XSLT sheet :" + xsltFilename); } this.prepareTransformer(xslt); // Now we build the XML file super.start(); }
0 2
            
// in src/main/java/net/sourceforge/pmd/lang/java/rule/strings/AvoidDuplicateLiteralsRule.java
private LineNumberReader getLineReader() throws FileNotFoundException { return new LineNumberReader(new BufferedReader(new FileReader(getProperty(EXCEPTION_FILE_DESCRIPTOR)))); }
// in src/main/java/net/sourceforge/pmd/renderers/TextColorRenderer.java
protected Reader getReader(String sourceFile) throws FileNotFoundException { return new FileReader(new File(sourceFile)); }
1
            
// in src/main/java/net/sourceforge/pmd/util/ResourceLoader.java
catch (FileNotFoundException e) { // if the file didn't exist, we wouldn't be here }
0 0
checked (Lib) IOException 3
            
// in src/main/java/net/sourceforge/pmd/lang/ast/JavaCharStream.java
static final int hexval(char c) throws java.io.IOException { switch(c) { case '0' : return 0; case '1' : return 1; case '2' : return 2; case '3' : return 3; case '4' : return 4; case '5' : return 5; case '6' : return 6; case '7' : return 7; case '8' : return 8; case '9' : return 9; case 'a' : case 'A' : return 10; case 'b' : case 'B' : return 11; case 'c' : case 'C' : return 12; case 'd' : case 'D' : return 13; case 'e' : case 'E' : return 14; case 'f' : case 'F' : return 15; } throw new java.io.IOException(); // Should never come here }
// in src/main/java/net/sourceforge/pmd/lang/ast/JavaCharStream.java
protected void FillBuff() throws java.io.IOException { int i; if (maxNextCharInd == 4096) maxNextCharInd = nextCharInd = 0; try { if ((i = inputStream.read(nextCharBuf, maxNextCharInd, 4096 - maxNextCharInd)) == -1) { inputStream.close(); throw new java.io.IOException(); } else maxNextCharInd += i; return; } catch(java.io.IOException e) { if (bufpos != 0) { --bufpos; backup(0); } else { bufline[bufpos] = line; bufcolumn[bufpos] = column; } throw e; } }
// in src/main/java/net/sourceforge/pmd/lang/ast/SimpleCharStream.java
protected void FillBuff() throws java.io.IOException { if (maxNextCharInd == available) { if (available == bufsize) { if (tokenBegin > 2048) { bufpos = maxNextCharInd = 0; available = tokenBegin; } else if (tokenBegin < 0) bufpos = maxNextCharInd = 0; else ExpandBuff(false); } else if (available > tokenBegin) available = bufsize; else if ((tokenBegin - available) < 2048) ExpandBuff(true); else available = tokenBegin; } int i; try { if ((i = inputStream.read(buffer, maxNextCharInd, available - maxNextCharInd)) == -1) { inputStream.close(); throw new java.io.IOException(); } else maxNextCharInd += i; return; } catch(java.io.IOException e) { --bufpos; backup(0); if (tokenBegin == -1) tokenBegin = bufpos; throw e; } }
0 62
            
// in src/main/java/net/sourceforge/pmd/cpd/CPDTask.java
private void tokenizeFiles(CPD cpd) throws IOException { for (FileSet fileSet: filesets) { DirectoryScanner directoryScanner = fileSet.getDirectoryScanner(getProject()); String[] includedFiles = directoryScanner.getIncludedFiles(); for (int i = 0; i < includedFiles.length; i++) { File file = new File(directoryScanner.getBasedir() + System.getProperty("file.separator") + includedFiles[i]); log("Tokenizing " + file.getAbsolutePath(), Project.MSG_VERBOSE); cpd.add(file); } } }
// in src/main/java/net/sourceforge/pmd/cpd/CPD.java
public void add(File file) throws IOException { add(1, file); }
// in src/main/java/net/sourceforge/pmd/cpd/CPD.java
public void addAllInDirectory(String dir) throws IOException { addDirectory(dir, false); }
// in src/main/java/net/sourceforge/pmd/cpd/CPD.java
public void addRecursively(String dir) throws IOException { addDirectory(dir, true); }
// in src/main/java/net/sourceforge/pmd/cpd/CPD.java
public void add(List<File> files) throws IOException { for (File f: files) { add(files.size(), f); } }
// in src/main/java/net/sourceforge/pmd/cpd/CPD.java
private void addDirectory(String dir, boolean recurse) throws IOException { if (!(new File(dir)).exists()) { throw new FileNotFoundException("Couldn't find directory " + dir); } FileFinder finder = new FileFinder(); // TODO - could use SourceFileSelector here add(finder.findFilesFrom(dir, configuration.filenameFilter(), recurse)); }
// in src/main/java/net/sourceforge/pmd/cpd/CPD.java
private void add(int fileCount, File file) throws IOException { if (configuration.skipDuplicates()) { // TODO refactor this thing into a separate class String signature = file.getName() + '_' + file.length(); if (current.contains(signature)) { System.err.println("Skipping " + file.getAbsolutePath() + " since it appears to be a duplicate file and --skip-duplicate-files is set"); return; } current.add(signature); } if (!file.getCanonicalPath().equals(new File(file.getAbsolutePath()).getCanonicalPath())) { System.err.println("Skipping " + file + " since it appears to be a symlink"); return; } listener.addedFile(fileCount, file); SourceCode sourceCode = configuration.sourceCodeFor(file); configuration.tokenizer().tokenize(sourceCode, tokens); source.put(sourceCode.getFileName(), sourceCode); }
// in src/main/java/net/sourceforge/pmd/lang/dfa/report/ReportHTMLPrintVisitor.java
private void write(String filename, StringBuilder buf) throws IOException { BufferedWriter bw = new BufferedWriter(new FileWriter(new File(baseDir + FILE_SEPARATOR + filename))); bw.write(buf.toString(), 0, buf.length()); IOUtil.closeQuietly(bw); }
// in src/main/java/net/sourceforge/pmd/lang/ast/JavaCharStream.java
static final int hexval(char c) throws java.io.IOException { switch(c) { case '0' : return 0; case '1' : return 1; case '2' : return 2; case '3' : return 3; case '4' : return 4; case '5' : return 5; case '6' : return 6; case '7' : return 7; case '8' : return 8; case '9' : return 9; case 'a' : case 'A' : return 10; case 'b' : case 'B' : return 11; case 'c' : case 'C' : return 12; case 'd' : case 'D' : return 13; case 'e' : case 'E' : return 14; case 'f' : case 'F' : return 15; } throw new java.io.IOException(); // Should never come here }
// in src/main/java/net/sourceforge/pmd/lang/ast/JavaCharStream.java
protected void FillBuff() throws java.io.IOException { int i; if (maxNextCharInd == 4096) maxNextCharInd = nextCharInd = 0; try { if ((i = inputStream.read(nextCharBuf, maxNextCharInd, 4096 - maxNextCharInd)) == -1) { inputStream.close(); throw new java.io.IOException(); } else maxNextCharInd += i; return; } catch(java.io.IOException e) { if (bufpos != 0) { --bufpos; backup(0); } else { bufline[bufpos] = line; bufcolumn[bufpos] = column; } throw e; } }
// in src/main/java/net/sourceforge/pmd/lang/ast/JavaCharStream.java
protected char ReadByte() throws java.io.IOException { if (++nextCharInd >= maxNextCharInd) FillBuff(); return nextCharBuf[nextCharInd]; }
// in src/main/java/net/sourceforge/pmd/lang/ast/JavaCharStream.java
public char BeginToken() throws java.io.IOException { if (inBuf > 0) { --inBuf; if (++bufpos == bufsize) bufpos = 0; tokenBegin = bufpos; return buffer[bufpos]; } tokenBegin = 0; bufpos = -1; return readChar(); }
// in src/main/java/net/sourceforge/pmd/lang/ast/JavaCharStream.java
public char readChar() throws java.io.IOException { if (inBuf > 0) { --inBuf; if (++bufpos == bufsize) bufpos = 0; return buffer[bufpos]; } char c; if (++bufpos == available) AdjustBuffSize(); if ((buffer[bufpos] = c = ReadByte()) == '\\') { UpdateLineColumn(c); int backSlashCnt = 1; for (;;) // Read all the backslashes { if (++bufpos == available) AdjustBuffSize(); try { if ((buffer[bufpos] = c = ReadByte()) != '\\') { UpdateLineColumn(c); // found a non-backslash char. if ((c == 'u') && ((backSlashCnt & 1) == 1)) { if (--bufpos < 0) bufpos = bufsize - 1; break; } backup(backSlashCnt); return '\\'; } } catch(java.io.IOException e) { if (backSlashCnt > 1) backup(backSlashCnt-1); return '\\'; } UpdateLineColumn(c); backSlashCnt++; } // Here, we have seen an odd number of backslash's followed by a 'u' try { while ((c = ReadByte()) == 'u') ++column; buffer[bufpos] = c = (char)(hexval(c) << 12 | hexval(ReadByte()) << 8 | hexval(ReadByte()) << 4 | hexval(ReadByte())); column += 4; } catch(java.io.IOException e) { throw new Error("Invalid escape character at line " + line + " column " + column + "."); } if (backSlashCnt == 1) return c; else { backup(backSlashCnt - 1); return '\\'; } } else { UpdateLineColumn(c); return c; } }
// in src/main/java/net/sourceforge/pmd/lang/ast/SimpleCharStream.java
protected void FillBuff() throws java.io.IOException { if (maxNextCharInd == available) { if (available == bufsize) { if (tokenBegin > 2048) { bufpos = maxNextCharInd = 0; available = tokenBegin; } else if (tokenBegin < 0) bufpos = maxNextCharInd = 0; else ExpandBuff(false); } else if (available > tokenBegin) available = bufsize; else if ((tokenBegin - available) < 2048) ExpandBuff(true); else available = tokenBegin; } int i; try { if ((i = inputStream.read(buffer, maxNextCharInd, available - maxNextCharInd)) == -1) { inputStream.close(); throw new java.io.IOException(); } else maxNextCharInd += i; return; } catch(java.io.IOException e) { --bufpos; backup(0); if (tokenBegin == -1) tokenBegin = bufpos; throw e; } }
// in src/main/java/net/sourceforge/pmd/lang/ast/SimpleCharStream.java
public char BeginToken() throws java.io.IOException { tokenBegin = -1; char c = readChar(); tokenBegin = bufpos; return c; }
// in src/main/java/net/sourceforge/pmd/lang/ast/SimpleCharStream.java
public char readChar() throws java.io.IOException { if (inBuf > 0) { --inBuf; if (++bufpos == bufsize) bufpos = 0; return buffer[bufpos]; } if (++bufpos >= maxNextCharInd) FillBuff(); char c = buffer[bufpos]; UpdateLineColumn(c); return c; }
// in src/main/java/net/sourceforge/pmd/benchmark/Benchmarker.java
public static void main(String[] args) throws RuleSetNotFoundException, IOException, PMDException { String targetjdk = findOptionalStringValue(args, "--targetjdk", "1.4"); Language language = Language.JAVA; LanguageVersion languageVersion = language.getVersion(targetjdk); if (languageVersion == null) { languageVersion = language.getDefaultVersion(); } String srcDir = findOptionalStringValue(args, "--source-directory", "/usr/local/java/src/java/lang/"); List<DataSource> dataSources = FileUtil.collectFiles(srcDir, new LanguageFilenameFilter(language)); boolean debug = findBooleanSwitch(args, "--debug"); boolean parseOnly = findBooleanSwitch(args, "--parse-only"); if (debug) { System.out.println("Using " +language.getName() + " " + languageVersion.getVersion()); } if (parseOnly) { Parser parser = PMD.parserFor(languageVersion, null); parseStress(parser, dataSources, debug); } else { String ruleset = findOptionalStringValue(args, "--ruleset", ""); if (debug) { System.out.println("Checking directory " + srcDir); } Set<RuleDuration> results = new TreeSet<RuleDuration>(); RuleSetFactory factory = new RuleSetFactory(); if (StringUtil.isNotEmpty(ruleset)) { stress(languageVersion, factory.createRuleSet(ruleset), dataSources, results, debug); } else { Iterator<RuleSet> i = factory.getRegisteredRuleSets(); while (i.hasNext()) { stress(languageVersion, i.next(), dataSources, results, debug); } } TextReport report = new TextReport(); report.generate(results, System.err); } }
// in src/main/java/net/sourceforge/pmd/benchmark/Benchmarker.java
private static void parseStress(Parser parser, List<DataSource> dataSources, boolean debug) throws IOException { long start = System.currentTimeMillis(); for (DataSource dataSource: dataSources) { parser.parse( dataSource.getNiceFileName(false, null), new InputStreamReader(dataSource.getInputStream() ) ); } if (debug) { long end = System.currentTimeMillis(); long elapsed = end - start; System.out.println("That took " + elapsed + " ms"); } }
// in src/main/java/net/sourceforge/pmd/benchmark/Benchmarker.java
private static void stress(LanguageVersion languageVersion, RuleSet ruleSet, List<DataSource> dataSources, Set<RuleDuration> results, boolean debug) throws PMDException, IOException { for (Rule rule: ruleSet.getRules()) { if (debug) { System.out.println("Starting " + rule.getName()); } RuleSet working = new RuleSet(); working.addRule(rule); RuleSets ruleSets = new RuleSets(working); PMDConfiguration config = new PMDConfiguration(); config.setDefaultLanguageVersion(languageVersion); RuleContext ctx = new RuleContext(); long start = System.currentTimeMillis(); Reader reader = null; for (DataSource dataSource: dataSources) { reader = new InputStreamReader(dataSource.getInputStream()); ctx.setSourceCodeFilename(dataSource.getNiceFileName(false, null)); new SourceCodeProcessor(config).processSourceCode(reader, ruleSets, ctx); IOUtil.closeQuietly(reader); } long end = System.currentTimeMillis(); long elapsed = end - start; results.add(new RuleDuration(elapsed, rule)); if (debug) { System.out.println("Done timing " + rule.getName() + "; elapsed time was " + elapsed); } } }
// in src/main/java/net/sourceforge/pmd/renderers/CSVRenderer.java
Override public void start() throws IOException { csvWriter().writeTitles(getWriter()); }
// in src/main/java/net/sourceforge/pmd/renderers/CSVRenderer.java
Override public void renderFileViolations(Iterator<RuleViolation> violations) throws IOException { csvWriter().writeData(getWriter(), violations); }
// in src/main/java/net/sourceforge/pmd/renderers/AbstractIncrementingRenderer.java
public void start() throws IOException { }
// in src/main/java/net/sourceforge/pmd/renderers/AbstractIncrementingRenderer.java
public void renderFileReport(Report report) throws IOException { Iterator<RuleViolation> violations = report.iterator(); if (violations.hasNext()) { renderFileViolations(violations); getWriter().flush(); } for (Iterator<Report.ProcessingError> i = report.errors(); i.hasNext();) { errors.add(i.next()); } if (showSuppressedViolations) { suppressed.addAll(report.getSuppressedRuleViolations()); } }
// in src/main/java/net/sourceforge/pmd/renderers/AbstractIncrementingRenderer.java
public void end() throws IOException { }
// in src/main/java/net/sourceforge/pmd/renderers/EmacsRenderer.java
Override public void renderFileViolations(Iterator<RuleViolation> violations) throws IOException { Writer writer = getWriter(); StringBuilder buf = new StringBuilder(); while (violations.hasNext()) { RuleViolation rv = violations.next(); buf.setLength(0); buf.append(rv.getFilename()); buf.append(':').append(Integer.toString(rv.getBeginLine())); buf.append(": ").append(rv.getDescription()).append(EOL); writer.write(buf.toString()); } }
// in src/main/java/net/sourceforge/pmd/renderers/XMLRenderer.java
Override public void start() throws IOException { Writer writer = getWriter(); StringBuilder buf = new StringBuilder(500); buf.append("<?xml version=\"1.0\" encoding=\"" + encoding + "\"?>").append(PMD.EOL); createVersionAttr(buf); createTimestampAttr(buf); // FIXME: elapsed time not available until the end of the processing //buf.append(createTimeElapsedAttr(report)); buf.append('>').append(PMD.EOL); writer.write(buf.toString()); }
// in src/main/java/net/sourceforge/pmd/renderers/XMLRenderer.java
Override public void renderFileViolations(Iterator<RuleViolation> violations) throws IOException { Writer writer = getWriter(); StringBuilder buf = new StringBuilder(500); String filename = null; // rule violations while (violations.hasNext()) { buf.setLength(0); RuleViolation rv = violations.next(); if (!rv.getFilename().equals(filename)) { // New File if (filename != null) {// Not first file ? buf.append("</file>").append(PMD.EOL); } filename = rv.getFilename(); buf.append("<file name=\""); StringUtil.appendXmlEscaped(buf, filename); buf.append("\">").append(PMD.EOL); } buf.append("<violation beginline=\"").append(rv.getBeginLine()); buf.append("\" endline=\"").append(rv.getEndLine()); buf.append("\" begincolumn=\"").append(rv.getBeginColumn()); buf.append("\" endcolumn=\"").append(rv.getEndColumn()); buf.append("\" rule=\""); StringUtil.appendXmlEscaped(buf, rv.getRule().getName()); buf.append("\" ruleset=\""); StringUtil.appendXmlEscaped(buf, rv.getRule().getRuleSetName()); buf.append('"'); maybeAdd("package", rv.getPackageName(), buf); maybeAdd("class", rv.getClassName(), buf); maybeAdd("method", rv.getMethodName(), buf); maybeAdd("variable", rv.getVariableName(), buf); maybeAdd("externalInfoUrl", rv.getRule().getExternalInfoUrl(), buf); buf.append(" priority=\""); buf.append(rv.getRule().getPriority().getPriority()); buf.append("\">").append(PMD.EOL); StringUtil.appendXmlEscaped(buf, rv.getDescription()); buf.append(PMD.EOL); buf.append("</violation>"); buf.append(PMD.EOL); writer.write(buf.toString()); } if (filename != null) { // Not first file ? writer.write("</file>"); writer.write(PMD.EOL); } }
// in src/main/java/net/sourceforge/pmd/renderers/XMLRenderer.java
Override public void end() throws IOException { Writer writer = getWriter(); StringBuilder buf = new StringBuilder(500); // errors for (Report.ProcessingError pe : errors) { buf.setLength(0); buf.append("<error ").append("filename=\""); StringUtil.appendXmlEscaped(buf, pe.getFile()); buf.append("\" msg=\""); StringUtil.appendXmlEscaped(buf, pe.getMsg()); buf.append("\"/>").append(PMD.EOL); writer.write(buf.toString()); } // suppressed violations if (showSuppressedViolations) { for (Report.SuppressedViolation s : suppressed) { buf.setLength(0); buf.append("<suppressedviolation ").append("filename=\""); StringUtil.appendXmlEscaped(buf, s.getRuleViolation().getFilename()); buf.append("\" suppressiontype=\""); StringUtil.appendXmlEscaped(buf, s.suppressedByNOPMD() ? "nopmd" : "annotation"); buf.append("\" msg=\""); StringUtil.appendXmlEscaped(buf, s.getRuleViolation().getDescription()); buf.append("\" usermsg=\""); StringUtil.appendXmlEscaped(buf, s.getUserMessage() == null ? "" : s.getUserMessage()); buf.append("\"/>").append(PMD.EOL); writer.write(buf.toString()); } } writer.write("</pmd>" + PMD.EOL); }
// in src/main/java/net/sourceforge/pmd/renderers/AbstractAccumulatingRenderer.java
public void start() throws IOException { report = new Report(); }
// in src/main/java/net/sourceforge/pmd/renderers/AbstractAccumulatingRenderer.java
public void renderFileReport(Report report) throws IOException { this.report.merge(report); }
// in src/main/java/net/sourceforge/pmd/renderers/VBHTMLRenderer.java
Override public void start() throws IOException { getWriter().write(header()); }
// in src/main/java/net/sourceforge/pmd/renderers/VBHTMLRenderer.java
Override public void renderFileViolations(Iterator<RuleViolation> violations) throws IOException { if (!violations.hasNext()) { return; } Writer writer = getWriter(); StringBuilder sb = new StringBuilder(500); String filename = null; String lineSep = PMD.EOL; boolean colorize = false; while (violations.hasNext()) { sb.setLength(0); RuleViolation rv = violations.next(); if (!rv.getFilename().equals(filename)) { // New File if (filename != null) { sb.append("</table></br>"); colorize = false; } filename = rv.getFilename(); sb.append("<table border=\"0\" width=\"80%\">"); sb.append("<tr id=TableHeader><td colspan=\"2\"><font class=title>&nbsp;").append(filename).append( "</font></tr>"); sb.append(lineSep); } if (colorize) { sb.append("<tr id=RowColor1>"); } else { sb.append("<tr id=RowColor2>"); } colorize = !colorize; sb.append("<td width=\"50\" align=\"right\"><font class=body>" + rv.getBeginLine() + "&nbsp;&nbsp;&nbsp;</font></td>"); sb.append("<td><font class=body>" + rv.getDescription() + "</font></td>"); sb.append("</tr>"); sb.append(lineSep); writer.write(sb.toString()); } if (filename != null) { writer.write("</table>"); } }
// in src/main/java/net/sourceforge/pmd/renderers/VBHTMLRenderer.java
Override public void end() throws IOException { Writer writer = getWriter(); StringBuilder sb = new StringBuilder(); writer.write("<br>"); // output the problems if (!errors.isEmpty()) { sb.setLength(0); sb.append("<table border=\"0\" width=\"80%\">"); sb.append("<tr id=TableHeader><td><font class=title>&nbsp;Problems found</font></td></tr>"); boolean colorize = false; for (Report.ProcessingError error : errors) { if (colorize) { sb.append("<tr id=RowColor1>"); } else { sb.append("<tr id=RowColor2>"); } colorize = !colorize; sb.append("<td><font class=body>").append(error).append("\"</font></td></tr>"); } sb.append("</table>"); writer.write(sb.toString()); } writer.write(footer()); }
// in src/main/java/net/sourceforge/pmd/renderers/HTMLRenderer.java
public void renderBody(Writer writer, Report report) throws IOException { writer.write("<center><h3>PMD report</h3></center>"); writer.write("<center><h3>Problems found</h3></center>"); writer.write("<table align=\"center\" cellspacing=\"0\" cellpadding=\"3\"><tr>" + PMD.EOL + "<th>#</th><th>File</th><th>Line</th><th>Problem</th></tr>" + PMD.EOL); setWriter(writer); renderFileReport(report); writer.write("</table>"); glomProcessingErrors(writer, errors); if (showSuppressedViolations) { glomSuppressions(writer, suppressed); } }
// in src/main/java/net/sourceforge/pmd/renderers/HTMLRenderer.java
Override public void start() throws IOException { Writer writer = getWriter(); writer.write("<html><head><title>PMD</title></head><body>" + PMD.EOL); writer.write("<center><h3>PMD report</h3></center>"); writer.write("<center><h3>Problems found</h3></center>"); writer.write("<table align=\"center\" cellspacing=\"0\" cellpadding=\"3\"><tr>" + PMD.EOL + "<th>#</th><th>File</th><th>Line</th><th>Problem</th></tr>" + PMD.EOL); }
// in src/main/java/net/sourceforge/pmd/renderers/HTMLRenderer.java
Override public void renderFileViolations(Iterator<RuleViolation> violations) throws IOException { Writer writer = getWriter(); glomRuleViolations(writer, violations); }
// in src/main/java/net/sourceforge/pmd/renderers/HTMLRenderer.java
Override public void end() throws IOException { Writer writer = getWriter(); writer.write("</table>"); glomProcessingErrors(writer, errors); if (showSuppressedViolations) { glomSuppressions(writer, suppressed); } writer.write("</body></html>" + PMD.EOL); }
// in src/main/java/net/sourceforge/pmd/renderers/HTMLRenderer.java
private void glomRuleViolations(Writer writer, Iterator<RuleViolation> violations) throws IOException { StringBuilder buf = new StringBuilder(500); while (violations.hasNext()) { RuleViolation rv = violations.next(); buf.setLength(0); buf.append("<tr"); if (colorize) { buf.append(" bgcolor=\"lightgrey\""); } colorize = !colorize; buf.append("> " + PMD.EOL); buf.append("<td align=\"center\">" + violationCount + "</td>" + PMD.EOL); buf.append("<td width=\"*%\">" + maybeWrap(rv.getFilename(), linePrefix == null ? "" : linePrefix + Integer.toString(rv.getBeginLine())) + "</td>" + PMD.EOL); buf.append("<td align=\"center\" width=\"5%\">" + Integer.toString(rv.getBeginLine()) + "</td>" + PMD.EOL); String d = StringUtil.htmlEncode(rv.getDescription()); String infoUrl = rv.getRule().getExternalInfoUrl(); if (StringUtil.isNotEmpty(infoUrl)) { d = "<a href=\"" + infoUrl + "\">" + d + "</a>"; } buf.append("<td width=\"*\">" + d + "</td>" + PMD.EOL); buf.append("</tr>" + PMD.EOL); writer.write(buf.toString()); violationCount++; } }
// in src/main/java/net/sourceforge/pmd/renderers/HTMLRenderer.java
private void glomProcessingErrors(Writer writer, List<Report.ProcessingError> errors) throws IOException { if (errors.isEmpty()) return; writer.write("<hr/>"); writer.write("<center><h3>Processing errors</h3></center>"); writer.write("<table align=\"center\" cellspacing=\"0\" cellpadding=\"3\"><tr>" + PMD.EOL + "<th>File</th><th>Problem</th></tr>" + PMD.EOL); StringBuffer buf = new StringBuffer(500); boolean colorize = true; for (Report.ProcessingError pe : errors) { buf.setLength(0); buf.append("<tr"); if (colorize) { buf.append(" bgcolor=\"lightgrey\""); } colorize = !colorize; buf.append("> " + PMD.EOL); buf.append("<td>" + pe.getFile() + "</td>" + PMD.EOL); buf.append("<td>" + pe.getMsg() + "</td>" + PMD.EOL); buf.append("</tr>" + PMD.EOL); writer.write(buf.toString()); } writer.write("</table>"); }
// in src/main/java/net/sourceforge/pmd/renderers/HTMLRenderer.java
private void glomSuppressions(Writer writer, List<Report.SuppressedViolation> suppressed) throws IOException { if (suppressed.isEmpty()) return; writer.write("<hr/>"); writer.write("<center><h3>Suppressed warnings</h3></center>"); writer.write("<table align=\"center\" cellspacing=\"0\" cellpadding=\"3\"><tr>" + PMD.EOL + "<th>File</th><th>Line</th><th>Rule</th><th>NOPMD or Annotation</th><th>Reason</th></tr>" + PMD.EOL); StringBuilder buf = new StringBuilder(500); boolean colorize = true; for (Report.SuppressedViolation sv : suppressed) { buf.setLength(0); buf.append("<tr"); if (colorize) { buf.append(" bgcolor=\"lightgrey\""); } colorize = !colorize; buf.append("> " + PMD.EOL); buf.append("<td align=\"left\">" + sv.getRuleViolation().getFilename() + "</td>" + PMD.EOL); buf.append("<td align=\"center\">" + sv.getRuleViolation().getBeginLine() + "</td>" + PMD.EOL); buf.append("<td align=\"center\">" + sv.getRuleViolation().getRule().getName() + "</td>" + PMD.EOL); buf.append("<td align=\"center\">" + (sv.suppressedByNOPMD() ? "NOPMD" : "Annotation") + "</td>" + PMD.EOL); buf.append("<td align=\"center\">" + (sv.getUserMessage() == null ? "" : sv.getUserMessage()) + "</td>" + PMD.EOL); buf.append("</tr>" + PMD.EOL); writer.write(buf.toString()); } writer.write("</table>"); }
// in src/main/java/net/sourceforge/pmd/renderers/SummaryHTMLRenderer.java
Override public void end() throws IOException { writer.write("<html><head><title>PMD</title></head><body>" + PMD.EOL); renderSummary(); writer.write("<h2><center>Detail</h2></center>"); writer.write("<table align=\"center\" cellspacing=\"0\" cellpadding=\"3\"><tr>" + PMD.EOL); new HTMLRenderer(properties).renderBody(writer, report); writer.write("</table></body></html>" + PMD.EOL); }
// in src/main/java/net/sourceforge/pmd/renderers/SummaryHTMLRenderer.java
public void renderSummary() throws IOException { StringBuilder buf = new StringBuilder(500); buf.append("<h2><center>Summary</h2></center>"); buf.append("<table align=\"center\" cellspacing=\"0\" cellpadding=\"3\">"); buf.append("<th>Rule name</th>"); buf.append("<th>Number of violations</th>"); writer.write(buf.toString()); Map<String, Integer> summary = report.getSummary(); for (Map.Entry<String, Integer> entry : summary.entrySet()) { String ruleName = entry.getKey(); buf.setLength(0); buf.append("<tr>"); buf.append("<td>" + ruleName + "</td>"); buf.append("<td align=center>" + entry.getValue().intValue() + "</td>"); buf.append("</tr>"); writer.write(buf.toString()); } writer.write("</table>"); }
// in src/main/java/net/sourceforge/pmd/renderers/CSVWriter.java
public void writeTitles(Writer writer) throws IOException { StringBuilder buf = new StringBuilder(300); for (int i=0; i<columns.size()-1; i++) { quoteAndCommify(buf, columns.get(i).title); } quote(buf, columns.get(columns.size()-1).title); buf.append(lineSeparator); writer.write(buf.toString()); }
// in src/main/java/net/sourceforge/pmd/renderers/CSVWriter.java
public void writeData(Writer writer, Iterator<T> items) throws IOException { int count = 1; StringBuilder buf = new StringBuilder(300); T rv; final int lastColumnIdx = columns.size()-1; while (items.hasNext()) { buf.setLength(0); rv = items.next(); for (int i=0; i<lastColumnIdx; i++) { quoteAndCommify(buf, columns.get(i).accessor.get(count, rv, separator)); } quote(buf, columns.get(lastColumnIdx).accessor.get(count, rv, separator)); buf.append(lineSeparator); writer.write(buf.toString()); count++; } }
// in src/main/java/net/sourceforge/pmd/renderers/TextColorRenderer.java
Override public void end() throws IOException { StringBuffer buf = new StringBuffer(500); buf.append(PMD.EOL); initializeColorsIfSupported(); String lastFile = null; int numberOfErrors = 0; int numberOfWarnings = 0; for (Iterator<RuleViolation> i = report.iterator(); i.hasNext();) { buf.setLength(0); numberOfWarnings++; RuleViolation rv = i.next(); if (!rv.getFilename().equals(lastFile)) { lastFile = rv.getFilename(); buf.append(this.yellowBold + "*" + this.colorReset + " file: " + this.whiteBold + this.getRelativePath(lastFile) + this.colorReset + PMD.EOL); } buf.append(this.green + " src: " + this.cyan + lastFile.substring(lastFile.lastIndexOf(File.separator) + 1) + this.colorReset + ":" + this.cyan + rv.getBeginLine() + (rv.getEndLine() == -1 ? "" : ":" + rv.getEndLine()) + this.colorReset + PMD.EOL); buf.append(this.green + " rule: " + this.colorReset + rv.getRule().getName() + PMD.EOL); buf.append(this.green + " msg: " + this.colorReset + rv.getDescription() + PMD.EOL); buf.append(this.green + " code: " + this.colorReset + this.getLine(lastFile, rv.getBeginLine()) + PMD.EOL + PMD.EOL); writer.write(buf.toString()); } writer.write(PMD.EOL + PMD.EOL); writer.write("Summary:" + PMD.EOL + PMD.EOL); Map<String, Integer> summary = report.getCountSummary(); for (Map.Entry<String, Integer> entry : summary.entrySet()) { buf.setLength(0); String key = entry.getKey(); buf.append(key).append(" : ").append(entry.getValue()).append(PMD.EOL); writer.write(buf.toString()); } for (Iterator<Report.ProcessingError> i = report.errors(); i.hasNext();) { buf.setLength(0); numberOfErrors++; Report.ProcessingError error = i.next(); if (error.getFile().equals(lastFile)) { lastFile = error.getFile(); buf.append(this.redBold + "*" + this.colorReset + " file: " + this.whiteBold + this.getRelativePath(lastFile) + this.colorReset + PMD.EOL); } buf.append(this.green + " err: " + this.cyan + error.getMsg() + this.colorReset + PMD.EOL + PMD.EOL); writer.write(buf.toString()); } // adding error message count, if any if (numberOfErrors > 0) { writer.write(this.redBold + "*" + this.colorReset + " errors: " + this.whiteBold + numberOfWarnings + this.colorReset + PMD.EOL); } writer.write(this.yellowBold + "*" + this.colorReset + " warnings: " + this.whiteBold + numberOfWarnings + this.colorReset + PMD.EOL); }
// in src/main/java/net/sourceforge/pmd/renderers/TextPadRenderer.java
Override public void renderFileViolations(Iterator<RuleViolation> violations) throws IOException { Writer writer = getWriter(); StringBuffer buf = new StringBuffer(); while (violations.hasNext()) { RuleViolation rv = violations.next(); buf.setLength(0); //Filename buf.append(rv.getFilename() + "("); //Line number buf.append(Integer.toString(rv.getBeginLine())).append(", "); //Name of violated rule buf.append(rv.getRule().getName()).append("): "); //Specific violation message buf.append(rv.getDescription()).append(PMD.EOL); writer.write(buf.toString()); } }
// in src/main/java/net/sourceforge/pmd/renderers/IDEAJRenderer.java
Override public void renderFileViolations(Iterator<RuleViolation> violations) throws IOException { Writer writer = getWriter(); if (".method".equals(classAndMethodName)) { // working on a directory tree renderDirectoy(writer, violations); } else { // working on one file renderFile(writer, violations); } }
// in src/main/java/net/sourceforge/pmd/renderers/IDEAJRenderer.java
private void renderDirectoy(Writer writer, Iterator<RuleViolation> violations) throws IOException { SourcePath sourcePath = new SourcePath(this.sourcePath); StringBuilder buf = new StringBuilder(); while (violations.hasNext()) { buf.setLength(0); RuleViolation rv = violations.next(); buf.append(rv.getDescription() + PMD.EOL); buf.append(" at ").append( getFullyQualifiedClassName(rv.getFilename(), sourcePath)).append(".method("); buf.append(getSimpleFileName(rv.getFilename())).append(':') .append(rv.getBeginLine()).append(')').append(PMD.EOL); writer.write(buf.toString()); } }
// in src/main/java/net/sourceforge/pmd/renderers/IDEAJRenderer.java
private void renderFile(Writer writer, Iterator<RuleViolation> violations) throws IOException { StringBuilder buf = new StringBuilder(); while (violations.hasNext()) { buf.setLength(0); RuleViolation rv = violations.next(); buf.append(rv.getDescription()).append(PMD.EOL); buf.append(" at ").append(classAndMethodName).append('(') .append(fileName).append(':') .append(rv.getBeginLine()).append(')').append(PMD.EOL); writer.write(buf.toString()); } }
// in src/main/java/net/sourceforge/pmd/renderers/YAHTMLRenderer.java
Override public void end() throws IOException { ReportTree tree = report.getViolationTree(); tree.getRootNode().accept(new ReportHTMLPrintVisitor(outputDir == null ? ".." : outputDir)); writer.write("<h3 align=\"center\">The HTML files are located " + (outputDir == null ? "above the project directory" : "in '" + outputDir + '\'') + ".</h3>" + PMD.EOL); }
// in src/main/java/net/sourceforge/pmd/renderers/XSLTRenderer.java
Override public void start() throws IOException { // We keep the inital writer to put the final html output this.outputWriter = getWriter(); // We use a new one to store the XML... Writer w = new StringWriter(); setWriter(w); // If don't find the xsl no need to bother doing the all report, // so we check this here... InputStream xslt = null; File file = new File(this.xsltFilename); if (file.exists() && file.canRead()) { xslt = new FileInputStream(file); } else { xslt = this.getClass().getResourceAsStream(xsltFilename); } if (xslt == null) { throw new FileNotFoundException("Can't file XSLT sheet :" + xsltFilename); } this.prepareTransformer(xslt); // Now we build the XML file super.start(); }
// in src/main/java/net/sourceforge/pmd/renderers/XSLTRenderer.java
Override public void end() throws IOException { // First we finish the XML report super.end(); // Now we transform it using XSLT Writer writer = super.getWriter(); if (writer instanceof StringWriter) { StringWriter w = (StringWriter) writer; StringBuffer buffer = w.getBuffer(); // FIXME: If we change the encoding in XMLRenderer, we should change this too ! InputStream xml = new ByteArrayInputStream(buffer.toString().getBytes(this.encoding)); Document doc = this.getDocument(xml); this.transform(doc); } else { // Should not happen ! new RuntimeException("Wrong writer").printStackTrace(); } }
// in src/main/java/net/sourceforge/pmd/renderers/TextRenderer.java
Override public void start() throws IOException { }
// in src/main/java/net/sourceforge/pmd/renderers/TextRenderer.java
Override public void renderFileViolations(Iterator<RuleViolation> violations) throws IOException { Writer writer = getWriter(); StringBuilder buf = new StringBuilder(); while (violations.hasNext()) { buf.setLength(0); RuleViolation rv = violations.next(); buf.append(rv.getFilename()); buf.append(':').append(Integer.toString(rv.getBeginLine())); buf.append('\t').append(rv.getDescription()).append(PMD.EOL); writer.write(buf.toString()); } }
// in src/main/java/net/sourceforge/pmd/renderers/TextRenderer.java
Override public void end() throws IOException { Writer writer = getWriter(); StringBuilder buf = new StringBuilder(500); if (!errors.isEmpty()) { for (Report.ProcessingError error : errors) { buf.setLength(0); buf.append(error.getFile()); buf.append("\t-\t").append(error.getMsg()).append(PMD.EOL); writer.write(buf.toString()); } } for (Report.SuppressedViolation excluded : suppressed) { buf.setLength(0); buf.append(excluded.getRuleViolation().getRule().getName()); buf.append(" rule violation suppressed by "); buf.append(excluded.suppressedByNOPMD() ? "//NOPMD" : "Annotation"); buf.append(" in ").append(excluded.getRuleViolation().getFilename()).append(PMD.EOL); writer.write(buf.toString()); } }
// in src/main/java/net/sourceforge/pmd/ant/Formatter.java
private Writer getToFileWriter(String baseDir) throws IOException { if (!toFile.isAbsolute()) { return new BufferedWriter(new FileWriter(new File(baseDir + System.getProperty("file.separator") + toFile.getPath()))); } return new BufferedWriter(new FileWriter(toFile)); }
// in src/main/java/net/sourceforge/pmd/PMDConfiguration.java
public void prependClasspath(String classpath) throws IOException { if (classLoader == null) { classLoader = PMDConfiguration.class.getClassLoader(); } if (classpath != null) { classLoader = new ClasspathClassLoader(classpath, classLoader); } }
// in src/main/java/net/sourceforge/pmd/util/ClasspathClassLoader.java
private static URL[] initURLs(String classpath) throws IOException { if (classpath == null) { throw new IllegalArgumentException("classpath argument cannot be null"); } final List<URL> urls = new ArrayList<URL>(); if (classpath.startsWith("file://")) { // Treat as file URL addFileURLs(urls, new URL(classpath)); } else { // Treat as classpath addClasspathURLs(urls, classpath); } return urls.toArray(new URL[urls.size()]); }
// in src/main/java/net/sourceforge/pmd/util/ClasspathClassLoader.java
private static void addFileURLs(List<URL> urls, URL fileURL) throws IOException { BufferedReader in = null; try { in = new BufferedReader(new InputStreamReader(fileURL.openStream())); String line; while ((line = in.readLine()) != null) { LOG.log(Level.FINE, "Read classpath entry line: <{0}>", line); line = line.trim(); if (line.length() > 0) { LOG.log(Level.FINE, "Adding classpath entry: <{0}>", line); urls.add(createURLFromPath(line)); } } } finally { IOUtil.closeQuietly(in); } }
// in src/main/java/net/sourceforge/pmd/util/datasource/FileDataSource.java
public InputStream getInputStream() throws IOException { return new FileInputStream(file); }
// in src/main/java/net/sourceforge/pmd/util/datasource/ZipDataSource.java
public InputStream getInputStream() throws IOException { return zipFile.getInputStream(zipEntry); }
126
            
// in src/main/java/net/sourceforge/pmd/dcd/graph/UsageGraphBuilder.java
catch (IOException e) { throw new RuntimeException("For " + name + ": " + e.getMessage(), e); }
// in src/main/java/net/sourceforge/pmd/cpd/GUI.java
catch (IOException e) { error("Couldn't save file" + f.getAbsolutePath(), e); }
// in src/main/java/net/sourceforge/pmd/cpd/GUI.java
catch (IOException t) { t.printStackTrace(); JOptionPane.showMessageDialog(frame, "Halted due to " + t.getClass().getName() + "; " + t.getMessage()); }
// in src/main/java/net/sourceforge/pmd/cpd/CPDTask.java
catch (IOException ioe) { log(ioe.toString(), Project.MSG_ERR); throw new BuildException("IOException during task execution", ioe); }
// in src/main/java/net/sourceforge/pmd/cpd/FileReporter.java
catch (IOException ioe) { throw new ReportException(ioe); }
// in src/main/java/net/sourceforge/pmd/RuleSetFactory.java
catch (IOException ioe) { throw new RuntimeException("Couldn't find " + rulesetsProperties + "; please ensure that the rulesets directory is on the classpath. The current classpath is: " + System.getProperty("java.class.path")); }
// in src/main/java/net/sourceforge/pmd/RuleSetFactory.java
catch (IOException ioe) { return classNotFoundProblem(ioe); }
// in src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/EcmascriptParser.java
catch (final IOException e) { throw new ParseException(e); }
// in src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/DumpFacade.java
catch (IOException e) { throw new RuntimeException("Problem flushing PrintWriter.", e); }
// in src/main/java/net/sourceforge/pmd/lang/xml/ast/XmlParser.java
catch (IOException e) { throw new ParseException(e); }
// in src/main/java/net/sourceforge/pmd/lang/xml/ast/DumpFacade.java
catch (IOException e) { throw new RuntimeException("Problem flushing PrintWriter.", e); }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { return curPos; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { return curPos; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_12(0, active0); return 1; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { return curPos; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_13(0, active0); return 1; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_13(1, active0); return 2; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_13(2, active0); return 3; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_13(3, active0); return 4; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_13(4, active0); return 5; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_13(5, active0); return 6; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_13(6, active0); return 7; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_13(7, active0); return 8; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { return curPos; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_10(0, active0); return 1; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { return curPos; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { return curPos; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_15(0, active0); return 1; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { return curPos; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_6(0, active0); return 1; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_6(1, active0); return 2; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_6(2, active0); return 3; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_6(3, active0); return 4; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_6(4, active0); return 5; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { return curPos; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { return 1; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { return 2; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { return curPos; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_8(0, active0); return 1; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_8(1, active0); return 2; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_8(2, active0); return 3; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { return curPos; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { return curPos; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { return curPos; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { return curPos; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { return curPos; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_11(0, active0); return 1; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { return curPos; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_9(0, active0); return 1; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { return curPos; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_17(0, active0); return 1; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_17(1, active0); return 2; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_17(2, active0); return 3; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_17(3, active0); return 4; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_17(4, active0); return 5; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_17(5, active0); return 6; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_17(6, active0); return 7; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_17(7, active0); return 8; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { return curPos; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch(java.io.IOException e) { jjmatchedKind = 0; matchedToken = jjFillToken(); matchedToken.specialToken = specialToken; return matchedToken; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
catch (java.io.IOException e1) { EOFSeen = true; error_after = curPos <= 1 ? "" : input_stream.GetImage(); if (curChar == '\n' || curChar == '\r') { error_line++; error_column = 0; } else error_column++; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/DumpFacade.java
catch (IOException e) { throw new RuntimeException("Problem flushing PrintWriter.", e); }
// in src/main/java/net/sourceforge/pmd/lang/ast/JavaCharStream.java
catch(java.io.IOException e) { if (bufpos != 0) { --bufpos; backup(0); } else { bufline[bufpos] = line; bufcolumn[bufpos] = column; } throw e; }
// in src/main/java/net/sourceforge/pmd/lang/ast/JavaCharStream.java
catch(java.io.IOException e) { if (backSlashCnt > 1) backup(backSlashCnt-1); return '\\'; }
// in src/main/java/net/sourceforge/pmd/lang/ast/JavaCharStream.java
catch(java.io.IOException e) { throw new Error("Invalid escape character at line " + line + " column " + column + "."); }
// in src/main/java/net/sourceforge/pmd/lang/ast/SimpleCharStream.java
catch(java.io.IOException e) { --bufpos; backup(0); if (tokenBegin == -1) tokenBegin = bufpos; throw e; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_0(0, active0, active1); return 1; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_0(1, active0, active1); return 2; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_0(2, active0, active1); return 3; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_0(3, active0, 0L); return 4; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_0(4, active0, 0L); return 5; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_0(5, active0, 0L); return 6; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_0(6, active0, 0L); return 7; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_0(7, active0, 0L); return 8; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_0(8, active0, 0L); return 9; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_0(9, active0, 0L); return 10; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_0(10, active0, 0L); return 11; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParserTokenManager.java
catch(java.io.IOException e) { return pos + 1; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParserTokenManager.java
catch(java.io.IOException e) { return curPos; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParserTokenManager.java
catch(java.io.IOException e) { return 1; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParserTokenManager.java
catch(java.io.IOException e) { return 1; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParserTokenManager.java
catch(java.io.IOException e) { jjmatchedKind = 0; matchedToken = jjFillToken(); matchedToken.specialToken = specialToken; return matchedToken; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParserTokenManager.java
catch (java.io.IOException e1) { }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParserTokenManager.java
catch (java.io.IOException e1) { EOFSeen = true; error_after = curPos <= 1 ? "" : input_stream.GetImage(); if (curChar == '\n' || curChar == '\r') { error_line++; error_column = 0; } else error_column++; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/DumpFacade.java
catch (IOException e) { throw new RuntimeException("Problem flushing PrintWriter.", e); }
// in src/main/java/net/sourceforge/pmd/lang/java/typeresolution/PMDASMClassLoader.java
catch (IOException e) { dontBother.add(name); throw new ClassNotFoundException(name, e); }
// in src/main/java/net/sourceforge/pmd/lang/java/rule/strings/AvoidDuplicateLiteralsRule.java
catch (IOException ioe) { ioe.printStackTrace(); }
// in src/main/java/net/sourceforge/pmd/lang/cpp/ast/CppParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_0(0, active0, active1, active2); return 1; }
// in src/main/java/net/sourceforge/pmd/lang/cpp/ast/CppParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_0(1, active0, active1, active2); return 2; }
// in src/main/java/net/sourceforge/pmd/lang/cpp/ast/CppParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_0(2, 0L, active1, active2); return 3; }
// in src/main/java/net/sourceforge/pmd/lang/cpp/ast/CppParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_0(3, 0L, active1, active2); return 4; }
// in src/main/java/net/sourceforge/pmd/lang/cpp/ast/CppParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_0(4, 0L, active1, active2); return 5; }
// in src/main/java/net/sourceforge/pmd/lang/cpp/ast/CppParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_0(5, 0L, active1, active2); return 6; }
// in src/main/java/net/sourceforge/pmd/lang/cpp/ast/CppParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_0(6, 0L, active1, 0L); return 7; }
// in src/main/java/net/sourceforge/pmd/lang/cpp/ast/CppParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_0(7, 0L, active1, 0L); return 8; }
// in src/main/java/net/sourceforge/pmd/lang/cpp/ast/CppParserTokenManager.java
catch(java.io.IOException e) { jjStopStringLiteralDfa_0(8, 0L, active1, 0L); return 9; }
// in src/main/java/net/sourceforge/pmd/lang/cpp/ast/CppParserTokenManager.java
catch(java.io.IOException e) { return pos + 1; }
// in src/main/java/net/sourceforge/pmd/lang/cpp/ast/CppParserTokenManager.java
catch(java.io.IOException e) { return curPos; }
// in src/main/java/net/sourceforge/pmd/lang/cpp/ast/CppParserTokenManager.java
catch(java.io.IOException e) { return 1; }
// in src/main/java/net/sourceforge/pmd/lang/cpp/ast/CppParserTokenManager.java
catch(java.io.IOException e) { return 2; }
// in src/main/java/net/sourceforge/pmd/lang/cpp/ast/CppParserTokenManager.java
catch(java.io.IOException e) { return 1; }
// in src/main/java/net/sourceforge/pmd/lang/cpp/ast/CppParserTokenManager.java
catch(java.io.IOException e) { return 1; }
// in src/main/java/net/sourceforge/pmd/lang/cpp/ast/CppParserTokenManager.java
catch(java.io.IOException e) { jjmatchedKind = 0; matchedToken = jjFillToken(); return matchedToken; }
// in src/main/java/net/sourceforge/pmd/lang/cpp/ast/CppParserTokenManager.java
catch (java.io.IOException e1) { continue EOFLoop; }
// in src/main/java/net/sourceforge/pmd/lang/cpp/ast/CppParserTokenManager.java
catch (java.io.IOException e1) { }
// in src/main/java/net/sourceforge/pmd/lang/cpp/ast/CppParserTokenManager.java
catch (java.io.IOException e1) { EOFSeen = true; error_after = curPos <= 1 ? "" : input_stream.GetImage(); if (curChar == '\n' || curChar == '\r') { error_line++; error_column = 0; } else error_column++; }
// in src/main/java/net/sourceforge/pmd/processor/AbstractPMDProcessor.java
catch (IOException ioe) { }
// in src/main/java/net/sourceforge/pmd/processor/PmdRunnable.java
catch (IOException ioe) { addErrorAndShutdown(report, ioe, "IOException during processing"); }
// in src/main/java/net/sourceforge/pmd/processor/MonoThreadProcessor.java
catch (IOException ioe) { // unexpected exception: log and stop executor service addError(report, "Unable to read source file", ioe, niceFileName); }
// in src/main/java/net/sourceforge/pmd/renderers/AbstractRenderer.java
catch (IOException e) { throw new IllegalStateException(e); }
// in src/main/java/net/sourceforge/pmd/renderers/TextColorRenderer.java
catch (IOException ioErr) { ioErr.printStackTrace(); }
// in src/main/java/net/sourceforge/pmd/renderers/TextColorRenderer.java
catch (IOException ioErr) { // to avoid further error this.pwd = ""; }
// in src/main/java/net/sourceforge/pmd/renderers/XSLTRenderer.java
catch (IOException e) { e.printStackTrace(); }
// in src/main/java/net/sourceforge/pmd/ant/PMDTask.java
catch (IOException ioe) { throw new BuildException(ioe.getMessage(), ioe); }
// in src/main/java/net/sourceforge/pmd/ant/Formatter.java
catch (IOException ioe) { throw new BuildException(ioe.getMessage(), ioe); }
// in src/main/java/net/sourceforge/pmd/ant/Formatter.java
catch (IOException ioe) { throw new BuildException(ioe.getMessage(), ioe); }
// in src/main/java/net/sourceforge/pmd/PMD.java
catch (IOException e) { LOG.log(Level.FINE, "Couldn't determine version of PMD", e); }
// in src/main/java/net/sourceforge/pmd/PMDParameters.java
catch (IOException e) { throw new IllegalArgumentException("Invalid auxiliary classpath: " + e.getMessage(), e); }
// in src/main/java/net/sourceforge/pmd/util/IOUtil.java
catch (IOException ex) { // ignore }
// in src/main/java/net/sourceforge/pmd/util/IOUtil.java
catch (IOException ex) { // ignore }
// in src/main/java/net/sourceforge/pmd/util/IOUtil.java
catch (IOException ex) { // ignore it }
// in src/main/java/net/sourceforge/pmd/util/IOUtil.java
catch (IOException ex) { //ignore }
// in src/main/java/net/sourceforge/pmd/util/IOUtil.java
catch (IOException e) { throw new IllegalArgumentException(e); }
// in src/main/java/net/sourceforge/pmd/util/FileUtil.java
catch (IOException ze) { throw new RuntimeException("Archive file " + file.getName() + " can't be opened"); }
// in src/main/java/net/sourceforge/pmd/util/designer/Designer.java
catch (IOException e) { e.printStackTrace(); }
// in src/main/java/net/sourceforge/pmd/util/designer/Designer.java
catch (IOException e) { e.printStackTrace(); }
21
            
// in src/main/java/net/sourceforge/pmd/dcd/graph/UsageGraphBuilder.java
catch (IOException e) { throw new RuntimeException("For " + name + ": " + e.getMessage(), e); }
// in src/main/java/net/sourceforge/pmd/cpd/CPDTask.java
catch (IOException ioe) { log(ioe.toString(), Project.MSG_ERR); throw new BuildException("IOException during task execution", ioe); }
// in src/main/java/net/sourceforge/pmd/cpd/FileReporter.java
catch (IOException ioe) { throw new ReportException(ioe); }
// in src/main/java/net/sourceforge/pmd/RuleSetFactory.java
catch (IOException ioe) { throw new RuntimeException("Couldn't find " + rulesetsProperties + "; please ensure that the rulesets directory is on the classpath. The current classpath is: " + System.getProperty("java.class.path")); }
// in src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/EcmascriptParser.java
catch (final IOException e) { throw new ParseException(e); }
// in src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/DumpFacade.java
catch (IOException e) { throw new RuntimeException("Problem flushing PrintWriter.", e); }
// in src/main/java/net/sourceforge/pmd/lang/xml/ast/XmlParser.java
catch (IOException e) { throw new ParseException(e); }
// in src/main/java/net/sourceforge/pmd/lang/xml/ast/DumpFacade.java
catch (IOException e) { throw new RuntimeException("Problem flushing PrintWriter.", e); }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/DumpFacade.java
catch (IOException e) { throw new RuntimeException("Problem flushing PrintWriter.", e); }
// in src/main/java/net/sourceforge/pmd/lang/ast/JavaCharStream.java
catch(java.io.IOException e) { if (bufpos != 0) { --bufpos; backup(0); } else { bufline[bufpos] = line; bufcolumn[bufpos] = column; } throw e; }
// in src/main/java/net/sourceforge/pmd/lang/ast/JavaCharStream.java
catch(java.io.IOException e) { throw new Error("Invalid escape character at line " + line + " column " + column + "."); }
// in src/main/java/net/sourceforge/pmd/lang/ast/SimpleCharStream.java
catch(java.io.IOException e) { --bufpos; backup(0); if (tokenBegin == -1) tokenBegin = bufpos; throw e; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/DumpFacade.java
catch (IOException e) { throw new RuntimeException("Problem flushing PrintWriter.", e); }
// in src/main/java/net/sourceforge/pmd/lang/java/typeresolution/PMDASMClassLoader.java
catch (IOException e) { dontBother.add(name); throw new ClassNotFoundException(name, e); }
// in src/main/java/net/sourceforge/pmd/renderers/AbstractRenderer.java
catch (IOException e) { throw new IllegalStateException(e); }
// in src/main/java/net/sourceforge/pmd/ant/PMDTask.java
catch (IOException ioe) { throw new BuildException(ioe.getMessage(), ioe); }
// in src/main/java/net/sourceforge/pmd/ant/Formatter.java
catch (IOException ioe) { throw new BuildException(ioe.getMessage(), ioe); }
// in src/main/java/net/sourceforge/pmd/ant/Formatter.java
catch (IOException ioe) { throw new BuildException(ioe.getMessage(), ioe); }
// in src/main/java/net/sourceforge/pmd/PMDParameters.java
catch (IOException e) { throw new IllegalArgumentException("Invalid auxiliary classpath: " + e.getMessage(), e); }
// in src/main/java/net/sourceforge/pmd/util/IOUtil.java
catch (IOException e) { throw new IllegalArgumentException(e); }
// in src/main/java/net/sourceforge/pmd/util/FileUtil.java
catch (IOException ze) { throw new RuntimeException("Archive file " + file.getName() + " can't be opened"); }
11
unknown (Lib) IllegalAccessException 0 0 3
            
// in src/main/java/net/sourceforge/pmd/cpd/LanguageFactory.java
private Language dynamicLanguageImplementationLoad(String language) throws InstantiationException, IllegalAccessException { try { return (Language) this.getClass().getClassLoader().loadClass( PACKAGE + language + SUFFIX).newInstance(); } catch (ClassNotFoundException e) { // No class found, returning default implementation // FIXME: There should be somekind of log of this return null; } catch (NoClassDefFoundError e) { // Windows is case insensitive, so it may find the file, even though // the name has a different case. Since Java is case sensitive, it // will not accept the classname inside the file that was found and // will throw a NoClassDefFoundError return null; } }
// in src/main/java/net/sourceforge/pmd/RuleSetFactory.java
private void parseRuleNode(RuleSetReferenceId ruleSetReferenceId, RuleSet ruleSet, Node ruleNode) throws ClassNotFoundException, InstantiationException, IllegalAccessException, RuleSetNotFoundException { Element ruleElement = (Element) ruleNode; String ref = ruleElement.getAttribute("ref"); if (ref.endsWith("xml")) { parseRuleSetReferenceNode(ruleSetReferenceId, ruleSet, ruleElement, ref); } else if (StringUtil.isEmpty(ref)) { parseSingleRuleNode(ruleSetReferenceId, ruleSet, ruleNode); } else { parseRuleReferenceNode(ruleSetReferenceId, ruleSet, ruleNode, ref); } }
// in src/main/java/net/sourceforge/pmd/RuleSetFactory.java
private void parseSingleRuleNode(RuleSetReferenceId ruleSetReferenceId, RuleSet ruleSet, Node ruleNode) throws ClassNotFoundException, InstantiationException, IllegalAccessException { Element ruleElement = (Element) ruleNode; // Stop if we're looking for a particular Rule, and this element is not it. if (StringUtil.isNotEmpty(ruleSetReferenceId.getRuleName()) && !isRuleName(ruleElement, ruleSetReferenceId.getRuleName())) { return; } String attribute = ruleElement.getAttribute("class"); Class<?> c = classLoader.loadClass(attribute); Rule rule = (Rule) c.newInstance(); rule.setName(ruleElement.getAttribute("name")); if (ruleElement.hasAttribute("language")) { String languageName = ruleElement.getAttribute("language"); Language language = Language.findByTerseName(languageName); if (language == null) { throw new IllegalArgumentException("Unknown Language '" + languageName + "' for Rule " + rule.getName() + ", supported Languages are " + Language.commaSeparatedTerseNames(Language.findWithRuleSupport())); } rule.setLanguage(language); } Language language = rule.getLanguage(); if (language == null) { throw new IllegalArgumentException("Rule " + rule.getName() + " does not have a Language; missing 'language' attribute?"); } if (ruleElement.hasAttribute("minimumLanguageVersion")) { String minimumLanguageVersionName = ruleElement.getAttribute("minimumLanguageVersion"); LanguageVersion minimumLanguageVersion = language.getVersion(minimumLanguageVersionName); if (minimumLanguageVersion == null) { throw new IllegalArgumentException("Unknown minimum Language Version '" + minimumLanguageVersionName + "' for Language '" + language.getTerseName() + "' for Rule " + rule.getName() + "; supported Language Versions are: " + LanguageVersion.commaSeparatedTerseNames(language.getVersions())); } rule.setMinimumLanguageVersion(minimumLanguageVersion); } if (ruleElement.hasAttribute("maximumLanguageVersion")) { String maximumLanguageVersionName = ruleElement.getAttribute("maximumLanguageVersion"); LanguageVersion maximumLanguageVersion = language.getVersion(maximumLanguageVersionName); if (maximumLanguageVersion == null) { throw new IllegalArgumentException("Unknown maximum Language Version '" + maximumLanguageVersionName + "' for Language '" + language.getTerseName() + "' for Rule " + rule.getName() + "; supported Language Versions are: " + LanguageVersion.commaSeparatedTerseNames(language.getVersions())); } rule.setMaximumLanguageVersion(maximumLanguageVersion); } if (rule.getMinimumLanguageVersion() != null && rule.getMaximumLanguageVersion() != null) { throw new IllegalArgumentException("The minimum Language Version '" + rule.getMinimumLanguageVersion().getTerseName() + "' must be prior to the maximum Language Version '" + rule.getMaximumLanguageVersion().getTerseName() + "' for Rule " + rule.getName() + "; perhaps swap them around?"); } String since = ruleElement.getAttribute("since"); if (StringUtil.isNotEmpty(since)) { rule.setSince(since); } rule.setMessage(ruleElement.getAttribute("message")); rule.setRuleSetName(ruleSet.getName()); rule.setExternalInfoUrl(ruleElement.getAttribute("externalInfoUrl")); if (hasAttributeSetTrue(ruleElement,"dfa")) { rule.setUsesDFA(); } if (hasAttributeSetTrue(ruleElement,"typeResolution")) { rule.setUsesTypeResolution(); } final NodeList nodeList = ruleElement.getChildNodes(); for (int i = 0; i < nodeList.getLength(); i++) { Node node = nodeList.item(i); if (node.getNodeType() != Node.ELEMENT_NODE) { continue; } String nodeName = node.getNodeName(); if (nodeName.equals("description")) { rule.setDescription(parseTextNode(node)); } else if (nodeName.equals("example")) { rule.addExample(parseTextNode(node)); } else if (nodeName.equals("priority")) { rule.setPriority(RulePriority.valueOf(Integer.parseInt(parseTextNode(node).trim()))); } else if (nodeName.equals("properties")) { parsePropertiesNode(rule, node); } else { throw new IllegalArgumentException("Unexpected element <" + nodeName + "> encountered as child of <rule> element for Rule " + rule.getName()); } } if (StringUtil.isNotEmpty(ruleSetReferenceId.getRuleName()) || rule.getPriority().compareTo(minimumPriority) <= 0) { ruleSet.addRule(rule); } }
7
            
// in src/main/java/net/sourceforge/pmd/cpd/LanguageFactory.java
catch (IllegalAccessException e) { e.printStackTrace(); }
// in src/main/java/net/sourceforge/pmd/RuleSetFactory.java
catch (IllegalAccessException iae) { return classNotFoundProblem(iae); }
// in src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/EcmascriptTreeBuilder.java
catch (IllegalAccessException e) { throw new RuntimeException(e); }
// in src/main/java/net/sourceforge/pmd/lang/ast/xpath/Attribute.java
catch (IllegalAccessException iae) { iae.printStackTrace(); }
// in src/main/java/net/sourceforge/pmd/lang/Language.java
catch (IllegalAccessException e) { throw new IllegalStateException("Unable to invoke no-arg constructor for RuleChainVisitor class <" + ruleChainVisitorClass.getName() + ">!"); }
// in src/main/java/net/sourceforge/pmd/RuleChain.java
catch (IllegalAccessException e) { throw new IllegalStateException("Failure to created RuleChainVisitor: " + language.getRuleChainVisitorClass(), e); }
// in src/main/java/net/sourceforge/pmd/renderers/RendererFactory.java
catch (IllegalAccessException e) { throw new IllegalArgumentException("Unable to construct report renderer class: " + e.getLocalizedMessage()); }
4
            
// in src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/EcmascriptTreeBuilder.java
catch (IllegalAccessException e) { throw new RuntimeException(e); }
// in src/main/java/net/sourceforge/pmd/lang/Language.java
catch (IllegalAccessException e) { throw new IllegalStateException("Unable to invoke no-arg constructor for RuleChainVisitor class <" + ruleChainVisitorClass.getName() + ">!"); }
// in src/main/java/net/sourceforge/pmd/RuleChain.java
catch (IllegalAccessException e) { throw new IllegalStateException("Failure to created RuleChainVisitor: " + language.getRuleChainVisitorClass(), e); }
// in src/main/java/net/sourceforge/pmd/renderers/RendererFactory.java
catch (IllegalAccessException e) { throw new IllegalArgumentException("Unable to construct report renderer class: " + e.getLocalizedMessage()); }
4
runtime (Lib) IllegalArgumentException 78
            
// in src/main/java/net/sourceforge/pmd/dcd/graph/UsageGraph.java
private final void checkClassName(String className) { // Make sure it's not in byte code internal format, or file system path. if (className.indexOf('/') >= 0 || className.indexOf('\\') >= 0) { throw new IllegalArgumentException("Invalid class name: " + className); } }
// in src/main/java/net/sourceforge/pmd/RuleSetFactory.java
private Rule createRule(RuleSetReferenceId ruleSetReferenceId) throws RuleSetNotFoundException { if (ruleSetReferenceId.isAllRules()) { throw new IllegalArgumentException("Cannot parse a single Rule from an all Rule RuleSet reference: <" + ruleSetReferenceId + ">."); } RuleSet ruleSet = createRuleSet(ruleSetReferenceId); return ruleSet.getRuleByName(ruleSetReferenceId.getRuleName()); }
// in src/main/java/net/sourceforge/pmd/RuleSetFactory.java
private RuleSet parseRuleSetNode(RuleSetReferenceId ruleSetReferenceId, InputStream inputStream) { if (!ruleSetReferenceId.isExternal()) { throw new IllegalArgumentException("Cannot parse a RuleSet from a non-external reference: <" + ruleSetReferenceId + ">."); } try { DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder(); Document document = builder.parse(inputStream); Element ruleSetElement = document.getDocumentElement(); RuleSet ruleSet = new RuleSet(); ruleSet.setFileName(ruleSetReferenceId.getRuleSetFileName()); ruleSet.setName(ruleSetElement.getAttribute("name")); NodeList nodeList = ruleSetElement.getChildNodes(); for (int i = 0; i < nodeList.getLength(); i++) { Node node = nodeList.item(i); if (node.getNodeType() == Node.ELEMENT_NODE) { String nodeName = node.getNodeName(); if ("description".equals(nodeName)) { ruleSet.setDescription(parseTextNode(node)); } else if ("include-pattern".equals(nodeName)) { ruleSet.addIncludePattern(parseTextNode(node)); } else if ("exclude-pattern".equals(nodeName)) { ruleSet.addExcludePattern(parseTextNode(node)); } else if ("rule".equals(nodeName)) { parseRuleNode(ruleSetReferenceId, ruleSet, node); } else { throw new IllegalArgumentException("Unexpected element <" + node.getNodeName() + "> encountered as child of <ruleset> element."); } } } return ruleSet; } catch (ClassNotFoundException cnfe) { return classNotFoundProblem(cnfe); } catch (InstantiationException ie) { return classNotFoundProblem(ie); } catch (IllegalAccessException iae) { return classNotFoundProblem(iae); } catch (ParserConfigurationException pce) { return classNotFoundProblem(pce); } catch (RuleSetNotFoundException rsnfe) { return classNotFoundProblem(rsnfe); } catch (IOException ioe) { return classNotFoundProblem(ioe); } catch (SAXException se) { return classNotFoundProblem(se); } }
// in src/main/java/net/sourceforge/pmd/RuleSetFactory.java
private void parseSingleRuleNode(RuleSetReferenceId ruleSetReferenceId, RuleSet ruleSet, Node ruleNode) throws ClassNotFoundException, InstantiationException, IllegalAccessException { Element ruleElement = (Element) ruleNode; // Stop if we're looking for a particular Rule, and this element is not it. if (StringUtil.isNotEmpty(ruleSetReferenceId.getRuleName()) && !isRuleName(ruleElement, ruleSetReferenceId.getRuleName())) { return; } String attribute = ruleElement.getAttribute("class"); Class<?> c = classLoader.loadClass(attribute); Rule rule = (Rule) c.newInstance(); rule.setName(ruleElement.getAttribute("name")); if (ruleElement.hasAttribute("language")) { String languageName = ruleElement.getAttribute("language"); Language language = Language.findByTerseName(languageName); if (language == null) { throw new IllegalArgumentException("Unknown Language '" + languageName + "' for Rule " + rule.getName() + ", supported Languages are " + Language.commaSeparatedTerseNames(Language.findWithRuleSupport())); } rule.setLanguage(language); } Language language = rule.getLanguage(); if (language == null) { throw new IllegalArgumentException("Rule " + rule.getName() + " does not have a Language; missing 'language' attribute?"); } if (ruleElement.hasAttribute("minimumLanguageVersion")) { String minimumLanguageVersionName = ruleElement.getAttribute("minimumLanguageVersion"); LanguageVersion minimumLanguageVersion = language.getVersion(minimumLanguageVersionName); if (minimumLanguageVersion == null) { throw new IllegalArgumentException("Unknown minimum Language Version '" + minimumLanguageVersionName + "' for Language '" + language.getTerseName() + "' for Rule " + rule.getName() + "; supported Language Versions are: " + LanguageVersion.commaSeparatedTerseNames(language.getVersions())); } rule.setMinimumLanguageVersion(minimumLanguageVersion); } if (ruleElement.hasAttribute("maximumLanguageVersion")) { String maximumLanguageVersionName = ruleElement.getAttribute("maximumLanguageVersion"); LanguageVersion maximumLanguageVersion = language.getVersion(maximumLanguageVersionName); if (maximumLanguageVersion == null) { throw new IllegalArgumentException("Unknown maximum Language Version '" + maximumLanguageVersionName + "' for Language '" + language.getTerseName() + "' for Rule " + rule.getName() + "; supported Language Versions are: " + LanguageVersion.commaSeparatedTerseNames(language.getVersions())); } rule.setMaximumLanguageVersion(maximumLanguageVersion); } if (rule.getMinimumLanguageVersion() != null && rule.getMaximumLanguageVersion() != null) { throw new IllegalArgumentException("The minimum Language Version '" + rule.getMinimumLanguageVersion().getTerseName() + "' must be prior to the maximum Language Version '" + rule.getMaximumLanguageVersion().getTerseName() + "' for Rule " + rule.getName() + "; perhaps swap them around?"); } String since = ruleElement.getAttribute("since"); if (StringUtil.isNotEmpty(since)) { rule.setSince(since); } rule.setMessage(ruleElement.getAttribute("message")); rule.setRuleSetName(ruleSet.getName()); rule.setExternalInfoUrl(ruleElement.getAttribute("externalInfoUrl")); if (hasAttributeSetTrue(ruleElement,"dfa")) { rule.setUsesDFA(); } if (hasAttributeSetTrue(ruleElement,"typeResolution")) { rule.setUsesTypeResolution(); } final NodeList nodeList = ruleElement.getChildNodes(); for (int i = 0; i < nodeList.getLength(); i++) { Node node = nodeList.item(i); if (node.getNodeType() != Node.ELEMENT_NODE) { continue; } String nodeName = node.getNodeName(); if (nodeName.equals("description")) { rule.setDescription(parseTextNode(node)); } else if (nodeName.equals("example")) { rule.addExample(parseTextNode(node)); } else if (nodeName.equals("priority")) { rule.setPriority(RulePriority.valueOf(Integer.parseInt(parseTextNode(node).trim()))); } else if (nodeName.equals("properties")) { parsePropertiesNode(rule, node); } else { throw new IllegalArgumentException("Unexpected element <" + nodeName + "> encountered as child of <rule> element for Rule " + rule.getName()); } } if (StringUtil.isNotEmpty(ruleSetReferenceId.getRuleName()) || rule.getPriority().compareTo(minimumPriority) <= 0) { ruleSet.addRule(rule); } }
// in src/main/java/net/sourceforge/pmd/RuleSetFactory.java
private void parseRuleReferenceNode(RuleSetReferenceId ruleSetReferenceId, RuleSet ruleSet, Node ruleNode, String ref) throws RuleSetNotFoundException { Element ruleElement = (Element) ruleNode; // Stop if we're looking for a particular Rule, and this element is not it. if (StringUtil.isNotEmpty(ruleSetReferenceId.getRuleName()) && !isRuleName(ruleElement, ruleSetReferenceId.getRuleName())) { return; } RuleSetFactory ruleSetFactory = new RuleSetFactory(); ruleSetFactory.setClassLoader(classLoader); RuleSetReferenceId otherRuleSetReferenceId = RuleSetReferenceId.parse(ref).get(0); if (!otherRuleSetReferenceId.isExternal()) { otherRuleSetReferenceId = new RuleSetReferenceId(ref, ruleSetReferenceId); } Rule referencedRule = ruleSetFactory.createRule(otherRuleSetReferenceId); if (referencedRule == null) { throw new IllegalArgumentException("Unable to find referenced rule " + otherRuleSetReferenceId.getRuleName() + "; perhaps the rule name is mispelled?"); } if (warnDeprecated && referencedRule.isDeprecated()) { if (referencedRule instanceof RuleReference) { RuleReference ruleReference = (RuleReference) referencedRule; LOG.warning("Use Rule name " + ruleReference.getRuleSetReference().getRuleSetFileName() + "/" + ruleReference.getName() + " instead of the deprecated Rule name " + otherRuleSetReferenceId + ". Future versions of PMD will remove support for this deprecated Rule name usage."); } else if (referencedRule instanceof MockRule) { LOG.warning("Discontinue using Rule name " + otherRuleSetReferenceId + " as it has been removed from PMD and no longer functions." + " Future versions of PMD will remove support for this Rule."); } else { LOG.warning("Discontinue using Rule name " + otherRuleSetReferenceId + " as it is scheduled for removal from PMD." + " Future versions of PMD will remove support for this Rule."); } } RuleSetReference ruleSetReference = new RuleSetReference(); ruleSetReference.setAllRules(false); ruleSetReference.setRuleSetFileName(otherRuleSetReferenceId.getRuleSetFileName()); RuleReference ruleReference = new RuleReference(); ruleReference.setRuleSetReference(ruleSetReference); ruleReference.setRule(referencedRule); if (ruleElement.hasAttribute("deprecated")) { ruleReference.setDeprecated(Boolean.parseBoolean(ruleElement.getAttribute("deprecated"))); } if (ruleElement.hasAttribute("name")) { ruleReference.setName(ruleElement.getAttribute("name")); } if (ruleElement.hasAttribute("message")) { ruleReference.setMessage(ruleElement.getAttribute("message")); } if (ruleElement.hasAttribute("externalInfoUrl")) { ruleReference.setExternalInfoUrl(ruleElement.getAttribute("externalInfoUrl")); } for (int i = 0; i < ruleElement.getChildNodes().getLength(); i++) { Node node = ruleElement.getChildNodes().item(i); if (node.getNodeType() == Node.ELEMENT_NODE) { if (node.getNodeName().equals("description")) { ruleReference.setDescription(parseTextNode(node)); } else if (node.getNodeName().equals("example")) { ruleReference.addExample(parseTextNode(node)); } else if (node.getNodeName().equals("priority")) { ruleReference.setPriority(RulePriority.valueOf(Integer.parseInt(parseTextNode(node)))); } else if (node.getNodeName().equals("properties")) { parsePropertiesNode(ruleReference, node); } else { throw new IllegalArgumentException("Unexpected element <" + node.getNodeName() + "> encountered as child of <rule> element for Rule " + ruleReference.getName()); } } } if (StringUtil.isNotEmpty(ruleSetReferenceId.getRuleName()) || referencedRule.getPriority().compareTo(minimumPriority) <= 0) { ruleSet.addRule(ruleReference); } }
// in src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/EcmascriptTreeBuilder.java
protected EcmascriptNode createNodeAdapter(AstNode node) { try { Constructor<? extends EcmascriptNode> constructor = NODE_TYPE_TO_NODE_ADAPTER_TYPE.get(node.getClass()); if (constructor == null) { throw new IllegalArgumentException("There is no Node adapter class registered for the Node class: " + node.getClass()); } return constructor.newInstance(node); } catch (InstantiationException e) { throw new RuntimeException(e); } catch (IllegalAccessException e) { throw new RuntimeException(e); } catch (InvocationTargetException e) { throw new RuntimeException(e.getTargetException()); } }
// in src/main/java/net/sourceforge/pmd/lang/ast/AbstractNode.java
public Node getNthParent(int n) { if (n <= 0) { throw new IllegalArgumentException(); } Node result = this.jjtGetParent(); for (int i = 1; i < n; i++) { if (result == null) { return null; } result = result.jjtGetParent(); } return result; }
// in src/main/java/net/sourceforge/pmd/lang/java/xpath/TypeOfFunction.java
public Object call(Context context, List args) throws FunctionCallException { String nodeTypeName = null; String fullTypeName = null; String shortTypeName = null; Attribute attr = null; for (int i = 0; i < args.size(); i++) { if (args.get(i) instanceof List) { if (attr == null) { attr = (Attribute) ((List) args.get(i)).get(0); nodeTypeName = attr.getStringValue(); } else { throw new IllegalArgumentException( "typeof function can take only a single argument which is an Attribute."); } } else { if (fullTypeName == null) { fullTypeName = (String) args.get(i); } else if (shortTypeName == null) { shortTypeName = (String) args.get(i); } else { break; } } } if (fullTypeName == null) { throw new IllegalArgumentException( "typeof function must be given at least one String argument for the fully qualified type name."); } Node n = (Node) context.getNodeSet().get(0); return typeof(n, nodeTypeName, fullTypeName, shortTypeName); }
// in src/main/java/net/sourceforge/pmd/lang/java/xpath/TypeOfFunction.java
public static boolean typeof(Node n, String nodeTypeName, String fullTypeName, String shortTypeName) { if (n instanceof TypeNode) { Class type = ((TypeNode) n).getType(); if (type == null) { return nodeTypeName != null && (nodeTypeName.equals(fullTypeName) || nodeTypeName.equals(shortTypeName)); } if (type.getName().equals(fullTypeName)) { return true; } List<Class> implementors = Arrays.asList(type.getInterfaces()); if (implementors.contains(type)) { return true; } Class<?> superC = type.getSuperclass(); while (superC != null && !superC.equals(Object.class)) { if (superC.getName().equals(fullTypeName)) { return true; } superC = superC.getSuperclass(); } } else { throw new IllegalArgumentException("typeof function may only be called on a TypeNode."); } return false; }
// in src/main/java/net/sourceforge/pmd/lang/java/rule/GenericLiteralCheckerRule.java
private void init() { if (pattern == null) { // Retrieve the regex pattern set by user String stringPattern = super.getProperty(REGEX_PROPERTY); // Compile the pattern only once if ( stringPattern != null && stringPattern.length() > 0 ) { pattern = Pattern.compile(stringPattern); } else { throw new IllegalArgumentException("Must provide a value for the '" + PROPERTY_NAME + "' property."); } } }
// in src/main/java/net/sourceforge/pmd/lang/java/rule/design/PositionalIteratorRule.java
private String getName(Node node) { if (node.jjtGetNumChildren() > 0) { if (node.jjtGetChild(0) instanceof ASTName) { return ((ASTName) node.jjtGetChild(0)).getImage(); } else { return getName(node.jjtGetChild(0)); } } throw new IllegalArgumentException("Check with hasNameAsChild() first!"); }
// in src/main/java/net/sourceforge/pmd/lang/rule/properties/AbstractPackagedProperty.java
private void checkValidPackages(Object item, String[] legalNamePrefixes) { Object[] items; if (item.getClass().isArray()) { items = (Object[])item; } else{ items = new Object[]{item}; } String[] names = new String[items.length]; Set<String> nameSet = new HashSet<String>(items.length); String name = null; for (int i=0; i<items.length; i++) { name = packageNameOf(items[i]); names[i] = name; nameSet.add(name); } for (int i=0; i<names.length; i++) { for (int l=0; l<legalNamePrefixes.length; l++) { if (names[i].startsWith(legalNamePrefixes[l])) { nameSet.remove(names[i]); break; } } } if (nameSet.isEmpty()) { return; } throw new IllegalArgumentException("Invalid items: " + nameSet); }
// in src/main/java/net/sourceforge/pmd/lang/rule/properties/TypeProperty.java
static Class<?> classFrom(String className) { Class<?> cls = ClassUtil.getTypeFor(className); if (cls != null) { return cls; } try { return Class.forName(className); } catch (Exception ex) { throw new IllegalArgumentException(className); } }
// in src/main/java/net/sourceforge/pmd/lang/rule/properties/PropertyDescriptorFactory.java
public static String getPropertyDescriptorType(PropertyDescriptor<?> propertyDescriptor) { Class<?> type = propertyDescriptor.type(); String typeName = null; if (propertyDescriptor instanceof EnumeratedProperty || propertyDescriptor instanceof MethodProperty // TODO - yes we // can, // investigate || propertyDescriptor instanceof TypeProperty) { // Cannot serialize these kinds of PropertyDescriptors } else if ("java.lang".equals(type.getPackage().getName())) { typeName = type.getSimpleName(); } if (typeName == null) { throw new IllegalArgumentException("Cannot encode type for PropertyDescriptor class: " + type.getName()); } return typeName; }
// in src/main/java/net/sourceforge/pmd/lang/rule/properties/PropertyDescriptorFactory.java
private static PropertyDescriptor<?> createRawPropertyDescriptor(String name, String description, String type, String delimiter, String min, String max, String value) { if ("Boolean".equals(type)) { return new BooleanProperty(name, description, value, 0.0f); } else if ("Boolean[]".equals(type)) { BooleanMultiProperty property = new BooleanMultiProperty(name, description, null, 0.0f); return new BooleanMultiProperty(name, description, property.valueFrom(value), 0.0f); } else if ("Character".equals(type)) { return new CharacterProperty(name, description, CharacterProperty.charFrom(value), 0.0f); } else if ("Character[]".equals(type)) { checkDelimiter(name, type, delimiter); char delim = delimiter.charAt(0); CharacterMultiProperty property = new CharacterMultiProperty(name, description, null, 0.0f, delim); return new CharacterMultiProperty(name, description, property.valueFrom(value), 0.0f, delim); } else if ("Double".equals(type)) { checkMinMax(name, type, min, max); return new DoubleProperty(name, description, min, max, value, 0.0f); } else if ("Double[]".equals(type)) { checkMinMax(name, type, min, max); DoubleMultiProperty property = new DoubleMultiProperty(name, description, 0d, 0d, null, 0.0f); return new DoubleMultiProperty(name, description, DoubleProperty.doubleFrom(min), DoubleProperty.doubleFrom(max), property.valueFrom(value), 0.0f); } else if ("Float".equals(type)) { checkMinMax(name, type, min, max); return new FloatProperty(name, description, min, max, value, 0.0f); } else if ("Float[]".equals(type)) { checkMinMax(name, type, min, max); FloatMultiProperty property = new FloatMultiProperty(name, description, 0f, 0f, null, 0.0f); return new FloatMultiProperty(name, description, FloatProperty.floatFrom(min), FloatProperty.floatFrom(max), property.valueFrom(value), 0.0f); } else if ("Integer".equals(type)) { checkMinMax(name, type, min, max); return new IntegerProperty(name, description, min, max, value, 0.0f); } else if ("Integer[]".equals(type)) { checkMinMax(name, type, min, max); IntegerMultiProperty property = new IntegerMultiProperty(name, description, 0, 0, null, 0.0f); return new IntegerMultiProperty(name, description, IntegerProperty.intFrom(min), IntegerProperty.intFrom(max), property.valueFrom(value), 0.0f); } else if ("Long".equals(type)) { checkMinMax(name, type, min, max); return new LongProperty(name, description, min, max, value, 0.0f); } else if ("Long[]".equals(type)) { checkMinMax(name, type, min, max); LongMultiProperty property = new LongMultiProperty(name, description, 0L, 0L, null, 0.0f); return new LongMultiProperty(name, description, LongProperty.longFrom(min), LongProperty.longFrom(max), property.valueFrom(value), 0.0f); // TODO - include legal package names for next four types } else if ("Type".equals(type)) { return new TypeProperty(name, description, value, (String[]) null, 0.0f); } else if ("Type[]".equals(type)) { return new TypeMultiProperty(name, description, value, (String[]) null, 0.0f); } else if ("Method".equals(type)) { return new MethodProperty(name, description, value, (String[]) null, 0.0f); } else if ("Method[]".equals(type)) { return new MethodMultiProperty(name, description, value, (String[]) null, 0.0f); } else if ("String".equals(type)) { return new StringProperty(name, description, value, 0.0f); } else if ("String[]".equals(type)) { checkDelimiter(name, type, delimiter); char delim = delimiter.charAt(0); StringMultiProperty property = new StringMultiProperty(name, description, null, 0.0f, delim); return new StringMultiProperty(name, description, property.valueFrom(value), 0.0f, delim); } else { throw new IllegalArgumentException("Cannot define property type '" + type + "'."); } }
// in src/main/java/net/sourceforge/pmd/lang/rule/properties/PropertyDescriptorFactory.java
private static void checkDelimiter(String name, String type, String delimiter) { if (delimiter == null || delimiter.length() == 0) { throw new IllegalArgumentException("Delimiter must be provided to create PropertyDescriptor for " + name + " of type " + type + "."); } }
// in src/main/java/net/sourceforge/pmd/lang/rule/properties/PropertyDescriptorFactory.java
private static void checkMinMax(String name, String type, String min, String max) { if (StringUtil.isEmpty(min)) { throw new IllegalArgumentException("Min must be provided to create PropertyDescriptor for " + name + " of type " + type + "."); } if (StringUtil.isEmpty(max)) { throw new IllegalArgumentException("Max must be provided to create PropertyDescriptor for " + name + " of type " + type + "."); } }
// in src/main/java/net/sourceforge/pmd/lang/rule/properties/CharacterMultiProperty.java
private static Character[] charsIn(String charString, char delimiter) { String[] values = StringUtil.substringsOf(charString, delimiter); Character[] chars = new Character[values.length]; for (int i=0; i<values.length;i++) { if (values.length != 1) { throw new IllegalArgumentException("missing/ambiguous character value"); } chars[i] = values[i].charAt(0); } return chars; }
// in src/main/java/net/sourceforge/pmd/lang/rule/properties/AbstractProperty.java
private static String checkNotEmpty(String arg, String argId) { if (StringUtil.isEmpty(arg)) { throw new IllegalArgumentException("Property attribute '" + argId + "' cannot be null or blank"); } return arg; }
// in src/main/java/net/sourceforge/pmd/lang/rule/properties/AbstractProperty.java
private static float checkPositive(float arg, String argId) { if (arg < 0) { throw new IllegalArgumentException("Property attribute " + argId + "' must be zero or positive"); } return arg; }
// in src/main/java/net/sourceforge/pmd/lang/rule/properties/CharacterProperty.java
public static Character charFrom(String charStr) { if (charStr == null || charStr.length() != 1) { throw new IllegalArgumentException("missing/invalid character value"); } return charStr.charAt(0); }
// in src/main/java/net/sourceforge/pmd/lang/rule/properties/AbstractDelimitedProperty.java
protected static char delimiterIn(Map<String, String> parameters) { if (!parameters.containsKey(DELIM_ID)) { throw new IllegalArgumentException("missing delimiter value"); } return parameters.get(DELIM_ID).charAt(0); }
// in src/main/java/net/sourceforge/pmd/lang/rule/properties/AbstractEnumeratedProperty.java
protected E choiceFrom(String label) { E result = choicesByLabel.get(label); if (result != null) { return result; } throw new IllegalArgumentException(label); }
// in src/main/java/net/sourceforge/pmd/lang/rule/properties/StringMultiProperty.java
private static void checkDefaults(String[] defaultValue, char delim) { if (defaultValue == null) { return; } for (int i=0; i<defaultValue.length; i++) { if (defaultValue[i].indexOf(delim) >= 0) { throw new IllegalArgumentException("Cannot include the delimiter in the set of defaults"); } } }
// in src/main/java/net/sourceforge/pmd/lang/rule/AbstractRule.java
public void addRuleChainVisit(Class<? extends Node> nodeClass) { if (!nodeClass.getSimpleName().startsWith("AST")) { throw new IllegalArgumentException("Node class does not start with 'AST' prefix: " + nodeClass); } addRuleChainVisit(nodeClass.getSimpleName().substring("AST".length())); }
// in src/main/java/net/sourceforge/pmd/RulesetsFactoryUtils.java
public static RuleSets getRuleSets(String rulesets, RuleSetFactory factory, long loadRuleStart) { RuleSets ruleSets = null; try { ruleSets = factory.createRuleSets(rulesets); factory.setWarnDeprecated(false); printRuleNamesInDebug(ruleSets); long endLoadRules = System.nanoTime(); Benchmarker.mark(Benchmark.LoadRules, endLoadRules - loadRuleStart, 0); } catch (RuleSetNotFoundException rsnfe) { LOG.log(Level.SEVERE, "Ruleset not found", rsnfe); throw new IllegalArgumentException(rsnfe); } return ruleSets; }
// in src/main/java/net/sourceforge/pmd/benchmark/Benchmarker.java
public synchronized static void mark(Benchmark type, String name, long time, long count) { String typeName = type.name; if (typeName != null && name != null) { throw new IllegalArgumentException("Name cannot be given for type: " + type); } else if (typeName == null && name == null) { throw new IllegalArgumentException("Name is required for type: " + type); } else if (typeName == null) { typeName = name; } BenchmarkResult benchmarkResult = BenchmarksByName.get(typeName); if (benchmarkResult == null) { benchmarkResult = new BenchmarkResult(type, typeName); BenchmarksByName.put(typeName, benchmarkResult); } benchmarkResult.update(time, count); }
// in src/main/java/net/sourceforge/pmd/RuleChain.java
private RuleChainVisitor getRuleChainVisitor(Language language) { RuleChainVisitor visitor = languageToRuleChainVisitor.get(language); if (visitor == null) { if (language.getRuleChainVisitorClass() != null) { try { visitor = (RuleChainVisitor) language.getRuleChainVisitorClass().newInstance(); } catch (InstantiationException e) { throw new IllegalStateException("Failure to created RuleChainVisitor: " + language.getRuleChainVisitorClass(), e); } catch (IllegalAccessException e) { throw new IllegalStateException("Failure to created RuleChainVisitor: " + language.getRuleChainVisitorClass(), e); } languageToRuleChainVisitor.put(language, visitor); } else { throw new IllegalArgumentException("Language does not have a RuleChainVisitor: " + language); } } return visitor; }
// in src/main/java/net/sourceforge/pmd/renderers/RendererFactory.java
public static Renderer createRenderer(String reportFormat, Properties properties) { Class<? extends Renderer> rendererClass = getRendererClass(reportFormat); Constructor<? extends Renderer> constructor = getRendererConstructor(rendererClass); Renderer renderer; try { if (constructor.getParameterTypes().length > 0) { renderer = constructor.newInstance(properties); } else { renderer = constructor.newInstance(); } } catch (InstantiationException e) { throw new IllegalArgumentException("Unable to construct report renderer class: " + e.getLocalizedMessage()); } catch (IllegalAccessException e) { throw new IllegalArgumentException("Unable to construct report renderer class: " + e.getLocalizedMessage()); } catch (InvocationTargetException e) { throw new IllegalArgumentException("Unable to construct report renderer class: " + e.getTargetException().getLocalizedMessage()); } // Warn about legacy report format usages if (REPORT_FORMAT_TO_RENDERER.containsKey(reportFormat) && !reportFormat.equals(renderer.getName())) { LOG.warning("Report format '" + reportFormat + "' is deprecated, and has been replaced with '" + renderer.getName() + "'. Future versions of PMD will remove support for this deprecated Report format usage."); } return renderer; }
// in src/main/java/net/sourceforge/pmd/renderers/RendererFactory.java
private static Constructor<? extends Renderer> getRendererConstructor(Class<? extends Renderer> rendererClass) { Constructor<? extends Renderer> constructor = null; // 1) Properties constructor? try { constructor = rendererClass.getConstructor(Properties.class); if (!Modifier.isPublic(constructor.getModifiers())) { constructor = null; } } catch (NoSuchMethodException e) { // Ok } // 2) No-arg constructor? try { constructor = rendererClass.getConstructor(); if (!Modifier.isPublic(constructor.getModifiers())) { constructor = null; } } catch (NoSuchMethodException e2) { // Ok } if (constructor == null) { throw new IllegalArgumentException( "Unable to find either a public java.util.Properties or no-arg constructors for Renderer class: " + rendererClass.getName()); } return constructor; }
// in src/main/java/net/sourceforge/pmd/RuleContext.java
public boolean setAttribute(String name, Object value) { if (name == null) { throw new IllegalArgumentException("Parameter 'name' cannot be null."); } if (value == null) { throw new IllegalArgumentException("Parameter 'value' cannot be null."); } synchronized (this.attributes) { if (!this.attributes.containsKey(name)) { this.attributes.put(name, value); return true; } else { return false; } } }
// in src/main/java/net/sourceforge/pmd/RuleSet.java
public void addRule(Rule rule) { if (rule == null) { throw new IllegalArgumentException("Missing rule"); } rules.add(rule); }
// in src/main/java/net/sourceforge/pmd/RuleSet.java
public void addRuleByReference(String ruleSetFileName, Rule rule) { if (StringUtil.isEmpty(ruleSetFileName)) { throw new RuntimeException("Adding a rule by reference is not allowed with an empty rule set file name."); } if (rule == null) { throw new IllegalArgumentException("Cannot add a null rule reference to a RuleSet"); } if (!(rule instanceof RuleReference)) { RuleSetReference ruleSetReference = new RuleSetReference(); ruleSetReference.setRuleSetFileName(ruleSetFileName); RuleReference ruleReference = new RuleReference(); ruleReference.setRule(rule); ruleReference.setRuleSetReference(ruleSetReference); rule = ruleReference; } rules.add(rule); }
// in src/main/java/net/sourceforge/pmd/AbstractPropertySource.java
public void definePropertyDescriptor(PropertyDescriptor<?> propertyDescriptor) { // Check to ensure the property does not already exist. for (PropertyDescriptor<?> descriptor : propertyDescriptors) { if (descriptor.name().equals(propertyDescriptor.name())) { throw new IllegalArgumentException("There is already a PropertyDescriptor with name '" + propertyDescriptor.name() + "' defined on Rule " + getName() + "."); } } propertyDescriptors.add(propertyDescriptor); // Sort in UI order Collections.sort(propertyDescriptors); }
// in src/main/java/net/sourceforge/pmd/AbstractPropertySource.java
private void checkValidPropertyDescriptor(PropertyDescriptor<?> propertyDescriptor) { if (!propertyDescriptors.contains(propertyDescriptor)) { throw new IllegalArgumentException("Property descriptor not defined for Rule " + getName() + ": " + propertyDescriptor); } }
// in src/main/java/net/sourceforge/pmd/PMDParameters.java
private static LanguageVersion parseLanguageVersion(String[] args, int optionsIndex) { String languageName = args[optionsIndex + LANGUAGE_NAME_INDEX]; Language language = Language.findByTerseName(languageName); if (language == null) { throw new IllegalArgumentException("Unknown language '" + languageName + "'. Available Languages are : " + Language.commaSeparatedTerseNames(Language.findWithRuleSupport())); } else { if (args.length > (optionsIndex + LANGUAGE_VERSION_INDEX)) { String version = args[optionsIndex + LANGUAGE_VERSION_INDEX]; List<LanguageVersion> languageVersions = LanguageVersion.findVersionsForLanguageTerseName(language.getTerseName()); // If there is versions for this language, it should be a valid // one... if (!languageVersions.isEmpty()) { for (LanguageVersion languageVersion : languageVersions) { if (version.equals(languageVersion.getVersion())) { return languageVersion; } } throw new IllegalArgumentException("Language version '" + version + "' is not available for language '" + language.getName() + "'.\nAvailable versions are :" + LanguageVersion.commaSeparatedTerseNames(languageVersions)); } } return language.getDefaultVersion(); } }
// in src/main/java/net/sourceforge/pmd/PMDParameters.java
private static RulePriority parseMinimumPriority(String priority) { try { return RulePriority.valueOf(Integer.parseInt(priority)); } catch (NumberFormatException e) { throw new IllegalArgumentException( "Minimum priority must be a whole number between " + RulePriority.HIGH + " and " + RulePriority.LOW + ", " + priority + " received", e); } }
// in src/main/java/net/sourceforge/pmd/PMDParameters.java
private static void setClassPath(PMDConfiguration cfg, String classPath) { try { cfg.prependClasspath(classPath); } catch (IOException e) { throw new IllegalArgumentException("Invalid auxiliary classpath: " + e.getMessage(), e); } }
// in src/main/java/net/sourceforge/pmd/PMDParameters.java
private static int parseInt(String opt, String s) { try { return Integer.parseInt(s); } catch (NumberFormatException e) { throw new IllegalArgumentException(opt + " parameter must be a whole number, " + s + " received"); } }
// in src/main/java/net/sourceforge/pmd/CommandLineParser.java
private void setMandatoryArgs(String[] args, int mandatoryIndex) { configuration.setInputPaths(args[mandatoryIndex]); configuration.setReportFormat(args[mandatoryIndex + 1]); if (StringUtil.isEmpty(configuration.getReportFormat())) { throw new IllegalArgumentException("Report renderer is required."); } configuration.setRuleSets( StringUtil.asString( RuleSetReferenceId.parse(args[mandatoryIndex + 2]).toArray(), ",") ); }
// in src/main/java/net/sourceforge/pmd/CommandLineParser.java
private static void checkOption(String[] args, String opt, int index, int optionEndIndex, int count) { boolean valid = true; if (index + count >= optionEndIndex) { valid = false; } else { for (int i = 1; i <= count; i++) { if (args[index + i].charAt(0) == '-') { valid = false; break; } } } if (!valid) { throw new IllegalArgumentException(opt + " requires " + count + " parameters.\n\n" + usage()); } }
// in src/main/java/net/sourceforge/pmd/util/IOUtil.java
public static Writer createWriter(String reportFile) { try { return StringUtil.isEmpty(reportFile) ? createWriter() : new BufferedWriter(new FileWriter(reportFile)); } catch (IOException e) { throw new IllegalArgumentException(e); } }
// in src/main/java/net/sourceforge/pmd/util/ClasspathClassLoader.java
private static URL[] initURLs(String classpath) throws IOException { if (classpath == null) { throw new IllegalArgumentException("classpath argument cannot be null"); } final List<URL> urls = new ArrayList<URL>(); if (classpath.startsWith("file://")) { // Treat as file URL addFileURLs(urls, new URL(classpath)); } else { // Treat as classpath addClasspathURLs(urls, classpath); } return urls.toArray(new URL[urls.size()]); }
// in src/main/java/net/sourceforge/pmd/util/DateTimeUtil.java
public static String asHoursMinutesSeconds(long milliseconds) { if (milliseconds < 0) throw new IllegalArgumentException(); long seconds = 0; long minutes = 0; long hours = 0; if (milliseconds > 1000) { seconds = milliseconds / 1000; } if (seconds > 60) { minutes = seconds / 60; seconds = seconds % 60; } if (minutes > 60) { hours = minutes / 60; minutes = minutes % 60; } StringBuilder res = new StringBuilder(); if (hours > 0) { res.append(hours).append("h "); } if (hours > 0 || minutes > 0) { res.append(minutes).append("m "); } res.append(seconds).append('s'); return res.toString(); }
10
            
// in src/main/java/net/sourceforge/pmd/lang/rule/properties/TypeProperty.java
catch (Exception ex) { throw new IllegalArgumentException(className); }
// in src/main/java/net/sourceforge/pmd/RulesetsFactoryUtils.java
catch (RuleSetNotFoundException rsnfe) { LOG.log(Level.SEVERE, "Ruleset not found", rsnfe); throw new IllegalArgumentException(rsnfe); }
// in src/main/java/net/sourceforge/pmd/renderers/RendererFactory.java
catch (InstantiationException e) { throw new IllegalArgumentException("Unable to construct report renderer class: " + e.getLocalizedMessage()); }
// in src/main/java/net/sourceforge/pmd/renderers/RendererFactory.java
catch (IllegalAccessException e) { throw new IllegalArgumentException("Unable to construct report renderer class: " + e.getLocalizedMessage()); }
// in src/main/java/net/sourceforge/pmd/renderers/RendererFactory.java
catch (InvocationTargetException e) { throw new IllegalArgumentException("Unable to construct report renderer class: " + e.getTargetException().getLocalizedMessage()); }
// in src/main/java/net/sourceforge/pmd/renderers/RendererFactory.java
catch (ClassNotFoundException e) { throw new IllegalArgumentException("Can't find the custom format " + reportFormat + ": " + e.getClass().getName()); }
// in src/main/java/net/sourceforge/pmd/PMDParameters.java
catch (NumberFormatException e) { throw new IllegalArgumentException( "Minimum priority must be a whole number between " + RulePriority.HIGH + " and " + RulePriority.LOW + ", " + priority + " received", e); }
// in src/main/java/net/sourceforge/pmd/PMDParameters.java
catch (IOException e) { throw new IllegalArgumentException("Invalid auxiliary classpath: " + e.getMessage(), e); }
// in src/main/java/net/sourceforge/pmd/PMDParameters.java
catch (NumberFormatException e) { throw new IllegalArgumentException(opt + " parameter must be a whole number, " + s + " received"); }
// in src/main/java/net/sourceforge/pmd/util/IOUtil.java
catch (IOException e) { throw new IllegalArgumentException(e); }
10
            
// in src/main/java/net/sourceforge/pmd/lang/rule/AbstractDelegateRule.java
public void definePropertyDescriptor(PropertyDescriptor<?> propertyDescriptor) throws IllegalArgumentException { rule.definePropertyDescriptor(propertyDescriptor); }
// in src/main/java/net/sourceforge/pmd/lang/rule/properties/FileProperty.java
public File valueFrom(String propertyString) throws IllegalArgumentException { return StringUtil.isEmpty(propertyString) ? null : new File(propertyString); }
// in src/main/java/net/sourceforge/pmd/lang/rule/properties/CharacterMultiProperty.java
public Character[] valueFrom(String valueString) throws IllegalArgumentException { String[] values = StringUtil.substringsOf(valueString, multiValueDelimiter()); Character[] chars = new Character[values.length]; for (int i=0; i<values.length; i++) { chars[i] = Character.valueOf(values[i].charAt(0)); } return chars; }
// in src/main/java/net/sourceforge/pmd/lang/rule/properties/MethodMultiProperty.java
public Method[] valueFrom(String valueString) throws IllegalArgumentException { return methodsFrom(valueString); }
// in src/main/java/net/sourceforge/pmd/lang/rule/properties/EnumeratedMultiProperty.java
public Object[] valueFrom(String value) throws IllegalArgumentException { String[] strValues = StringUtil.substringsOf(value, multiValueDelimiter()); Object[] values = new Object[strValues.length]; for (int i=0;i<values.length; i++) { values[i] = choiceFrom(strValues[i]); } return values; }
// in src/main/java/net/sourceforge/pmd/lang/rule/properties/MethodProperty.java
public Method valueFrom(String valueString) throws IllegalArgumentException { return methodFrom(valueString); }
// in src/main/java/net/sourceforge/pmd/lang/rule/properties/EnumeratedProperty.java
public Object valueFrom(String value) throws IllegalArgumentException { return choiceFrom(value); }
// in src/main/java/net/sourceforge/pmd/lang/rule/properties/CharacterProperty.java
public Character valueFrom(String valueString) throws IllegalArgumentException { return charFrom(valueString); }
// in src/main/java/net/sourceforge/pmd/lang/rule/properties/PropertyDescriptorWrapper.java
public T valueFrom(String propertyString) throws IllegalArgumentException { return propertyDescriptor.valueFrom(propertyString); }
// in src/main/java/net/sourceforge/pmd/lang/rule/RuleReference.java
Override public void definePropertyDescriptor(PropertyDescriptor<?> propertyDescriptor) throws IllegalArgumentException { // Define on the underlying Rule, where it is impossible to have two // property descriptors with the same name. Therefore, there is no need // to check if the property is already overridden at this level. super.definePropertyDescriptor(propertyDescriptor); if (propertyDescriptors == null) { propertyDescriptors = new ArrayList<PropertyDescriptor<?>>(); } propertyDescriptors.add(propertyDescriptor); }
1
            
// in src/main/java/net/sourceforge/pmd/RuleSetWriter.java
catch (IllegalArgumentException iae) { //ignore it, specific to one parser }
0 0
runtime (Lib) IllegalStateException 19
            
// in src/main/java/net/sourceforge/pmd/cpd/XMLRenderer.java
private Document createDocument() { try { DocumentBuilderFactory factory = DocumentBuilderFactory .newInstance(); DocumentBuilder parser = factory.newDocumentBuilder(); return parser.newDocument(); } catch (ParserConfigurationException e) { throw new IllegalStateException(e); } }
// in src/main/java/net/sourceforge/pmd/cpd/XMLRenderer.java
private String xmlDocToString(Document doc) { try { TransformerFactory tf = TransformerFactory.newInstance(); Transformer transformer = tf.newTransformer(); transformer.setOutputProperty(OutputKeys.ENCODING, System.getProperty("file.encoding")); StringWriter writer = new StringWriter(); transformer.transform(new DOMSource(doc), new StreamResult(writer)); return writer.getBuffer().toString().replaceAll("\n|\r", ""); } catch (TransformerException e) { throw new IllegalStateException(e); } }
// in src/main/java/net/sourceforge/pmd/lang/Language.java
public LanguageVersion getDefaultVersion() { init(); for (LanguageVersion version : getVersions()) { if (version.isDefaultVersion()) { return version; } } throw new IllegalStateException("No default LanguageVersion configured for " + this); }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/ASTFormalParameter.java
public ASTType getTypeNode() { for (int i = 0; i < jjtGetNumChildren(); i++) { if (jjtGetChild(i) instanceof ASTType) { return (ASTType) jjtGetChild(i); } } throw new IllegalStateException("ASTType not found"); }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/ASTLocalVariableDeclaration.java
public ASTType getTypeNode() { for (int i = 0; i < jjtGetNumChildren(); i++) { if (jjtGetChild(i) instanceof ASTType) { return (ASTType) jjtGetChild(i); } } throw new IllegalStateException("ASTType not found"); }
// in src/main/java/net/sourceforge/pmd/lang/java/typeresolution/ClassTypeResolver.java
Override public Object visit(ASTLiteral node, Object data) { super.visit(node, data); if (node.jjtGetNumChildren() != 0) { rollupTypeUnary(node); } else { if (node.isIntLiteral()) { String image = node.getImage(); if (image.endsWith("l") || image.endsWith("L")) { populateType(node, "long"); } else { try { Integer.decode(image); populateType(node, "int"); } catch (NumberFormatException e) { // Bad literal, 'long' requires use of 'l' or 'L' suffix. } } } else if (node.isFloatLiteral()) { String image = node.getImage(); if (image.endsWith("f") || image.endsWith("F")) { populateType(node, "float"); } else if (image.endsWith("d") || image.endsWith("D")) { populateType(node, "double"); } else { try { Double.parseDouble(image); populateType(node, "double"); } catch (NumberFormatException e) { // Bad literal, 'float' requires use of 'f' or 'F' suffix. } } } else if (node.isCharLiteral()) { populateType(node, "char"); } else if (node.isStringLiteral()) { populateType(node, "java.lang.String"); } else { throw new IllegalStateException("PMD error, unknown literal type!"); } } return data; }
// in src/main/java/net/sourceforge/pmd/lang/java/rule/codesize/NPathComplexityRule.java
Override public Object visit(ASTIfStatement node, Object data) { // (npath of if + npath of else (or 1) + bool_comp of if) * npath of next int boolCompIf = sumExpressionComplexity(node.getFirstChildOfType(ASTExpression.class)); int complexity = 0; List<JavaNode> statementChildren = new ArrayList<JavaNode>(); for (int i = 0; i < node.jjtGetNumChildren(); i++) { if (node.jjtGetChild(i).getClass() == ASTStatement.class) { statementChildren.add((JavaNode) node.jjtGetChild(i)); } } if (statementChildren.isEmpty() || statementChildren.size() == 1 && node.hasElse() || statementChildren.size() != 1 && !node.hasElse()) { throw new IllegalStateException("If node has wrong number of children"); } // add path for not taking if if (!node.hasElse()) { complexity++; } for (JavaNode element : statementChildren) { complexity += (Integer) element.jjtAccept(this, data); } return Integer.valueOf(boolCompIf + complexity); }
// in src/main/java/net/sourceforge/pmd/lang/java/rule/design/PreserveStackTraceRule.java
Override public Object visit(ASTVariableDeclarator node, Object data) { // Search Catch stmt nodes for variable used to store improperly created throwable or exception try { if (node.hasDescendantMatchingXPath(FIND_THROWABLE_INSTANCE)) { String variableName = node.jjtGetChild(0).getImage(); // VariableDeclatorId ASTCatchStatement catchStmt = node.getFirstParentOfType(ASTCatchStatement.class); while (catchStmt != null) { List<Node> violations = catchStmt.findChildNodesWithXPath("//Expression/PrimaryExpression/PrimaryPrefix/Name[@Image = '" + variableName + "']"); if (!violations.isEmpty()) { // If, after this allocation, the 'initCause' method is called, and the ex passed // this is not a violation if (!useInitCause(violations.get(0), catchStmt)) { addViolation(data, node); } } // check ASTCatchStatement higher up catchStmt = catchStmt.getFirstParentOfType(ASTCatchStatement.class); } } return super.visit(node, data); } catch (JaxenException e) { // XPath is valid, this should never happens... throw new IllegalStateException(e); } }
// in src/main/java/net/sourceforge/pmd/lang/rule/properties/AbstractScalarProperty.java
protected Object[] arrayFor(int size) { if (isMultiValue()) { throw new IllegalStateException("Subclass '" + this.getClass().getSimpleName() + "' must implement the arrayFor(int) method."); } throw new UnsupportedOperationException("Arrays not supported on single valued property descriptors."); }
// in src/main/java/net/sourceforge/pmd/processor/MultiThreadProcessor.java
private void processReports(final List<Renderer> renderers, List<Future<Report>> tasks) throws Error { while (!tasks.isEmpty()) { Future<Report> future = tasks.remove(0); Report report = null; try { report = future.get(); } catch (InterruptedException ie) { Thread.currentThread().interrupt(); future.cancel(true); } catch (ExecutionException ee) { Throwable t = ee.getCause(); if (t instanceof RuntimeException) { throw (RuntimeException) t; } else if (t instanceof Error) { throw (Error) t; } else { throw new IllegalStateException( "PmdRunnable exception", t); } } super.renderReports(renderers, report); } }
// in src/main/java/net/sourceforge/pmd/RuleChain.java
private RuleChainVisitor getRuleChainVisitor(Language language) { RuleChainVisitor visitor = languageToRuleChainVisitor.get(language); if (visitor == null) { if (language.getRuleChainVisitorClass() != null) { try { visitor = (RuleChainVisitor) language.getRuleChainVisitorClass().newInstance(); } catch (InstantiationException e) { throw new IllegalStateException("Failure to created RuleChainVisitor: " + language.getRuleChainVisitorClass(), e); } catch (IllegalAccessException e) { throw new IllegalStateException("Failure to created RuleChainVisitor: " + language.getRuleChainVisitorClass(), e); } languageToRuleChainVisitor.put(language, visitor); } else { throw new IllegalArgumentException("Language does not have a RuleChainVisitor: " + language); } } return visitor; }
// in src/main/java/net/sourceforge/pmd/renderers/AbstractRenderer.java
public void flush() { try { this.writer.flush(); } catch (IOException e) { throw new IllegalStateException(e); } finally { IOUtil.closeQuietly(writer); } }
// in src/main/java/net/sourceforge/pmd/util/CompoundIterator.java
public void remove() { Iterator<T> iterator = getNextIterator(); if (iterator != null) { iterator.remove(); } else { throw new IllegalStateException(); } }
// in src/main/java/net/sourceforge/pmd/util/viewer/gui/SourceCodePanel.java
public void run() { try { sourceCodeArea.getHighlighter().removeAllHighlights(); if (node == null) { return; } int startOffset = sourceCodeArea.getLineStartOffset(node.getBeginLine() - 1) + node.getBeginColumn() - 1; int end = sourceCodeArea.getLineStartOffset(node.getEndLine() - 1) + node.getEndColumn(); sourceCodeArea.getHighlighter().addHighlight(startOffset, end, new DefaultHighlighter.DefaultHighlightPainter(HIGHLIGHT_COLOR)); sourceCodeArea.moveCaretPosition(startOffset); } catch (BadLocationException exc) { throw new IllegalStateException(exc.getMessage()); } }
// in src/main/java/net/sourceforge/pmd/util/log/AntLogHandler.java
public void publish(LogRecord logRecord) { //Map the log levels from java.util.logging to Ant int antLevel; Level level = logRecord.getLevel(); if (level == Level.FINEST) { antLevel = Project.MSG_DEBUG; //Shown when -debug is supplied to Ant } else if (level == Level.FINE || level == Level.FINER || level == Level.CONFIG) { antLevel = Project.MSG_VERBOSE; //Shown when -verbose is supplied to Ant } else if (level == Level.INFO) { antLevel = Project.MSG_INFO; //Always shown } else if (level == Level.WARNING) { antLevel = Project.MSG_WARN; //Always shown } else if (level == Level.SEVERE) { antLevel = Project.MSG_ERR; //Always shown } else { throw new IllegalStateException("Unknown logging level"); //shouldn't get ALL or NONE } antTask.log(FORMATTER.format(logRecord), antLevel); if (logRecord.getThrown() != null) { StringWriter stringWriter = new StringWriter(); PrintWriter printWriter = new PrintWriter(stringWriter, true); logRecord.getThrown().printStackTrace(printWriter); antTask.log(stringWriter.toString(), antLevel); } }
10
            
// in src/main/java/net/sourceforge/pmd/cpd/XMLRenderer.java
catch (ParserConfigurationException e) { throw new IllegalStateException(e); }
// in src/main/java/net/sourceforge/pmd/cpd/XMLRenderer.java
catch (TransformerException e) { throw new IllegalStateException(e); }
// in src/main/java/net/sourceforge/pmd/lang/Language.java
catch (InstantiationException e) { throw new IllegalStateException("Unable to invoke no-arg constructor for RuleChainVisitor class <" + ruleChainVisitorClass.getName() + ">!"); }
// in src/main/java/net/sourceforge/pmd/lang/Language.java
catch (IllegalAccessException e) { throw new IllegalStateException("Unable to invoke no-arg constructor for RuleChainVisitor class <" + ruleChainVisitorClass.getName() + ">!"); }
// in src/main/java/net/sourceforge/pmd/lang/java/rule/design/PreserveStackTraceRule.java
catch (JaxenException e) { // XPath is valid, this should never happens... throw new IllegalStateException(e); }
// in src/main/java/net/sourceforge/pmd/processor/MultiThreadProcessor.java
catch (ExecutionException ee) { Throwable t = ee.getCause(); if (t instanceof RuntimeException) { throw (RuntimeException) t; } else if (t instanceof Error) { throw (Error) t; } else { throw new IllegalStateException( "PmdRunnable exception", t); } }
// in src/main/java/net/sourceforge/pmd/RuleChain.java
catch (InstantiationException e) { throw new IllegalStateException("Failure to created RuleChainVisitor: " + language.getRuleChainVisitorClass(), e); }
// in src/main/java/net/sourceforge/pmd/RuleChain.java
catch (IllegalAccessException e) { throw new IllegalStateException("Failure to created RuleChainVisitor: " + language.getRuleChainVisitorClass(), e); }
// in src/main/java/net/sourceforge/pmd/renderers/AbstractRenderer.java
catch (IOException e) { throw new IllegalStateException(e); }
// in src/main/java/net/sourceforge/pmd/util/viewer/gui/SourceCodePanel.java
catch (BadLocationException exc) { throw new IllegalStateException(exc.getMessage()); }
0 0 0 0
unknown (Lib) IndexOutOfBoundsException 1
            
// in src/main/java/net/sourceforge/pmd/lang/ast/xpath/AttributeAxisIterator.java
public Attribute next() { if (currObj == null) { throw new IndexOutOfBoundsException(); } Attribute ret = currObj; currObj = getNextAttribute(); return ret; }
0 0 1
            
// in src/main/java/net/sourceforge/pmd/lang/dfa/AbstractDataFlowNode.java
catch (IndexOutOfBoundsException e) { e.printStackTrace(); }
0 0
unknown (Lib) InstantiationException 0 0 3
            
// in src/main/java/net/sourceforge/pmd/cpd/LanguageFactory.java
private Language dynamicLanguageImplementationLoad(String language) throws InstantiationException, IllegalAccessException { try { return (Language) this.getClass().getClassLoader().loadClass( PACKAGE + language + SUFFIX).newInstance(); } catch (ClassNotFoundException e) { // No class found, returning default implementation // FIXME: There should be somekind of log of this return null; } catch (NoClassDefFoundError e) { // Windows is case insensitive, so it may find the file, even though // the name has a different case. Since Java is case sensitive, it // will not accept the classname inside the file that was found and // will throw a NoClassDefFoundError return null; } }
// in src/main/java/net/sourceforge/pmd/RuleSetFactory.java
private void parseRuleNode(RuleSetReferenceId ruleSetReferenceId, RuleSet ruleSet, Node ruleNode) throws ClassNotFoundException, InstantiationException, IllegalAccessException, RuleSetNotFoundException { Element ruleElement = (Element) ruleNode; String ref = ruleElement.getAttribute("ref"); if (ref.endsWith("xml")) { parseRuleSetReferenceNode(ruleSetReferenceId, ruleSet, ruleElement, ref); } else if (StringUtil.isEmpty(ref)) { parseSingleRuleNode(ruleSetReferenceId, ruleSet, ruleNode); } else { parseRuleReferenceNode(ruleSetReferenceId, ruleSet, ruleNode, ref); } }
// in src/main/java/net/sourceforge/pmd/RuleSetFactory.java
private void parseSingleRuleNode(RuleSetReferenceId ruleSetReferenceId, RuleSet ruleSet, Node ruleNode) throws ClassNotFoundException, InstantiationException, IllegalAccessException { Element ruleElement = (Element) ruleNode; // Stop if we're looking for a particular Rule, and this element is not it. if (StringUtil.isNotEmpty(ruleSetReferenceId.getRuleName()) && !isRuleName(ruleElement, ruleSetReferenceId.getRuleName())) { return; } String attribute = ruleElement.getAttribute("class"); Class<?> c = classLoader.loadClass(attribute); Rule rule = (Rule) c.newInstance(); rule.setName(ruleElement.getAttribute("name")); if (ruleElement.hasAttribute("language")) { String languageName = ruleElement.getAttribute("language"); Language language = Language.findByTerseName(languageName); if (language == null) { throw new IllegalArgumentException("Unknown Language '" + languageName + "' for Rule " + rule.getName() + ", supported Languages are " + Language.commaSeparatedTerseNames(Language.findWithRuleSupport())); } rule.setLanguage(language); } Language language = rule.getLanguage(); if (language == null) { throw new IllegalArgumentException("Rule " + rule.getName() + " does not have a Language; missing 'language' attribute?"); } if (ruleElement.hasAttribute("minimumLanguageVersion")) { String minimumLanguageVersionName = ruleElement.getAttribute("minimumLanguageVersion"); LanguageVersion minimumLanguageVersion = language.getVersion(minimumLanguageVersionName); if (minimumLanguageVersion == null) { throw new IllegalArgumentException("Unknown minimum Language Version '" + minimumLanguageVersionName + "' for Language '" + language.getTerseName() + "' for Rule " + rule.getName() + "; supported Language Versions are: " + LanguageVersion.commaSeparatedTerseNames(language.getVersions())); } rule.setMinimumLanguageVersion(minimumLanguageVersion); } if (ruleElement.hasAttribute("maximumLanguageVersion")) { String maximumLanguageVersionName = ruleElement.getAttribute("maximumLanguageVersion"); LanguageVersion maximumLanguageVersion = language.getVersion(maximumLanguageVersionName); if (maximumLanguageVersion == null) { throw new IllegalArgumentException("Unknown maximum Language Version '" + maximumLanguageVersionName + "' for Language '" + language.getTerseName() + "' for Rule " + rule.getName() + "; supported Language Versions are: " + LanguageVersion.commaSeparatedTerseNames(language.getVersions())); } rule.setMaximumLanguageVersion(maximumLanguageVersion); } if (rule.getMinimumLanguageVersion() != null && rule.getMaximumLanguageVersion() != null) { throw new IllegalArgumentException("The minimum Language Version '" + rule.getMinimumLanguageVersion().getTerseName() + "' must be prior to the maximum Language Version '" + rule.getMaximumLanguageVersion().getTerseName() + "' for Rule " + rule.getName() + "; perhaps swap them around?"); } String since = ruleElement.getAttribute("since"); if (StringUtil.isNotEmpty(since)) { rule.setSince(since); } rule.setMessage(ruleElement.getAttribute("message")); rule.setRuleSetName(ruleSet.getName()); rule.setExternalInfoUrl(ruleElement.getAttribute("externalInfoUrl")); if (hasAttributeSetTrue(ruleElement,"dfa")) { rule.setUsesDFA(); } if (hasAttributeSetTrue(ruleElement,"typeResolution")) { rule.setUsesTypeResolution(); } final NodeList nodeList = ruleElement.getChildNodes(); for (int i = 0; i < nodeList.getLength(); i++) { Node node = nodeList.item(i); if (node.getNodeType() != Node.ELEMENT_NODE) { continue; } String nodeName = node.getNodeName(); if (nodeName.equals("description")) { rule.setDescription(parseTextNode(node)); } else if (nodeName.equals("example")) { rule.addExample(parseTextNode(node)); } else if (nodeName.equals("priority")) { rule.setPriority(RulePriority.valueOf(Integer.parseInt(parseTextNode(node).trim()))); } else if (nodeName.equals("properties")) { parsePropertiesNode(rule, node); } else { throw new IllegalArgumentException("Unexpected element <" + nodeName + "> encountered as child of <rule> element for Rule " + rule.getName()); } } if (StringUtil.isNotEmpty(ruleSetReferenceId.getRuleName()) || rule.getPriority().compareTo(minimumPriority) <= 0) { ruleSet.addRule(rule); } }
6
            
// in src/main/java/net/sourceforge/pmd/cpd/LanguageFactory.java
catch (InstantiationException e) { e.printStackTrace(); }
// in src/main/java/net/sourceforge/pmd/RuleSetFactory.java
catch (InstantiationException ie) { return classNotFoundProblem(ie); }
// in src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/EcmascriptTreeBuilder.java
catch (InstantiationException e) { throw new RuntimeException(e); }
// in src/main/java/net/sourceforge/pmd/lang/Language.java
catch (InstantiationException e) { throw new IllegalStateException("Unable to invoke no-arg constructor for RuleChainVisitor class <" + ruleChainVisitorClass.getName() + ">!"); }
// in src/main/java/net/sourceforge/pmd/RuleChain.java
catch (InstantiationException e) { throw new IllegalStateException("Failure to created RuleChainVisitor: " + language.getRuleChainVisitorClass(), e); }
// in src/main/java/net/sourceforge/pmd/renderers/RendererFactory.java
catch (InstantiationException e) { throw new IllegalArgumentException("Unable to construct report renderer class: " + e.getLocalizedMessage()); }
4
            
// in src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/EcmascriptTreeBuilder.java
catch (InstantiationException e) { throw new RuntimeException(e); }
// in src/main/java/net/sourceforge/pmd/lang/Language.java
catch (InstantiationException e) { throw new IllegalStateException("Unable to invoke no-arg constructor for RuleChainVisitor class <" + ruleChainVisitorClass.getName() + ">!"); }
// in src/main/java/net/sourceforge/pmd/RuleChain.java
catch (InstantiationException e) { throw new IllegalStateException("Failure to created RuleChainVisitor: " + language.getRuleChainVisitorClass(), e); }
// in src/main/java/net/sourceforge/pmd/renderers/RendererFactory.java
catch (InstantiationException e) { throw new IllegalArgumentException("Unable to construct report renderer class: " + e.getLocalizedMessage()); }
4
unknown (Lib) InterruptedException 0 0 0 1
            
// in src/main/java/net/sourceforge/pmd/processor/MultiThreadProcessor.java
catch (InterruptedException ie) { Thread.currentThread().interrupt(); future.cancel(true); }
0 0
unknown (Lib) InvocationTargetException 0 0 0 3
            
// in src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/EcmascriptTreeBuilder.java
catch (InvocationTargetException e) { throw new RuntimeException(e.getTargetException()); }
// in src/main/java/net/sourceforge/pmd/lang/ast/xpath/Attribute.java
catch (InvocationTargetException ite) { ite.printStackTrace(); }
// in src/main/java/net/sourceforge/pmd/renderers/RendererFactory.java
catch (InvocationTargetException e) { throw new IllegalArgumentException("Unable to construct report renderer class: " + e.getTargetException().getLocalizedMessage()); }
2
            
// in src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/EcmascriptTreeBuilder.java
catch (InvocationTargetException e) { throw new RuntimeException(e.getTargetException()); }
// in src/main/java/net/sourceforge/pmd/renderers/RendererFactory.java
catch (InvocationTargetException e) { throw new IllegalArgumentException("Unable to construct report renderer class: " + e.getTargetException().getLocalizedMessage()); }
2
unknown (Lib) JaxenException 0 0 3
            
// in src/main/java/net/sourceforge/pmd/lang/ast/AbstractNode.java
public List findChildNodesWithXPath(String xpathString) throws JaxenException { return new BaseXPath(xpathString, new DocumentNavigator()).selectNodes(this); }
// in src/main/java/net/sourceforge/pmd/lang/rule/xpath/JaxenXPathRuleQuery.java
private BaseXPath createXPath(String xpathQueryString, Navigator navigator) throws JaxenException { BaseXPath xpath = new BaseXPath(xpathQueryString, navigator); if (properties.size() > 1) { SimpleVariableContext vc = new SimpleVariableContext(); for (Entry<PropertyDescriptor<?>, Object> e : properties.entrySet()) { String propName = e.getKey().name(); if (!"xpath".equals(propName)) { Object value = e.getValue(); vc.setVariableValue(propName, value != null ? value.toString() : null); } } xpath.setVariableContext(vc); } return xpath; }
// 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)); }
4
            
// in src/main/java/net/sourceforge/pmd/lang/ast/AbstractNode.java
catch (JaxenException e) { throw new RuntimeException("XPath expression " + xpathString + " failed: " + e.getLocalizedMessage(), e); }
// in src/main/java/net/sourceforge/pmd/lang/java/rule/design/PreserveStackTraceRule.java
catch (JaxenException e) { // XPath is valid, this should never happens... throw new IllegalStateException(e); }
// in src/main/java/net/sourceforge/pmd/lang/rule/xpath/JaxenXPathRuleQuery.java
catch (JaxenException ex) { throw new RuntimeException(ex); }
// in src/main/java/net/sourceforge/pmd/lang/rule/xpath/JaxenXPathRuleQuery.java
catch (JaxenException ex) { throw new RuntimeException(ex); }
4
            
// in src/main/java/net/sourceforge/pmd/lang/ast/AbstractNode.java
catch (JaxenException e) { throw new RuntimeException("XPath expression " + xpathString + " failed: " + e.getLocalizedMessage(), e); }
// in src/main/java/net/sourceforge/pmd/lang/java/rule/design/PreserveStackTraceRule.java
catch (JaxenException e) { // XPath is valid, this should never happens... throw new IllegalStateException(e); }
// in src/main/java/net/sourceforge/pmd/lang/rule/xpath/JaxenXPathRuleQuery.java
catch (JaxenException ex) { throw new RuntimeException(ex); }
// in src/main/java/net/sourceforge/pmd/lang/rule/xpath/JaxenXPathRuleQuery.java
catch (JaxenException ex) { throw new RuntimeException(ex); }
4
checked (Domain) LinkerException
public class LinkerException extends Exception {

    public LinkerException() {
        super("An error occured by computing the data flow paths"); //TODO redefinition | accurate?
    }

    public LinkerException(String message) {
        super(message);
    }

}
0 0 1
            
// in src/main/java/net/sourceforge/pmd/lang/dfa/Linker.java
public void computePaths() throws LinkerException, SequenceException { // Returns true if there are more sequences, computes the first and // the last index of the sequence. SequenceChecker sc = new SequenceChecker(braceStack); while (!sc.run()) { if (sc.getFirstIndex() < 0 || sc.getLastIndex() < 0) { throw new SequenceException("computePaths(): return index < 0"); } StackObject firstStackObject = braceStack.get(sc.getFirstIndex()); switch (firstStackObject.getType()) { case NodeType.IF_EXPR: int x = sc.getLastIndex() - sc.getFirstIndex(); if (x == 2) { this.computeIf(sc.getFirstIndex(), sc.getFirstIndex() + 1, sc.getLastIndex()); } else if (x == 1) { this.computeIf(sc.getFirstIndex(), sc.getLastIndex()); } else { System.out.println("Error - computePaths 1"); } break; case NodeType.WHILE_EXPR: this.computeWhile(sc.getFirstIndex(), sc.getLastIndex()); break; case NodeType.SWITCH_START: this.computeSwitch(sc.getFirstIndex(), sc.getLastIndex()); break; case NodeType.FOR_INIT: case NodeType.FOR_EXPR: case NodeType.FOR_UPDATE: case NodeType.FOR_BEFORE_FIRST_STATEMENT: this.computeFor(sc.getFirstIndex(), sc.getLastIndex()); break; case NodeType.DO_BEFORE_FIRST_STATEMENT: this.computeDo(sc.getFirstIndex(), sc.getLastIndex()); break; default: } for (int y = sc.getLastIndex(); y >= sc.getFirstIndex(); y--) { braceStack.remove(y); } } while (!continueBreakReturnStack.isEmpty()) { StackObject stackObject = continueBreakReturnStack.get(0); DataFlowNode node = stackObject.getDataFlowNode(); switch (stackObject.getType()) { case NodeType.THROW_STATEMENT: // do the same like a return case NodeType.RETURN_STATEMENT: // remove all children (should contain only one child) node.removePathToChild(node.getChildren().get(0)); DataFlowNode lastNode = node.getFlow().get(node.getFlow().size() - 1); node.addPathToChild(lastNode); continueBreakReturnStack.remove(0); break; case NodeType.BREAK_STATEMENT: DataFlowNode last = getNodeToBreakStatement(node); node.removePathToChild(node.getChildren().get(0)); node.addPathToChild(last); continueBreakReturnStack.remove(0); break; case NodeType.CONTINUE_STATEMENT: //List cList = node.getFlow(); /* traverse up the tree and find the first loop start node */ /* for(int i = cList.indexOf(node)-1;i>=0;i--) { IDataFlowNode n = (IDataFlowNode)cList.get(i); if(n.isType(NodeType.FOR_UPDATE) || n.isType(NodeType.FOR_EXPR) || n.isType(NodeType.WHILE_EXPR)) { */ /* * while(..) { * while(...) { * ... * } * continue; * } * * Without this Expression he continues the second * WHILE loop. The continue statement and the while loop * have to be in different scopes. * * TODO An error occurs if "continue" is even nested in * scopes other than local loop scopes, like "if". * The result is, that the data flow isn't build right * and the pathfinder runs in invinity loop. * */ /* if(n.getNode().getScope().equals(node.getNode().getScope())) { System.err.println("equals"); continue; } else { System.err.println("don't equals"); } //remove all children (should contain only one child) node.removePathToChild((IDataFlowNode)node.getChildren().get(0)); node.addPathToChild(n); cbrStack.remove(0); break; }else if(n.isType(NodeType.DO_BEFOR_FIRST_STATEMENT)) { IDataFlowNode inode = (IDataFlowNode)n.getFlow().get(n.getIndex()1); for(int j=0;j<inode.getParents().size();j) { IDataFlowNode parent = (IDataFlowNode)inode.getParents().get(j); if(parent.isType(NodeType.DO_EXPR)) { node.removePathToChild((IDataFlowNode)node.getChildren().get(0)); node.addPathToChild(parent); cbrStack.remove(0); break; } } break; } } */ continueBreakReturnStack.remove(0); // delete this statement if you uncomment the stuff above break; default: // Do nothing break; } } }
1
            
// in src/main/java/net/sourceforge/pmd/lang/java/dfa/StatementAndBraceFinder.java
catch (LinkerException e) { e.printStackTrace(); }
0 0
runtime (Domain) LookaheadSuccess
static private final class LookaheadSuccess extends java.lang.Error { }static private final class LookaheadSuccess extends java.lang.Error { }
0 0 0 58
            
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
catch(LookaheadSuccess ls) { }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
catch(LookaheadSuccess ls) { }
0 0
unknown (Lib) NoClassDefFoundError 0 0 0 3
            
// in src/main/java/net/sourceforge/pmd/cpd/LanguageFactory.java
catch (NoClassDefFoundError e) { // Windows is case insensitive, so it may find the file, even though // the name has a different case. Since Java is case sensitive, it // will not accept the classname inside the file that was found and // will throw a NoClassDefFoundError return null; }
// in src/main/java/net/sourceforge/pmd/lang/java/typeresolution/ClassTypeResolver.java
catch (NoClassDefFoundError e) { LOG.log(Level.WARNING, "Could not find class " + className + ", due to: " + e.getClass().getName() + ": " + e.getMessage()); }
// in src/main/java/net/sourceforge/pmd/lang/java/typeresolution/ClassTypeResolver.java
catch (NoClassDefFoundError e) { myType = processOnDemand(qualifiedName); }
0 0
unknown (Lib) NoSuchElementException 2
            
// in src/main/java/net/sourceforge/pmd/lang/ast/xpath/NodeIterator.java
public Node next() { if (node == null) { throw new NoSuchElementException(); } Node ret = node; node = getNextNode(node); return ret; }
// in src/main/java/net/sourceforge/pmd/util/CompoundIterator.java
public T next() { Iterator<T> iterator = getNextIterator(); if (iterator != null) { return iterator.next(); } else { throw new NoSuchElementException(); } }
0 0 1
            
// in src/main/java/net/sourceforge/pmd/cpd/AnyTokenizer.java
catch (NoSuchElementException ex) { // done with tokens }
0 0
unknown (Lib) NoSuchFieldException 1
            
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
private static Field myGetField(Class<?> type, String name) throws NoSuchFieldException { // Scan the type hierarchy just like Class.getField(String) using // Class.getDeclaredField(String) try { return type.getDeclaredField(name); } catch (NoSuchFieldException e) { // Try the super interfaces for (Class<?> superInterface : type.getInterfaces()) { try { return myGetField(superInterface, name); } catch (NoSuchFieldException e2) { // Okay } } // Try the super classes if (type.getSuperclass() != null) { return myGetField(type.getSuperclass(), name); } else { throw new NoSuchFieldException(type.getName() + "." + name); } } }
1
            
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
catch (NoSuchFieldException e) { // Try the super interfaces for (Class<?> superInterface : type.getInterfaces()) { try { return myGetField(superInterface, name); } catch (NoSuchFieldException e2) { // Okay } } // Try the super classes if (type.getSuperclass() != null) { return myGetField(type.getSuperclass(), name); } else { throw new NoSuchFieldException(type.getName() + "." + name); } }
1
            
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
private static Field myGetField(Class<?> type, String name) throws NoSuchFieldException { // Scan the type hierarchy just like Class.getField(String) using // Class.getDeclaredField(String) try { return type.getDeclaredField(name); } catch (NoSuchFieldException e) { // Try the super interfaces for (Class<?> superInterface : type.getInterfaces()) { try { return myGetField(superInterface, name); } catch (NoSuchFieldException e2) { // Okay } } // Try the super classes if (type.getSuperclass() != null) { return myGetField(type.getSuperclass(), name); } else { throw new NoSuchFieldException(type.getName() + "." + name); } } }
3
            
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
catch (NoSuchFieldException e) { throw new RuntimeException(e); }
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
catch (NoSuchFieldException e) { // Try the super interfaces for (Class<?> superInterface : type.getInterfaces()) { try { return myGetField(superInterface, name); } catch (NoSuchFieldException e2) { // Okay } } // Try the super classes if (type.getSuperclass() != null) { return myGetField(type.getSuperclass(), name); } else { throw new NoSuchFieldException(type.getName() + "." + name); } }
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
catch (NoSuchFieldException e2) { // Okay }
2
            
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
catch (NoSuchFieldException e) { throw new RuntimeException(e); }
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
catch (NoSuchFieldException e) { // Try the super interfaces for (Class<?> superInterface : type.getInterfaces()) { try { return myGetField(superInterface, name); } catch (NoSuchFieldException e2) { // Okay } } // Try the super classes if (type.getSuperclass() != null) { return myGetField(type.getSuperclass(), name); } else { throw new NoSuchFieldException(type.getName() + "." + name); } }
1
unknown (Lib) NoSuchMethodException 1
            
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
private static Method myGetMethod(Class<?> type, String name, Class<?>... parameterTypes) throws NoSuchMethodException { // Scan the type hierarchy just like Class.getMethod(String, Class[]) // using Class.getDeclaredMethod(String, Class[]) // System.out.println("type: " + type); // System.out.println("name: " + name); // System.out // .println("parameterTypes: " + Arrays.toString(parameterTypes)); try { // System.out.println("Checking getDeclaredMethod"); // for (Method m : type.getDeclaredMethods()) { // System.out.println("\t" + m); // } return type.getDeclaredMethod(name, parameterTypes); } catch (NoSuchMethodException e) { try { // Try the super classes if (type.getSuperclass() != null) { // System.out.println("Checking super: " // + type.getSuperclass()); return myGetMethod(type.getSuperclass(), name, parameterTypes); } } catch (NoSuchMethodException e2) { // Okay } // Try the super interfaces for (Class<?> superInterface : type.getInterfaces()) { try { // System.out.println("Checking super interface: " // + superInterface); return myGetMethod(superInterface, name, parameterTypes); } catch (NoSuchMethodException e3) { // Okay } } throw new NoSuchMethodException(type.getName() + '.' + getMethodSignature(name, parameterTypes)); } }
1
            
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
catch (NoSuchMethodException e) { try { // Try the super classes if (type.getSuperclass() != null) { // System.out.println("Checking super: " // + type.getSuperclass()); return myGetMethod(type.getSuperclass(), name, parameterTypes); } } catch (NoSuchMethodException e2) { // Okay } // Try the super interfaces for (Class<?> superInterface : type.getInterfaces()) { try { // System.out.println("Checking super interface: " // + superInterface); return myGetMethod(superInterface, name, parameterTypes); } catch (NoSuchMethodException e3) { // Okay } } throw new NoSuchMethodException(type.getName() + '.' + getMethodSignature(name, parameterTypes)); }
1
            
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
private static Method myGetMethod(Class<?> type, String name, Class<?>... parameterTypes) throws NoSuchMethodException { // Scan the type hierarchy just like Class.getMethod(String, Class[]) // using Class.getDeclaredMethod(String, Class[]) // System.out.println("type: " + type); // System.out.println("name: " + name); // System.out // .println("parameterTypes: " + Arrays.toString(parameterTypes)); try { // System.out.println("Checking getDeclaredMethod"); // for (Method m : type.getDeclaredMethods()) { // System.out.println("\t" + m); // } return type.getDeclaredMethod(name, parameterTypes); } catch (NoSuchMethodException e) { try { // Try the super classes if (type.getSuperclass() != null) { // System.out.println("Checking super: " // + type.getSuperclass()); return myGetMethod(type.getSuperclass(), name, parameterTypes); } } catch (NoSuchMethodException e2) { // Okay } // Try the super interfaces for (Class<?> superInterface : type.getInterfaces()) { try { // System.out.println("Checking super interface: " // + superInterface); return myGetMethod(superInterface, name, parameterTypes); } catch (NoSuchMethodException e3) { // Okay } } throw new NoSuchMethodException(type.getName() + '.' + getMethodSignature(name, parameterTypes)); } }
10
            
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
catch (NoSuchMethodException e) { throw new RuntimeException(e); }
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
catch (NoSuchMethodException e) { try { // Try the super classes if (type.getSuperclass() != null) { // System.out.println("Checking super: " // + type.getSuperclass()); return myGetMethod(type.getSuperclass(), name, parameterTypes); } } catch (NoSuchMethodException e2) { // Okay } // Try the super interfaces for (Class<?> superInterface : type.getInterfaces()) { try { // System.out.println("Checking super interface: " // + superInterface); return myGetMethod(superInterface, name, parameterTypes); } catch (NoSuchMethodException e3) { // Okay } } throw new NoSuchMethodException(type.getName() + '.' + getMethodSignature(name, parameterTypes)); }
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
catch (NoSuchMethodException e2) { // Okay }
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
catch (NoSuchMethodException e3) { // Okay }
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
catch (NoSuchMethodException e) { throw new RuntimeException(e); }
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
catch (NoSuchMethodException e) { }
// in src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/EcmascriptTreeBuilder.java
catch (NoSuchMethodException e) { throw new RuntimeException(e); }
// in src/main/java/net/sourceforge/pmd/renderers/RendererFactory.java
catch (NoSuchMethodException e) { // Ok }
// in src/main/java/net/sourceforge/pmd/renderers/RendererFactory.java
catch (NoSuchMethodException e2) { // Ok }
// in src/main/java/net/sourceforge/pmd/util/ClassUtil.java
catch (NoSuchMethodException ex) { current = current.getSuperclass(); }
4
            
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
catch (NoSuchMethodException e) { throw new RuntimeException(e); }
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
catch (NoSuchMethodException e) { try { // Try the super classes if (type.getSuperclass() != null) { // System.out.println("Checking super: " // + type.getSuperclass()); return myGetMethod(type.getSuperclass(), name, parameterTypes); } } catch (NoSuchMethodException e2) { // Okay } // Try the super interfaces for (Class<?> superInterface : type.getInterfaces()) { try { // System.out.println("Checking super interface: " // + superInterface); return myGetMethod(superInterface, name, parameterTypes); } catch (NoSuchMethodException e3) { // Okay } } throw new NoSuchMethodException(type.getName() + '.' + getMethodSignature(name, parameterTypes)); }
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
catch (NoSuchMethodException e) { throw new RuntimeException(e); }
// in src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/EcmascriptTreeBuilder.java
catch (NoSuchMethodException e) { throw new RuntimeException(e); }
3
unknown (Lib) NumberFormatException 0 0 0 5
            
// in src/main/java/net/sourceforge/pmd/lang/java/typeresolution/ClassTypeResolver.java
catch (NumberFormatException e) { // Bad literal, 'long' requires use of 'l' or 'L' suffix. }
// in src/main/java/net/sourceforge/pmd/lang/java/typeresolution/ClassTypeResolver.java
catch (NumberFormatException e) { // Bad literal, 'float' requires use of 'f' or 'F' suffix. }
// in src/main/java/net/sourceforge/pmd/lang/java/rule/basic/AvoidUsingHardCodedIPRule.java
catch (NumberFormatException e) { // The last part can be a standard IPv4 address. if (i != parts.length - 1 || !isIPv4(firstChar, part)) { return false; } ipv4Mapped = true; }
// in src/main/java/net/sourceforge/pmd/PMDParameters.java
catch (NumberFormatException e) { throw new IllegalArgumentException( "Minimum priority must be a whole number between " + RulePriority.HIGH + " and " + RulePriority.LOW + ", " + priority + " received", e); }
// in src/main/java/net/sourceforge/pmd/PMDParameters.java
catch (NumberFormatException e) { throw new IllegalArgumentException(opt + " parameter must be a whole number, " + s + " received"); }
2
            
// in src/main/java/net/sourceforge/pmd/PMDParameters.java
catch (NumberFormatException e) { throw new IllegalArgumentException( "Minimum priority must be a whole number between " + RulePriority.HIGH + " and " + RulePriority.LOW + ", " + priority + " received", e); }
// in src/main/java/net/sourceforge/pmd/PMDParameters.java
catch (NumberFormatException e) { throw new IllegalArgumentException(opt + " parameter must be a whole number, " + s + " received"); }
2
checked (Domain) PMDException
public class PMDException extends Exception {
    private static final long serialVersionUID = 6938647389367956874L;

    private int severity;

    public PMDException(String message) {
        super(message);
    }

    public PMDException(String message, Exception reason) {
        super(message, reason);
    }

    public void setSeverity(int severity) {
        this.severity = severity;
    }

    public int getSeverity() {
        return severity;
    }
}
3
            
// in src/main/java/net/sourceforge/pmd/SourceCodeProcessor.java
public void processSourceCode(InputStream sourceCode, RuleSets ruleSets, RuleContext ctx) throws PMDException { try { processSourceCode(new InputStreamReader(sourceCode, configuration.getSourceEncoding()), ruleSets, ctx); } catch (UnsupportedEncodingException uee) { throw new PMDException("Unsupported encoding exception: " + uee.getMessage()); } }
// in src/main/java/net/sourceforge/pmd/SourceCodeProcessor.java
public void processSourceCode(Reader sourceCode, RuleSets ruleSets, RuleContext ctx) throws PMDException { determineLanguage(ctx); // make sure custom XPath functions are initialized Initializer.initialize(); // Coarse check to see if any RuleSet applies to file, will need to do a finer RuleSet specific check later if (ruleSets.applies(ctx.getSourceCodeFile())) { try { processSource(sourceCode, ruleSets,ctx); } catch (ParseException pe) { throw new PMDException("Error while parsing " + ctx.getSourceCodeFilename(), pe); } catch (Exception e) { throw new PMDException("Error while processing " + ctx.getSourceCodeFilename(), e); } finally { IOUtil.closeQuietly(sourceCode); } } }
3
            
// in src/main/java/net/sourceforge/pmd/SourceCodeProcessor.java
catch (UnsupportedEncodingException uee) { throw new PMDException("Unsupported encoding exception: " + uee.getMessage()); }
// in src/main/java/net/sourceforge/pmd/SourceCodeProcessor.java
catch (ParseException pe) { throw new PMDException("Error while parsing " + ctx.getSourceCodeFilename(), pe); }
// in src/main/java/net/sourceforge/pmd/SourceCodeProcessor.java
catch (Exception e) { throw new PMDException("Error while processing " + ctx.getSourceCodeFilename(), e); }
4
            
// in src/main/java/net/sourceforge/pmd/SourceCodeProcessor.java
public void processSourceCode(InputStream sourceCode, RuleSets ruleSets, RuleContext ctx) throws PMDException { try { processSourceCode(new InputStreamReader(sourceCode, configuration.getSourceEncoding()), ruleSets, ctx); } catch (UnsupportedEncodingException uee) { throw new PMDException("Unsupported encoding exception: " + uee.getMessage()); } }
// in src/main/java/net/sourceforge/pmd/SourceCodeProcessor.java
public void processSourceCode(Reader sourceCode, RuleSets ruleSets, RuleContext ctx) throws PMDException { determineLanguage(ctx); // make sure custom XPath functions are initialized Initializer.initialize(); // Coarse check to see if any RuleSet applies to file, will need to do a finer RuleSet specific check later if (ruleSets.applies(ctx.getSourceCodeFile())) { try { processSource(sourceCode, ruleSets,ctx); } catch (ParseException pe) { throw new PMDException("Error while parsing " + ctx.getSourceCodeFilename(), pe); } catch (Exception e) { throw new PMDException("Error while processing " + ctx.getSourceCodeFilename(), e); } finally { IOUtil.closeQuietly(sourceCode); } } }
// in src/main/java/net/sourceforge/pmd/benchmark/Benchmarker.java
public static void main(String[] args) throws RuleSetNotFoundException, IOException, PMDException { String targetjdk = findOptionalStringValue(args, "--targetjdk", "1.4"); Language language = Language.JAVA; LanguageVersion languageVersion = language.getVersion(targetjdk); if (languageVersion == null) { languageVersion = language.getDefaultVersion(); } String srcDir = findOptionalStringValue(args, "--source-directory", "/usr/local/java/src/java/lang/"); List<DataSource> dataSources = FileUtil.collectFiles(srcDir, new LanguageFilenameFilter(language)); boolean debug = findBooleanSwitch(args, "--debug"); boolean parseOnly = findBooleanSwitch(args, "--parse-only"); if (debug) { System.out.println("Using " +language.getName() + " " + languageVersion.getVersion()); } if (parseOnly) { Parser parser = PMD.parserFor(languageVersion, null); parseStress(parser, dataSources, debug); } else { String ruleset = findOptionalStringValue(args, "--ruleset", ""); if (debug) { System.out.println("Checking directory " + srcDir); } Set<RuleDuration> results = new TreeSet<RuleDuration>(); RuleSetFactory factory = new RuleSetFactory(); if (StringUtil.isNotEmpty(ruleset)) { stress(languageVersion, factory.createRuleSet(ruleset), dataSources, results, debug); } else { Iterator<RuleSet> i = factory.getRegisteredRuleSets(); while (i.hasNext()) { stress(languageVersion, i.next(), dataSources, results, debug); } } TextReport report = new TextReport(); report.generate(results, System.err); } }
// in src/main/java/net/sourceforge/pmd/benchmark/Benchmarker.java
private static void stress(LanguageVersion languageVersion, RuleSet ruleSet, List<DataSource> dataSources, Set<RuleDuration> results, boolean debug) throws PMDException, IOException { for (Rule rule: ruleSet.getRules()) { if (debug) { System.out.println("Starting " + rule.getName()); } RuleSet working = new RuleSet(); working.addRule(rule); RuleSets ruleSets = new RuleSets(working); PMDConfiguration config = new PMDConfiguration(); config.setDefaultLanguageVersion(languageVersion); RuleContext ctx = new RuleContext(); long start = System.currentTimeMillis(); Reader reader = null; for (DataSource dataSource: dataSources) { reader = new InputStreamReader(dataSource.getInputStream()); ctx.setSourceCodeFilename(dataSource.getNiceFileName(false, null)); new SourceCodeProcessor(config).processSourceCode(reader, ruleSets, ctx); IOUtil.closeQuietly(reader); } long end = System.currentTimeMillis(); long elapsed = end - start; results.add(new RuleDuration(elapsed, rule)); if (debug) { System.out.println("Done timing " + rule.getName() + "; elapsed time was " + elapsed); } } }
2
            
// in src/main/java/net/sourceforge/pmd/processor/PmdRunnable.java
catch (PMDException pmde) { LOG.log(Level.FINE, "Error while processing file", pmde.getCause()); addError(report, pmde, fileName); }
// in src/main/java/net/sourceforge/pmd/processor/MonoThreadProcessor.java
catch (PMDException pmde) { LOG.log(Level.FINE, "Error while processing file", pmde.getCause()); report.addError(new Report.ProcessingError(pmde.getMessage(), niceFileName)); }
0 0
oops (Domain) ParseException
public class ParseException extends net.sourceforge.pmd.lang.ast.ParseException {

  /**
   * This constructor is used by the method "generateParseException"
   * in the generated parser.  Calling this constructor generates
   * a new object of this type with the fields "currentToken",
   * "expectedTokenSequences", and "tokenImage" set.  The boolean
   * flag "specialConstructor" is also set to true to indicate that
   * this constructor was used to create this object.
   * This constructor calls its super class with the empty string
   * to force the "toString" method of parent class "Throwable" to
   * print the error message in the form:
   *     ParseException: <result of getMessage>
   */
  public ParseException(Token currentTokenVal,
                        int[][] expectedTokenSequencesVal,
                        String[] tokenImageVal
                       )
  {
    super("");
    specialConstructor = true;
    currentToken = currentTokenVal;
    expectedTokenSequences = expectedTokenSequencesVal;
    tokenImage = tokenImageVal;
  }

  /**
   * The following constructors are for use by you for whatever
   * purpose you can think of.  Constructing the exception in this
   * manner makes the exception behave in the normal way - i.e., as
   * documented in the class "Throwable".  The fields "errorToken",
   * "expectedTokenSequences", and "tokenImage" do not contain
   * relevant information.  The JavaCC generated code does not use
   * these constructors.
   */

  public ParseException() {
    super();
    specialConstructor = false;
  }

  /** Constructor with message. */
  public ParseException(String message) {
    super(message);
    specialConstructor = false;
  }

  /**
   * This variable determines which constructor was used to create
   * this object and thereby affects the semantics of the
   * "getMessage" method (see below).
   */
  protected boolean specialConstructor;

  /**
   * This is the last token that has been consumed successfully.  If
   * this object has been created due to a parse error, the token
   * followng this token will (therefore) be the first error token.
   */
  public Token currentToken;

  /**
   * Each entry in this array is an array of integers.  Each array
   * of integers represents a sequence of tokens (by their ordinal
   * values) that is expected at this point of the parse.
   */
  public int[][] expectedTokenSequences;

  /**
   * This is a reference to the "tokenImage" array of the generated
   * parser within which the parse error occurred.  This array is
   * defined in the generated ...Constants interface.
   */
  public String[] tokenImage;

  /**
   * This method has the standard behavior when this object has been
   * created using the standard constructors.  Otherwise, it uses
   * "currentToken" and "expectedTokenSequences" to generate a parse
   * error message and returns it.  If this object has been created
   * due to a parse error, and you do not catch it (it gets thrown
   * from the parser), then this method is called during the printing
   * of the final stack trace, and hence the correct error message
   * gets displayed.
   */
  public String getMessage() {
    if (!specialConstructor) {
      return super.getMessage();
    }
    StringBuffer expected = new StringBuffer();
    int maxSize = 0;
    for (int i = 0; i < expectedTokenSequences.length; i++) {
      if (maxSize < expectedTokenSequences[i].length) {
        maxSize = expectedTokenSequences[i].length;
      }
      for (int j = 0; j < expectedTokenSequences[i].length; j++) {
        expected.append(tokenImage[expectedTokenSequences[i][j]]).append(' ');
      }
      if (expectedTokenSequences[i][expectedTokenSequences[i].length - 1] != 0) {
        expected.append("...");
      }
      expected.append(eol).append("    ");
    }
    String retval = "Encountered \"";
    Token tok = currentToken.next;
    for (int i = 0; i < maxSize; i++) {
      if (i != 0) retval += " ";
      if (tok.kind == 0) {
        retval += tokenImage[0];
        break;
      }
      retval += " " + tokenImage[tok.kind];
      retval += " \"";
      retval += add_escapes(tok.image);
      retval += " \"";
      tok = tok.next;
    }
    retval += "\" at line " + currentToken.next.beginLine + ", column " + currentToken.next.beginColumn;
    retval += "." + eol;
    if (expectedTokenSequences.length == 1) {
      retval += "Was expecting:" + eol + "    ";
    } else {
      retval += "Was expecting one of:" + eol + "    ";
    }
    retval += expected.toString();
    return retval;
  }

  /**
   * The end of line string for this machine.
   */
  protected String eol = System.getProperty("line.separator", "\n");

  /**
   * Used to convert raw characters to their escaped version
   * when these raw version cannot be used as part of an ASCII
   * string literal.
   */
  protected String add_escapes(String str) {
      StringBuffer retval = new StringBuffer();
      char ch;
      for (int i = 0; i < str.length(); i++) {
        switch (str.charAt(i))
        {
           case 0 :
              continue;
           case '\b':
              retval.append("\\b");
              continue;
           case '\t':
              retval.append("\\t");
              continue;
           case '\n':
              retval.append("\\n");
              continue;
           case '\f':
              retval.append("\\f");
              continue;
           case '\r':
              retval.append("\\r");
              continue;
           case '\"':
              retval.append("\\\"");
              continue;
           case '\'':
              retval.append("\\\'");
              continue;
           case '\\':
              retval.append("\\\\");
              continue;
           default:
              if ((ch = str.charAt(i)) < 0x20 || ch > 0x7e) {
                 String s = "0000" + Integer.toString(ch, 16);
                 retval.append("\\u" + s.substring(s.length() - 4, s.length()));
              } else {
                 retval.append(ch);
              }
              continue;
        }
      }
      return retval.toString();
   }

}public class ParseException extends RuntimeException {

    public ParseException() {
	super();
    }

    public ParseException(String message) {
	super(message);
    }

    public ParseException(Throwable cause) {
	super(cause);
    }

    public ParseException(String message, Throwable cause) {
	super(message, cause);
    }
}public class ParseException extends net.sourceforge.pmd.lang.ast.ParseException {

  /**
   * This constructor is used by the method "generateParseException"
   * in the generated parser.  Calling this constructor generates
   * a new object of this type with the fields "currentToken",
   * "expectedTokenSequences", and "tokenImage" set.  The boolean
   * flag "specialConstructor" is also set to true to indicate that
   * this constructor was used to create this object.
   * This constructor calls its super class with the empty string
   * to force the "toString" method of parent class "Throwable" to
   * print the error message in the form:
   *     ParseException: <result of getMessage>
   */
  public ParseException(Token currentTokenVal,
                        int[][] expectedTokenSequencesVal,
                        String[] tokenImageVal
                       )
  {
    super("");
    specialConstructor = true;
    currentToken = currentTokenVal;
    expectedTokenSequences = expectedTokenSequencesVal;
    tokenImage = tokenImageVal;
  }

  /**
   * The following constructors are for use by you for whatever
   * purpose you can think of.  Constructing the exception in this
   * manner makes the exception behave in the normal way - i.e., as
   * documented in the class "Throwable".  The fields "errorToken",
   * "expectedTokenSequences", and "tokenImage" do not contain
   * relevant information.  The JavaCC generated code does not use
   * these constructors.
   */

  public ParseException() {
    super();
    specialConstructor = false;
  }

  /** Constructor with message. */
  public ParseException(String message) {
    super(message);
    specialConstructor = false;
  }

  /**
   * This variable determines which constructor was used to create
   * this object and thereby affects the semantics of the
   * "getMessage" method (see below).
   */
  protected boolean specialConstructor;

  /**
   * This is the last token that has been consumed successfully.  If
   * this object has been created due to a parse error, the token
   * followng this token will (therefore) be the first error token.
   */
  public Token currentToken;

  /**
   * Each entry in this array is an array of integers.  Each array
   * of integers represents a sequence of tokens (by their ordinal
   * values) that is expected at this point of the parse.
   */
  public int[][] expectedTokenSequences;

  /**
   * This is a reference to the "tokenImage" array of the generated
   * parser within which the parse error occurred.  This array is
   * defined in the generated ...Constants interface.
   */
  public String[] tokenImage;

  /**
   * This method has the standard behavior when this object has been
   * created using the standard constructors.  Otherwise, it uses
   * "currentToken" and "expectedTokenSequences" to generate a parse
   * error message and returns it.  If this object has been created
   * due to a parse error, and you do not catch it (it gets thrown
   * from the parser), then this method is called during the printing
   * of the final stack trace, and hence the correct error message
   * gets displayed.
   */
  public String getMessage() {
    if (!specialConstructor) {
      return super.getMessage();
    }
    StringBuffer expected = new StringBuffer();
    int maxSize = 0;
    for (int i = 0; i < expectedTokenSequences.length; i++) {
      if (maxSize < expectedTokenSequences[i].length) {
        maxSize = expectedTokenSequences[i].length;
      }
      for (int j = 0; j < expectedTokenSequences[i].length; j++) {
        expected.append(tokenImage[expectedTokenSequences[i][j]]).append(' ');
      }
      if (expectedTokenSequences[i][expectedTokenSequences[i].length - 1] != 0) {
        expected.append("...");
      }
      expected.append(eol).append("    ");
    }
    String retval = "Encountered \"";
    Token tok = currentToken.next;
    for (int i = 0; i < maxSize; i++) {
      if (i != 0) retval += " ";
      if (tok.kind == 0) {
        retval += tokenImage[0];
        break;
      }
      retval += " " + tokenImage[tok.kind];
      retval += " \"";
      retval += add_escapes(tok.image);
      retval += " \"";
      tok = tok.next;
    }
    retval += "\" at line " + currentToken.next.beginLine + ", column " + currentToken.next.beginColumn;
    retval += "." + eol;
    if (expectedTokenSequences.length == 1) {
      retval += "Was expecting:" + eol + "    ";
    } else {
      retval += "Was expecting one of:" + eol + "    ";
    }
    retval += expected.toString();
    return retval;
  }

  /**
   * The end of line string for this machine.
   */
  protected String eol = System.getProperty("line.separator", "\n");

  /**
   * Used to convert raw characters to their escaped version
   * when these raw version cannot be used as part of an ASCII
   * string literal.
   */
  protected String add_escapes(String str) {
      StringBuffer retval = new StringBuffer();
      char ch;
      for (int i = 0; i < str.length(); i++) {
        switch (str.charAt(i))
        {
           case 0 :
              continue;
           case '\b':
              retval.append("\\b");
              continue;
           case '\t':
              retval.append("\\t");
              continue;
           case '\n':
              retval.append("\\n");
              continue;
           case '\f':
              retval.append("\\f");
              continue;
           case '\r':
              retval.append("\\r");
              continue;
           case '\"':
              retval.append("\\\"");
              continue;
           case '\'':
              retval.append("\\\'");
              continue;
           case '\\':
              retval.append("\\\\");
              continue;
           default:
              if ((ch = str.charAt(i)) < 0x20 || ch > 0x7e) {
                 String s = "0000" + Integer.toString(ch, 16);
                 retval.append("\\u" + s.substring(s.length() - 4, s.length()));
              } else {
                 retval.append(ch);
              }
              continue;
        }
      }
      return retval.toString();
   }

}
86
            
// 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/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/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 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 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 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 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/java/ast/JavaParser.java
private void checkForBadAssertUsage(String in, String usage) { if (jdkVersion > 3 && in.equals("assert")) { throw new ParseException("Can't use 'assert' as " + usage + " when running in JDK 1.4 mode!"); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
private void checkForBadStaticImportUsage() { if (jdkVersion < 5) { throw new ParseException("Can't use static imports when running in JDK 1.4 mode!"); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
private void checkForBadAnnotationUsage() { if (jdkVersion < 5) { throw new ParseException("Can't use annotations when running in JDK 1.4 mode!"); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
private void checkForBadGenericsUsage() { if (jdkVersion < 5) { throw new ParseException("Can't use generics unless running in JDK 1.5 mode!"); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
private void checkForBadVariableArgumentsUsage() { if (jdkVersion < 5) { throw new ParseException("Can't use variable arguments (varargs) when running in JDK 1.4 mode!"); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
private void checkForBadJDK15ForLoopSyntaxArgumentsUsage() { if (jdkVersion < 5) { throw new ParseException("Can't use JDK 1.5 for loop syntax when running in JDK 1.4 mode!"); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
private void checkForBadEnumUsage(String in, String usage) { if (jdkVersion >= 5 && in.equals("enum")) { throw new ParseException("Can't use 'enum' as " + usage + " when running in JDK 1.5 mode!"); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
private void checkForBadHexFloatingPointLiteral() { if (jdkVersion < 5) { throw new ParseException("Can't use hexadecimal floating point literals in pre-JDK 1.5 target"); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
private void checkForBadNumericalLiteralslUsage(Token token) { if (jdkVersion < 7) { if (token.image.contains("_")) { throw new ParseException("Can't use underscores in numerical literals when running in JDK inferior to 1.7 mode!"); } if (token.image.startsWith("0b") || token.image.startsWith("0B")) { throw new ParseException("Can't use binary numerical literals when running in JDK inferior to 1.7 mode!"); } } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
private void checkForBadDiamondUsage() { if (jdkVersion < 7) { throw new ParseException("Cannot use the diamond generic notation when running in JDK inferior to 1.7 mode!"); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
private void checkForBadTryWithResourcesUsage() { if (jdkVersion < 7) { throw new ParseException("Cannot use the try-with-resources notation when running in JDK inferior to 1.7 mode!"); } }
// 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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); } } }
4
            
// in src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/EcmascriptParser.java
catch (final IOException e) { throw new ParseException(e); }
// in src/main/java/net/sourceforge/pmd/lang/xml/ast/XmlParser.java
catch (ParserConfigurationException e) { throw new ParseException(e); }
// in src/main/java/net/sourceforge/pmd/lang/xml/ast/XmlParser.java
catch (SAXException e) { throw new ParseException(e); }
// in src/main/java/net/sourceforge/pmd/lang/xml/ast/XmlParser.java
catch (IOException e) { throw new ParseException(e); }
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)); }
4
            
// in src/main/java/net/sourceforge/pmd/SourceCodeProcessor.java
catch (ParseException pe) { throw new PMDException("Error while parsing " + ctx.getSourceCodeFilename(), pe); }
// in src/main/java/net/sourceforge/pmd/util/designer/Designer.java
catch (ParseException pe) { tn = new ExceptionNode(pe); }
// in src/main/java/net/sourceforge/pmd/util/designer/Designer.java
catch (ParseException pe) { xpathResults.addElement(pe.fillInStackTrace().getMessage()); }
// in src/main/java/net/sourceforge/pmd/util/viewer/gui/MainFrame.java
catch (ParseException exc) { setStatus(NLS.nls("MAIN.FRAME.COMPILATION.PROBLEM") + " " + exc.toString()); new ParseExceptionHandler(this, exc); }
1
            
// in src/main/java/net/sourceforge/pmd/SourceCodeProcessor.java
catch (ParseException pe) { throw new PMDException("Error while parsing " + ctx.getSourceCodeFilename(), pe); }
0
unknown (Lib) ParserConfigurationException 0 0 0 8
            
// in src/main/java/net/sourceforge/pmd/cpd/XMLRenderer.java
catch (ParserConfigurationException e) { throw new IllegalStateException(e); }
// in src/main/java/net/sourceforge/pmd/RuleSetFactory.java
catch (ParserConfigurationException pce) { return classNotFoundProblem(pce); }
// in src/main/java/net/sourceforge/pmd/lang/xml/ast/XmlParser.java
catch (ParserConfigurationException e) { throw new ParseException(e); }
// in src/main/java/net/sourceforge/pmd/lang/ast/AbstractNode.java
catch (ParserConfigurationException pce) { throw new RuntimeException(pce); }
// in src/main/java/net/sourceforge/pmd/RuleSetWriter.java
catch (ParserConfigurationException e) { throw new RuntimeException(e); }
// in src/main/java/net/sourceforge/pmd/renderers/XSLTRenderer.java
catch (ParserConfigurationException e) { e.printStackTrace(); }
// in src/main/java/net/sourceforge/pmd/util/designer/Designer.java
catch (ParserConfigurationException e) { e.printStackTrace(); }
// in src/main/java/net/sourceforge/pmd/util/designer/Designer.java
catch (ParserConfigurationException e) { e.printStackTrace(); }
4
            
// in src/main/java/net/sourceforge/pmd/cpd/XMLRenderer.java
catch (ParserConfigurationException e) { throw new IllegalStateException(e); }
// in src/main/java/net/sourceforge/pmd/lang/xml/ast/XmlParser.java
catch (ParserConfigurationException e) { throw new ParseException(e); }
// in src/main/java/net/sourceforge/pmd/lang/ast/AbstractNode.java
catch (ParserConfigurationException pce) { throw new RuntimeException(pce); }
// in src/main/java/net/sourceforge/pmd/RuleSetWriter.java
catch (ParserConfigurationException e) { throw new RuntimeException(e); }
3
unknown (Lib) PatternSyntaxException 0 0 0 1
            
// in src/main/java/net/sourceforge/pmd/util/filter/RegexStringFilter.java
catch (PatternSyntaxException e) { // If the regular expression is invalid, then pattern will be null. }
0 0
checked (Domain) ReportException
public class ReportException extends Exception {

    public ReportException(Throwable cause) {
        super();
    }
}
1
            
// in src/main/java/net/sourceforge/pmd/cpd/FileReporter.java
public void report(String content) throws ReportException { try { Writer writer = null; try { OutputStream outputStream; if (reportFile == null) { outputStream = System.out; } else { outputStream = new FileOutputStream(reportFile); } writer = new BufferedWriter(new OutputStreamWriter(outputStream, encoding)); writer.write(content); } finally { IOUtil.closeQuietly(writer); } } catch (IOException ioe) { throw new ReportException(ioe); } }
1
            
// in src/main/java/net/sourceforge/pmd/cpd/FileReporter.java
catch (IOException ioe) { throw new ReportException(ioe); }
2
            
// in src/main/java/net/sourceforge/pmd/cpd/CPDTask.java
private void report(CPD cpd) throws ReportException { if (!cpd.getMatches().hasNext()) { log("No duplicates over " + minimumTokenCount + " tokens found", Project.MSG_INFO); } Renderer renderer = createRenderer(); FileReporter reporter; if (outputFile == null) { reporter = new FileReporter(encoding); } else if (outputFile.isAbsolute()) { reporter = new FileReporter(outputFile, encoding); } else { reporter = new FileReporter(new File(getProject().getBaseDir(), outputFile.toString()), encoding); } reporter.report(renderer.render(cpd.getMatches())); }
// in src/main/java/net/sourceforge/pmd/cpd/FileReporter.java
public void report(String content) throws ReportException { try { Writer writer = null; try { OutputStream outputStream; if (reportFile == null) { outputStream = System.out; } else { outputStream = new FileOutputStream(reportFile); } writer = new BufferedWriter(new OutputStreamWriter(outputStream, encoding)); writer.write(content); } finally { IOUtil.closeQuietly(writer); } } catch (IOException ioe) { throw new ReportException(ioe); } }
1
            
// in src/main/java/net/sourceforge/pmd/cpd/CPDTask.java
catch (ReportException re) { re.printStackTrace(); log(re.toString(), Project.MSG_ERR); throw new BuildException("ReportException during task execution", re); }
1
            
// in src/main/java/net/sourceforge/pmd/cpd/CPDTask.java
catch (ReportException re) { re.printStackTrace(); log(re.toString(), Project.MSG_ERR); throw new BuildException("ReportException during task execution", re); }
0
checked (Domain) RuleSetNotFoundException
public class RuleSetNotFoundException extends Exception {
    public RuleSetNotFoundException(String msg) {
        super(msg);
    }
}
4
            
// in src/main/java/net/sourceforge/pmd/RuleSetFactory.java
public synchronized RuleSet createRuleSet(String referenceString) throws RuleSetNotFoundException { List<RuleSetReferenceId> references = RuleSetReferenceId.parse(referenceString); if (references.isEmpty()) { throw new RuleSetNotFoundException("No RuleSetReferenceId can be parsed from the string: <" + referenceString + ">"); } return createRuleSet(references.get(0)); }
// in src/main/java/net/sourceforge/pmd/RuleSetReferenceId.java
public InputStream getInputStream(ClassLoader classLoader) throws RuleSetNotFoundException { if (externalRuleSetReferenceId == null) { InputStream in = StringUtil.isEmpty(ruleSetFileName) ? null : ResourceLoader.loadResourceAsStream( ruleSetFileName, classLoader); if (in == null) { throw new RuleSetNotFoundException( "Can't find resource " + ruleSetFileName + ". Make sure the resource is a valid file or URL or is on the CLASSPATH. Here's the current classpath: " + System.getProperty("java.class.path")); } return in; } else { return externalRuleSetReferenceId.getInputStream(classLoader); } }
// in src/main/java/net/sourceforge/pmd/util/ResourceLoader.java
public static InputStream loadResourceAsStream(String name) throws RuleSetNotFoundException { InputStream stream = loadResourceAsStream(name, ResourceLoader.class.getClassLoader()); if (stream == null) { throw new RuleSetNotFoundException("Can't find resource " + name + ". Make sure the resource is a valid file or URL or is on the CLASSPATH"); } return stream; }
// in src/main/java/net/sourceforge/pmd/util/ResourceLoader.java
public static InputStream loadResourceAsStream(String name, ClassLoader loader) throws RuleSetNotFoundException { File file = new File(name); if (file.exists()) { try { return new FileInputStream(file); } catch (FileNotFoundException e) { // if the file didn't exist, we wouldn't be here } } else { try { return new URL(name).openConnection().getInputStream(); } catch (Exception e) { return loader.getResourceAsStream(name); } } throw new RuleSetNotFoundException("Can't find resource " + name + ". Make sure the resource is a valid file or URL or is on the CLASSPATH"); }
0 13
            
// in src/main/java/net/sourceforge/pmd/RuleSetFactory.java
public Iterator<RuleSet> getRegisteredRuleSets() throws RuleSetNotFoundException { String rulesetsProperties = null; try { List<RuleSetReferenceId> ruleSetReferenceIds = new ArrayList<RuleSetReferenceId>(); for (Language language : Language.findWithRuleSupport()) { Properties props = new Properties(); rulesetsProperties = "rulesets/" + language.getTerseName() + "/rulesets.properties"; props.load(ResourceLoader.loadResourceAsStream(rulesetsProperties)); String rulesetFilenames = props.getProperty("rulesets.filenames"); ruleSetReferenceIds.addAll(RuleSetReferenceId.parse(rulesetFilenames)); } return createRuleSets(ruleSetReferenceIds).getRuleSetsIterator(); } catch (IOException ioe) { throw new RuntimeException("Couldn't find " + rulesetsProperties + "; please ensure that the rulesets directory is on the classpath. The current classpath is: " + System.getProperty("java.class.path")); } }
// in src/main/java/net/sourceforge/pmd/RuleSetFactory.java
public synchronized RuleSets createRuleSets(String referenceString) throws RuleSetNotFoundException { return createRuleSets(RuleSetReferenceId.parse(referenceString)); }
// in src/main/java/net/sourceforge/pmd/RuleSetFactory.java
public synchronized RuleSets createRuleSets(List<RuleSetReferenceId> ruleSetReferenceIds) throws RuleSetNotFoundException { RuleSets ruleSets = new RuleSets(); for (RuleSetReferenceId ruleSetReferenceId : ruleSetReferenceIds) { RuleSet ruleSet = createRuleSet(ruleSetReferenceId); ruleSets.addRuleSet(ruleSet); } return ruleSets; }
// in src/main/java/net/sourceforge/pmd/RuleSetFactory.java
public synchronized RuleSet createRuleSet(String referenceString) throws RuleSetNotFoundException { List<RuleSetReferenceId> references = RuleSetReferenceId.parse(referenceString); if (references.isEmpty()) { throw new RuleSetNotFoundException("No RuleSetReferenceId can be parsed from the string: <" + referenceString + ">"); } return createRuleSet(references.get(0)); }
// in src/main/java/net/sourceforge/pmd/RuleSetFactory.java
public synchronized RuleSet createRuleSet(RuleSetReferenceId ruleSetReferenceId) throws RuleSetNotFoundException { return parseRuleSetNode(ruleSetReferenceId, ruleSetReferenceId.getInputStream(this.classLoader)); }
// in src/main/java/net/sourceforge/pmd/RuleSetFactory.java
private Rule createRule(RuleSetReferenceId ruleSetReferenceId) throws RuleSetNotFoundException { if (ruleSetReferenceId.isAllRules()) { throw new IllegalArgumentException("Cannot parse a single Rule from an all Rule RuleSet reference: <" + ruleSetReferenceId + ">."); } RuleSet ruleSet = createRuleSet(ruleSetReferenceId); return ruleSet.getRuleByName(ruleSetReferenceId.getRuleName()); }
// in src/main/java/net/sourceforge/pmd/RuleSetFactory.java
private void parseRuleNode(RuleSetReferenceId ruleSetReferenceId, RuleSet ruleSet, Node ruleNode) throws ClassNotFoundException, InstantiationException, IllegalAccessException, RuleSetNotFoundException { Element ruleElement = (Element) ruleNode; String ref = ruleElement.getAttribute("ref"); if (ref.endsWith("xml")) { parseRuleSetReferenceNode(ruleSetReferenceId, ruleSet, ruleElement, ref); } else if (StringUtil.isEmpty(ref)) { parseSingleRuleNode(ruleSetReferenceId, ruleSet, ruleNode); } else { parseRuleReferenceNode(ruleSetReferenceId, ruleSet, ruleNode, ref); } }
// in src/main/java/net/sourceforge/pmd/RuleSetFactory.java
private void parseRuleSetReferenceNode(RuleSetReferenceId ruleSetReferenceId, RuleSet ruleSet, Element ruleElement, String ref) throws RuleSetNotFoundException { RuleSetReference ruleSetReference = new RuleSetReference(); ruleSetReference.setAllRules(true); ruleSetReference.setRuleSetFileName(ref); NodeList excludeNodes = ruleElement.getChildNodes(); for (int i = 0; i < excludeNodes.getLength(); i++) { if (isElementNode(excludeNodes.item(i),"exclude")) { Element excludeElement = (Element) excludeNodes.item(i); ruleSetReference.addExclude(excludeElement.getAttribute("name")); } } RuleSetFactory ruleSetFactory = new RuleSetFactory(); ruleSetFactory.setClassLoader(classLoader); RuleSet otherRuleSet = ruleSetFactory.createRuleSet(RuleSetReferenceId.parse(ref).get(0)); for (Rule rule : otherRuleSet.getRules()) { if (!ruleSetReference.getExcludes().contains(rule.getName()) && rule.getPriority().compareTo(minimumPriority) <= 0 && !rule.isDeprecated()) { RuleReference ruleReference = new RuleReference(); ruleReference.setRuleSetReference(ruleSetReference); ruleReference.setRule(rule); ruleSet.addRule(ruleReference); } } }
// in src/main/java/net/sourceforge/pmd/RuleSetFactory.java
private void parseRuleReferenceNode(RuleSetReferenceId ruleSetReferenceId, RuleSet ruleSet, Node ruleNode, String ref) throws RuleSetNotFoundException { Element ruleElement = (Element) ruleNode; // Stop if we're looking for a particular Rule, and this element is not it. if (StringUtil.isNotEmpty(ruleSetReferenceId.getRuleName()) && !isRuleName(ruleElement, ruleSetReferenceId.getRuleName())) { return; } RuleSetFactory ruleSetFactory = new RuleSetFactory(); ruleSetFactory.setClassLoader(classLoader); RuleSetReferenceId otherRuleSetReferenceId = RuleSetReferenceId.parse(ref).get(0); if (!otherRuleSetReferenceId.isExternal()) { otherRuleSetReferenceId = new RuleSetReferenceId(ref, ruleSetReferenceId); } Rule referencedRule = ruleSetFactory.createRule(otherRuleSetReferenceId); if (referencedRule == null) { throw new IllegalArgumentException("Unable to find referenced rule " + otherRuleSetReferenceId.getRuleName() + "; perhaps the rule name is mispelled?"); } if (warnDeprecated && referencedRule.isDeprecated()) { if (referencedRule instanceof RuleReference) { RuleReference ruleReference = (RuleReference) referencedRule; LOG.warning("Use Rule name " + ruleReference.getRuleSetReference().getRuleSetFileName() + "/" + ruleReference.getName() + " instead of the deprecated Rule name " + otherRuleSetReferenceId + ". Future versions of PMD will remove support for this deprecated Rule name usage."); } else if (referencedRule instanceof MockRule) { LOG.warning("Discontinue using Rule name " + otherRuleSetReferenceId + " as it has been removed from PMD and no longer functions." + " Future versions of PMD will remove support for this Rule."); } else { LOG.warning("Discontinue using Rule name " + otherRuleSetReferenceId + " as it is scheduled for removal from PMD." + " Future versions of PMD will remove support for this Rule."); } } RuleSetReference ruleSetReference = new RuleSetReference(); ruleSetReference.setAllRules(false); ruleSetReference.setRuleSetFileName(otherRuleSetReferenceId.getRuleSetFileName()); RuleReference ruleReference = new RuleReference(); ruleReference.setRuleSetReference(ruleSetReference); ruleReference.setRule(referencedRule); if (ruleElement.hasAttribute("deprecated")) { ruleReference.setDeprecated(Boolean.parseBoolean(ruleElement.getAttribute("deprecated"))); } if (ruleElement.hasAttribute("name")) { ruleReference.setName(ruleElement.getAttribute("name")); } if (ruleElement.hasAttribute("message")) { ruleReference.setMessage(ruleElement.getAttribute("message")); } if (ruleElement.hasAttribute("externalInfoUrl")) { ruleReference.setExternalInfoUrl(ruleElement.getAttribute("externalInfoUrl")); } for (int i = 0; i < ruleElement.getChildNodes().getLength(); i++) { Node node = ruleElement.getChildNodes().item(i); if (node.getNodeType() == Node.ELEMENT_NODE) { if (node.getNodeName().equals("description")) { ruleReference.setDescription(parseTextNode(node)); } else if (node.getNodeName().equals("example")) { ruleReference.addExample(parseTextNode(node)); } else if (node.getNodeName().equals("priority")) { ruleReference.setPriority(RulePriority.valueOf(Integer.parseInt(parseTextNode(node)))); } else if (node.getNodeName().equals("properties")) { parsePropertiesNode(ruleReference, node); } else { throw new IllegalArgumentException("Unexpected element <" + node.getNodeName() + "> encountered as child of <rule> element for Rule " + ruleReference.getName()); } } } if (StringUtil.isNotEmpty(ruleSetReferenceId.getRuleName()) || referencedRule.getPriority().compareTo(minimumPriority) <= 0) { ruleSet.addRule(ruleReference); } }
// in src/main/java/net/sourceforge/pmd/benchmark/Benchmarker.java
public static void main(String[] args) throws RuleSetNotFoundException, IOException, PMDException { String targetjdk = findOptionalStringValue(args, "--targetjdk", "1.4"); Language language = Language.JAVA; LanguageVersion languageVersion = language.getVersion(targetjdk); if (languageVersion == null) { languageVersion = language.getDefaultVersion(); } String srcDir = findOptionalStringValue(args, "--source-directory", "/usr/local/java/src/java/lang/"); List<DataSource> dataSources = FileUtil.collectFiles(srcDir, new LanguageFilenameFilter(language)); boolean debug = findBooleanSwitch(args, "--debug"); boolean parseOnly = findBooleanSwitch(args, "--parse-only"); if (debug) { System.out.println("Using " +language.getName() + " " + languageVersion.getVersion()); } if (parseOnly) { Parser parser = PMD.parserFor(languageVersion, null); parseStress(parser, dataSources, debug); } else { String ruleset = findOptionalStringValue(args, "--ruleset", ""); if (debug) { System.out.println("Checking directory " + srcDir); } Set<RuleDuration> results = new TreeSet<RuleDuration>(); RuleSetFactory factory = new RuleSetFactory(); if (StringUtil.isNotEmpty(ruleset)) { stress(languageVersion, factory.createRuleSet(ruleset), dataSources, results, debug); } else { Iterator<RuleSet> i = factory.getRegisteredRuleSets(); while (i.hasNext()) { stress(languageVersion, i.next(), dataSources, results, debug); } } TextReport report = new TextReport(); report.generate(results, System.err); } }
// in src/main/java/net/sourceforge/pmd/RuleSetReferenceId.java
public InputStream getInputStream(ClassLoader classLoader) throws RuleSetNotFoundException { if (externalRuleSetReferenceId == null) { InputStream in = StringUtil.isEmpty(ruleSetFileName) ? null : ResourceLoader.loadResourceAsStream( ruleSetFileName, classLoader); if (in == null) { throw new RuleSetNotFoundException( "Can't find resource " + ruleSetFileName + ". Make sure the resource is a valid file or URL or is on the CLASSPATH. Here's the current classpath: " + System.getProperty("java.class.path")); } return in; } else { return externalRuleSetReferenceId.getInputStream(classLoader); } }
// in src/main/java/net/sourceforge/pmd/util/ResourceLoader.java
public static InputStream loadResourceAsStream(String name) throws RuleSetNotFoundException { InputStream stream = loadResourceAsStream(name, ResourceLoader.class.getClassLoader()); if (stream == null) { throw new RuleSetNotFoundException("Can't find resource " + name + ". Make sure the resource is a valid file or URL or is on the CLASSPATH"); } return stream; }
// in src/main/java/net/sourceforge/pmd/util/ResourceLoader.java
public static InputStream loadResourceAsStream(String name, ClassLoader loader) throws RuleSetNotFoundException { File file = new File(name); if (file.exists()) { try { return new FileInputStream(file); } catch (FileNotFoundException e) { // if the file didn't exist, we wouldn't be here } } else { try { return new URL(name).openConnection().getInputStream(); } catch (Exception e) { return loader.getResourceAsStream(name); } } throw new RuleSetNotFoundException("Can't find resource " + name + ". Make sure the resource is a valid file or URL or is on the CLASSPATH"); }
4
            
// in src/main/java/net/sourceforge/pmd/RuleSetFactory.java
catch (RuleSetNotFoundException rsnfe) { return classNotFoundProblem(rsnfe); }
// in src/main/java/net/sourceforge/pmd/RulesetsFactoryUtils.java
catch (RuleSetNotFoundException rsnfe) { LOG.log(Level.SEVERE, "Ruleset not found", rsnfe); throw new IllegalArgumentException(rsnfe); }
// in src/main/java/net/sourceforge/pmd/processor/AbstractPMDProcessor.java
catch (RuleSetNotFoundException rsnfe) { // should not happen: parent already created a ruleset return null; }
// in src/main/java/net/sourceforge/pmd/ant/PMDTask.java
catch (RuleSetNotFoundException e) { throw new BuildException(e.getMessage(), e); }
2
            
// in src/main/java/net/sourceforge/pmd/RulesetsFactoryUtils.java
catch (RuleSetNotFoundException rsnfe) { LOG.log(Level.SEVERE, "Ruleset not found", rsnfe); throw new IllegalArgumentException(rsnfe); }
// in src/main/java/net/sourceforge/pmd/ant/PMDTask.java
catch (RuleSetNotFoundException e) { throw new BuildException(e.getMessage(), e); }
1
runtime (Lib) RuntimeException 82
            
// in src/main/java/net/sourceforge/pmd/dcd/asm/TypeSignatureVisitor.java
public Class<?> getFieldType() { popType(); if (fieldType == null) { throw new RuntimeException(); } return fieldType; }
// in src/main/java/net/sourceforge/pmd/dcd/asm/TypeSignatureVisitor.java
public Class<?> getMethodReturnType() { popType(); if (returnType == null) { throw new RuntimeException(); } return returnType; }
// in src/main/java/net/sourceforge/pmd/dcd/asm/TypeSignatureVisitor.java
public Class<?>[] getMethodParameterTypes() { popType(); if (parameterTypes == null) { throw new RuntimeException(); } if (parameterTypes != null) { return parameterTypes.toArray(new Class<?>[parameterTypes.size()]); } else { return null; } }
// in src/main/java/net/sourceforge/pmd/dcd/asm/TypeSignatureVisitor.java
private void popType() { switch (typeType) { case NO_TYPE: break; case FIELD_TYPE: fieldType = getType(); break; case RETURN_TYPE: returnType = getType(); break; case PARAMETER_TYPE: parameterTypes.add(getType()); break; default: throw new RuntimeException("Unknown type type: " + typeType); } typeType = NO_TYPE; type = null; arrayDimensions = 0; }
// in src/main/java/net/sourceforge/pmd/dcd/asm/TypeSignatureVisitor.java
public void visitBaseType(char descriptor) { if (TRACE) { println("visitBaseType:"); printlnIndent("descriptor: " + descriptor); } switch (descriptor) { case 'B': type = Byte.TYPE; break; case 'C': type = Character.TYPE; break; case 'D': type = Double.TYPE; break; case 'F': type = Float.TYPE; break; case 'I': type = Integer.TYPE; break; case 'J': type = Long.TYPE; break; case 'S': type = Short.TYPE; break; case 'Z': type = Boolean.TYPE; break; case 'V': type = Void.TYPE; break; default: throw new RuntimeException("Unknown baseType descriptor: " + descriptor); } }
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
public static Class<?> getClass(String name) { try { return ClassLoaderUtil.class.getClassLoader().loadClass(name); } catch (ClassNotFoundException e) { throw new RuntimeException(e); } }
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
public static Field getField(Class<?> type, String name) { try { return myGetField(type, name); } catch (NoSuchFieldException e) { throw new RuntimeException(e); } }
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
public static Method getMethod(Class<?> type, String name, Class<?>... parameterTypes) { try { return myGetMethod(type, name, parameterTypes); } catch (NoSuchMethodException e) { throw new RuntimeException(e); } }
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
public static Constructor<?> getConstructor(Class<?> type, String name, Class<?>... parameterTypes) { try { return type.getDeclaredConstructor(parameterTypes); } catch (NoSuchMethodException e) { throw new RuntimeException(e); } }
// in src/main/java/net/sourceforge/pmd/dcd/graph/UsageGraphBuilder.java
public void index(String name) { try { String className = getClassName(name); String classResourceName = getResourceName(name); if (classFilter.filter(className)) { if (!usageGraph.isClass(className)) { usageGraph.defineClass(className); InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream( classResourceName + ".class"); ClassReader classReader = new ClassReader(inputStream); classReader.accept(getNewClassVisitor(), 0); } } } catch (IOException e) { throw new RuntimeException("For " + name + ": " + e.getMessage(), e); } }
// in src/main/java/net/sourceforge/pmd/cpd/SourceCode.java
protected List<String> load() { LineNumberReader lnr = null; try { lnr = new LineNumberReader(getReader()); List<String> lines = new ArrayList<String>(); String currentLine; while ((currentLine = lnr.readLine()) != null) { lines.add(currentLine); } return lines; } catch (Exception e) { e.printStackTrace(); throw new RuntimeException("Problem while reading " + getFileName() + ":" + e.getMessage()); } finally { IOUtil.closeQuietly(lnr); } }
// in src/main/java/net/sourceforge/pmd/RuleSetFactory.java
public Iterator<RuleSet> getRegisteredRuleSets() throws RuleSetNotFoundException { String rulesetsProperties = null; try { List<RuleSetReferenceId> ruleSetReferenceIds = new ArrayList<RuleSetReferenceId>(); for (Language language : Language.findWithRuleSupport()) { Properties props = new Properties(); rulesetsProperties = "rulesets/" + language.getTerseName() + "/rulesets.properties"; props.load(ResourceLoader.loadResourceAsStream(rulesetsProperties)); String rulesetFilenames = props.getProperty("rulesets.filenames"); ruleSetReferenceIds.addAll(RuleSetReferenceId.parse(rulesetFilenames)); } return createRuleSets(ruleSetReferenceIds).getRuleSetsIterator(); } catch (IOException ioe) { throw new RuntimeException("Couldn't find " + rulesetsProperties + "; please ensure that the rulesets directory is on the classpath. The current classpath is: " + System.getProperty("java.class.path")); } }
// in src/main/java/net/sourceforge/pmd/RuleSetFactory.java
private static RuleSet classNotFoundProblem(Exception ex) throws RuntimeException { ex.printStackTrace(); throw new RuntimeException("Couldn't find the class " + ex.getMessage()); }
// in src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/EcmascriptTreeBuilder.java
protected static void register(Class<? extends AstNode> nodeType, Class<? extends EcmascriptNode> nodeAdapterType) { try { NODE_TYPE_TO_NODE_ADAPTER_TYPE.put(nodeType, nodeAdapterType.getConstructor(nodeType)); } catch (SecurityException e) { throw new RuntimeException(e); } catch (NoSuchMethodException e) { throw new RuntimeException(e); } }
// in src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/EcmascriptTreeBuilder.java
protected EcmascriptNode createNodeAdapter(AstNode node) { try { Constructor<? extends EcmascriptNode> constructor = NODE_TYPE_TO_NODE_ADAPTER_TYPE.get(node.getClass()); if (constructor == null) { throw new IllegalArgumentException("There is no Node adapter class registered for the Node class: " + node.getClass()); } return constructor.newInstance(node); } catch (InstantiationException e) { throw new RuntimeException(e); } catch (IllegalAccessException e) { throw new RuntimeException(e); } catch (InvocationTargetException e) { throw new RuntimeException(e.getTargetException()); } }
// in src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/DumpFacade.java
public void initializeWith(Writer writer, String prefix, boolean recurse, EcmascriptNode<?> node) { this.writer = (writer instanceof PrintWriter) ? (PrintWriter) writer : new PrintWriter(writer); this.recurse = recurse; this.dump(node, prefix); try { writer.flush(); } catch (IOException e) { throw new RuntimeException("Problem flushing PrintWriter.", e); } }
// in src/main/java/net/sourceforge/pmd/lang/dfa/VariableAccess.java
public String toString() { if (isDefinition()) { return "Definition(" + variableName + ")"; } if (isReference()) { return "Reference(" + variableName + ")"; } if (isUndefinition()) { return "Undefinition(" + variableName + ")"; } throw new RuntimeException("Access type was never set"); }
// in src/main/java/net/sourceforge/pmd/lang/dfa/AbstractDataFlowNode.java
private String stringFromType(int intype) { if (typeMap.isEmpty()) { typeMap.put(NodeType.IF_EXPR, "IF_EXPR"); typeMap.put(NodeType.IF_LAST_STATEMENT, "IF_LAST_STATEMENT"); typeMap.put(NodeType.IF_LAST_STATEMENT_WITHOUT_ELSE, "IF_LAST_STATEMENT_WITHOUT_ELSE"); typeMap.put(NodeType.ELSE_LAST_STATEMENT, "ELSE_LAST_STATEMENT"); typeMap.put(NodeType.WHILE_LAST_STATEMENT, "WHILE_LAST_STATEMENT"); typeMap.put(NodeType.WHILE_EXPR, "WHILE_EXPR"); typeMap.put(NodeType.SWITCH_START, "SWITCH_START"); typeMap.put(NodeType.CASE_LAST_STATEMENT, "CASE_LAST_STATEMENT"); typeMap.put(NodeType.SWITCH_LAST_DEFAULT_STATEMENT, "SWITCH_LAST_DEFAULT_STATEMENT"); typeMap.put(NodeType.SWITCH_END, "SWITCH_END"); typeMap.put(NodeType.FOR_INIT, "FOR_INIT"); typeMap.put(NodeType.FOR_EXPR, "FOR_EXPR"); typeMap.put(NodeType.FOR_UPDATE, "FOR_UPDATE"); typeMap.put(NodeType.FOR_BEFORE_FIRST_STATEMENT, "FOR_BEFORE_FIRST_STATEMENT"); typeMap.put(NodeType.FOR_END, "FOR_END"); typeMap.put(NodeType.DO_BEFORE_FIRST_STATEMENT, "DO_BEFORE_FIRST_STATEMENT"); typeMap.put(NodeType.DO_EXPR, "DO_EXPR"); typeMap.put(NodeType.RETURN_STATEMENT, "RETURN_STATEMENT"); typeMap.put(NodeType.BREAK_STATEMENT, "BREAK_STATEMENT"); typeMap.put(NodeType.CONTINUE_STATEMENT, "CONTINUE_STATEMENT"); typeMap.put(NodeType.LABEL_STATEMENT, "LABEL_STATEMENT"); typeMap.put(NodeType.LABEL_LAST_STATEMENT, "LABEL_END"); typeMap.put(NodeType.THROW_STATEMENT, "THROW_STATEMENT"); } if (!typeMap.containsKey(intype)) { throw new RuntimeException("Couldn't find type id " + intype); } return typeMap.get(intype); }
// in src/main/java/net/sourceforge/pmd/lang/dfa/report/ReportHTMLPrintVisitor.java
public void visit(AbstractReportNode node) { /* * The first node of result tree. */ if (node.getParent() == null) { packageBuf.insert(0, "<html>" + " <head>" + " <title>PMD</title>" + " </head>" + " <body>" + PMD.EOL + "<h2>Package View</h2>" + "<table border=\"1\" align=\"center\" cellspacing=\"0\" cellpadding=\"3\">" + " <tr>" + PMD.EOL + "<th>Package</th>" + "<th>Class</th>" + "<th>#</th>" + " </tr>" + PMD.EOL); length = packageBuf.length(); } super.visit(node); if (node instanceof ViolationNode) { renderViolation((ViolationNode)node); } if (node instanceof ClassNode) { renderClass((ClassNode)node); } if (node instanceof PackageNode) { renderPackage((PackageNode)node); } // The first node of result tree. if (node.getParent() == null) { packageBuf.append("</table> </body></html>"); try { write("index.html", packageBuf); } catch (Exception e) { throw new RuntimeException("Error while writing HTML report: " + e.getMessage()); } } }
// in src/main/java/net/sourceforge/pmd/lang/dfa/report/ReportHTMLPrintVisitor.java
private void renderClass(ClassNode cnode) { String str = cnode.getClassName(); classBuf.insert(0, "<html><head><title>PMD - " + str + "</title></head><body>" + PMD.EOL + "<h2>Class View</h2>" + "<h3 align=\"center\">Class: " + str + "</h3>" + "<table border=\"\" align=\"center\" cellspacing=\"0\" cellpadding=\"3\">" + " <tr>" + PMD.EOL + "<th>Method</th>" + "<th>Violation</th>" + " </tr>" + PMD.EOL); classBuf.append("</table>" + " </body>" + "</html>"); try { write(str + ".html", classBuf); } catch (Exception e) { throw new RuntimeException("Error while writing HTML report: " + e.getMessage()); } classBuf = new StringBuilder(); packageBuf.insert(this.length, "<tr>" + " <td>-</td>" + " <td><a href=\"" + str + ".html\">" + str + "</a></td>" + " <td>" + cnode.getNumberOfViolations() + "</td>" + "</tr>" + PMD.EOL); cnode.getParent().addNumberOfViolation(cnode.getNumberOfViolations()); }
// in src/main/java/net/sourceforge/pmd/lang/xml/ast/DumpFacade.java
public void initializeWith(Writer writer, String prefix, boolean recurse, XmlNode node) { this.writer = (writer instanceof PrintWriter) ? (PrintWriter) writer : new PrintWriter(writer); this.recurse = recurse; this.dump(node, prefix); try { writer.flush(); } catch (IOException e) { throw new RuntimeException("Problem flushing PrintWriter.", e); } }
// in src/main/java/net/sourceforge/pmd/lang/xml/rule/AbstractDomXmlRule.java
protected void visitDomNode(XmlNode node, Node domNode, RuleContext ctx) { switch (domNode.getNodeType()) { case Node.CDATA_SECTION_NODE: visit(node, (CharacterData) domNode, ctx); break; case Node.COMMENT_NODE: visit(node, (Comment) domNode, ctx); break; case Node.DOCUMENT_NODE: visit(node, (Document) domNode, ctx); break; case Node.DOCUMENT_TYPE_NODE: visit(node, (DocumentType) domNode, ctx); break; case Node.ELEMENT_NODE: visit(node, (Element) domNode, ctx); break; case Node.ENTITY_NODE: visit(node, (Entity) domNode, ctx); break; case Node.ENTITY_REFERENCE_NODE: visit(node, (EntityReference) domNode, ctx); break; case Node.NOTATION_NODE: visit(node, (Notation) domNode, ctx); break; case Node.PROCESSING_INSTRUCTION_NODE: visit(node, (ProcessingInstruction) domNode, ctx); break; case Node.TEXT_NODE: visit(node, (Text) domNode, ctx); break; default: throw new RuntimeException("Unexpected node type: " + domNode.getNodeType() + " on node: " + domNode); } }
// 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 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 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/DumpFacade.java
public void initializeWith(Writer writer, String prefix, boolean recurse, JspNode node) { this.writer = (writer instanceof PrintWriter) ? (PrintWriter) writer : new PrintWriter(writer); this.recurse = recurse; this.visit(node, prefix); try { writer.flush(); } catch (IOException e) { throw new RuntimeException("Problem flushing PrintWriter.", e); } }
// in src/main/java/net/sourceforge/pmd/lang/ast/AbstractNode.java
public int getBeginColumn() { if (beginColumn != -1) { return beginColumn; } else { if (children != null && children.length > 0) { return children[0].getBeginColumn(); } else { throw new RuntimeException("Unable to determine begining line of Node."); } } }
// in src/main/java/net/sourceforge/pmd/lang/ast/AbstractNode.java
public Document getAsDocument() { try { DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); DocumentBuilder db = dbf.newDocumentBuilder(); Document document = db.newDocument(); appendElement(document); return document; } catch (ParserConfigurationException pce) { throw new RuntimeException(pce); } }
// in src/main/java/net/sourceforge/pmd/lang/ast/AbstractNode.java
public boolean hasDescendantMatchingXPath(String xpathString) { try { return !findChildNodesWithXPath(xpathString).isEmpty(); } catch (JaxenException e) { throw new RuntimeException("XPath expression " + xpathString + " failed: " + e.getLocalizedMessage(), e); } }
// in src/main/java/net/sourceforge/pmd/lang/ast/xpath/NodeIterator.java
private int getPositionFromParent(Node contextNode) { Node parentNode = contextNode.jjtGetParent(); for (int i = 0; i < parentNode.jjtGetNumChildren(); i++) { if (parentNode.jjtGetChild(i) == contextNode) { return i; } } throw new RuntimeException("Node was not a child of it's parent ???"); }
// in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AttributeNode.java
Override public Value atomize() throws XPathException { if (value == null) { Object v = attribute.getValue(); // TODO Need to handle the full range of types, is there something Saxon can do to help? if (v instanceof String) { value = new StringValue((String) v); } else if (v instanceof Boolean) { value = BooleanValue.get(((Boolean) v).booleanValue()); } else if (v instanceof Integer) { value = Int64Value.makeIntegerValue((Integer) v); } else if (v == null) { // Ok } else { throw new RuntimeException("Unable to create ValueRepresentaton for attribute value: " + v + " of type " + v.getClass()); } } return value; }
// in src/main/java/net/sourceforge/pmd/lang/java/dfa/StatementAndBraceFinder.java
public void buildDataFlowFor(JavaNode node) { if (!(node instanceof ASTMethodDeclaration) && !(node instanceof ASTConstructorDeclaration)) { throw new RuntimeException("Can't build a data flow for anything other than a method or a constructor"); } this.dataFlow = new Structure(dataFlowHandler); this.dataFlow.createStartNode(node.getBeginLine()); this.dataFlow.createNewNode(node); node.jjtAccept(this, dataFlow); this.dataFlow.createEndNode(node.getEndLine()); Linker linker = new Linker(dataFlowHandler, dataFlow.getBraceStack(), dataFlow.getContinueBreakReturnStack()); try { linker.computePaths(); } catch (LinkerException e) { e.printStackTrace(); } catch (SequenceException e) { e.printStackTrace(); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/ASTTryStatement.java
public ASTFinallyStatement getFinally() { for (int i = 0; i < this.jjtGetNumChildren(); i++) { if (jjtGetChild(i) instanceof ASTFinallyStatement) { return (ASTFinallyStatement) jjtGetChild(i); } } throw new RuntimeException("ASTTryStatement.getFinally called but this try stmt doesn't contain a finally block"); }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/ASTVariableDeclaratorId.java
public Node getTypeNameNode() { if (jjtGetParent() instanceof ASTFormalParameter) { return findTypeNameNode(jjtGetParent()); } else if (jjtGetParent().jjtGetParent() instanceof ASTLocalVariableDeclaration || jjtGetParent().jjtGetParent() instanceof ASTFieldDeclaration) { return findTypeNameNode(jjtGetParent().jjtGetParent()); } throw new RuntimeException("Don't know how to get the type for anything other than ASTLocalVariableDeclaration/ASTFormalParameter/ASTFieldDeclaration"); }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/ASTVariableDeclaratorId.java
public ASTType getTypeNode() { if (jjtGetParent() instanceof ASTFormalParameter) { return ((ASTFormalParameter) jjtGetParent()).getTypeNode(); } else { Node n = jjtGetParent().jjtGetParent(); if (n instanceof ASTLocalVariableDeclaration || n instanceof ASTFieldDeclaration) { return n.getFirstChildOfType(ASTType.class); } } throw new RuntimeException("Don't know how to get the type for anything other than ASTLocalVariableDeclaration/ASTFormalParameter/ASTFieldDeclaration"); }
// 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 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/DumpFacade.java
public void initializeWith(Writer writer, String prefix, boolean recurse, JavaNode node) { this.writer = (writer instanceof PrintWriter) ? (PrintWriter) writer : new PrintWriter(writer); this.recurse = recurse; this.visit(node, prefix); try { writer.flush(); } catch (IOException e) { throw new RuntimeException("Problem flushing PrintWriter.", e); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/ASTType.java
public int getArrayDepth() { if (jjtGetNumChildren() != 0 && (jjtGetChild(0) instanceof ASTReferenceType || jjtGetChild(0) instanceof ASTPrimitiveType)) { return ((Dimensionable) jjtGetChild(0)).getArrayDepth(); } throw new RuntimeException("ASTType.getArrayDepth called, but first child (of " + jjtGetNumChildren() + " total children) is neither a primitive nor a reference type."); }
// in src/main/java/net/sourceforge/pmd/lang/java/symboltable/MethodScope.java
public void addDeclaration(VariableNameDeclaration variableDecl) { if (variableNames.containsKey(variableDecl)) { throw new RuntimeException("Variable " + variableDecl + " is already in the symbol table"); } variableNames.put(variableDecl, new ArrayList<NameOccurrence>()); }
// in src/main/java/net/sourceforge/pmd/lang/java/symboltable/SourceFileScope.java
public ClassScope getEnclosingClassScope() { throw new RuntimeException("getEnclosingClassScope() called on SourceFileScope"); }
// in src/main/java/net/sourceforge/pmd/lang/java/symboltable/SourceFileScope.java
public MethodScope getEnclosingMethodScope() { throw new RuntimeException("getEnclosingMethodScope() called on SourceFileScope"); }
// in src/main/java/net/sourceforge/pmd/lang/java/symboltable/SourceFileScope.java
public void addDeclaration(MethodNameDeclaration decl) { throw new RuntimeException("SourceFileScope.addDeclaration(MethodNameDeclaration decl) called"); }
// in src/main/java/net/sourceforge/pmd/lang/java/symboltable/SourceFileScope.java
public void addDeclaration(VariableNameDeclaration decl) { throw new RuntimeException("SourceFileScope.addDeclaration(VariableNameDeclaration decl) called"); }
// in src/main/java/net/sourceforge/pmd/lang/java/symboltable/SourceFileScope.java
public Map<VariableNameDeclaration, List<NameOccurrence>> getVariableDeclarations() { throw new RuntimeException("PackageScope.getVariableDeclarations() called"); }
// in src/main/java/net/sourceforge/pmd/lang/java/symboltable/NameOccurrence.java
public boolean isOnLeftHandSide() { // I detest this method with every atom of my being Node primaryExpression; if (location.jjtGetParent() instanceof ASTPrimaryExpression) { primaryExpression = location.jjtGetParent().jjtGetParent(); } else if (location.jjtGetParent().jjtGetParent() instanceof ASTPrimaryExpression) { primaryExpression = location.jjtGetParent().jjtGetParent().jjtGetParent(); } else { throw new RuntimeException("Found a NameOccurrence that didn't have an ASTPrimary Expression as parent or grandparent. Parent = " + location.jjtGetParent() + " and grandparent = " + location.jjtGetParent().jjtGetParent()); } if (isStandAlonePostfix(primaryExpression)) { return true; } if (primaryExpression.jjtGetNumChildren() <= 1) { return false; } if (!(primaryExpression.jjtGetChild(1) instanceof ASTAssignmentOperator)) { return false; } if (isPartOfQualifiedName() /* or is an array type */) { return false; } if (isCompoundAssignment(primaryExpression)) { return false; } return true; }
// in src/main/java/net/sourceforge/pmd/lang/java/symboltable/ClassScope.java
public void addDeclaration(VariableNameDeclaration variableDecl) { if (variableNames.containsKey(variableDecl)) { throw new RuntimeException(variableDecl + " is already in the symbol table"); } variableNames.put(variableDecl, new ArrayList<NameOccurrence>()); }
// in src/main/java/net/sourceforge/pmd/lang/java/symboltable/AbstractScope.java
public Map<ClassNameDeclaration, List<NameOccurrence>> getClassDeclarations() { throw new RuntimeException("AbstractScope.getClassDeclarations() was invoked. That shouldn't happen... bug."); }
// in src/main/java/net/sourceforge/pmd/lang/java/symboltable/LocalScope.java
public void addDeclaration(VariableNameDeclaration nameDecl) { if (variableNames.containsKey(nameDecl)) { throw new RuntimeException("Variable " + nameDecl + " is already in the symbol table"); } variableNames.put(nameDecl, new ArrayList<NameOccurrence>()); }
// in src/main/java/net/sourceforge/pmd/lang/rule/properties/factories/BasicPropertyDescriptorFactory.java
public PropertyDescriptor<?> createWith(Map<String, String> valuesById) { throw new RuntimeException("Unimplemented createWith() method in subclass"); }
// in src/main/java/net/sourceforge/pmd/lang/rule/properties/factories/BasicPropertyDescriptorFactory.java
protected static String[] minMaxFrom(Map<String, String> valuesById) { String min = minValueIn(valuesById); String max = maxValueIn(valuesById); if (StringUtil.isEmpty(min) || StringUtil.isEmpty(max)) { throw new RuntimeException("min and max values must be specified"); } return new String[] { min, max }; }
// in src/main/java/net/sourceforge/pmd/lang/rule/xpath/JaxenXPathRuleQuery.java
Override public List<String> getRuleChainVisits() { try { // No Navigator available in this context initializeXPathExpression(null); return super.getRuleChainVisits(); } catch (JaxenException ex) { throw new RuntimeException(ex); } }
// in src/main/java/net/sourceforge/pmd/lang/rule/xpath/SaxonXPathRuleQuery.java
private void initializeXPathExpression() { if (xpathExpression != null) { return; } try { XPathEvaluator xpathEvaluator = new XPathEvaluator(); XPathStaticContext xpathStaticContext = xpathEvaluator.getStaticContext(); // Enable XPath 1.0 compatibility if (XPATH_1_0_COMPATIBILITY.equals(version)) { ((AbstractStaticContext) xpathStaticContext).setBackwardsCompatibilityMode(true); } // Register PMD functions Initializer.initialize((IndependentContext) xpathStaticContext); // Create XPathVariables for later use. It is a Saxon quirk that // XPathVariables must be defined on the static context, and // reused later to associate an actual value on the dynamic context. xpathVariables = new ArrayList<XPathVariable>(); for (PropertyDescriptor<?> propertyDescriptor : super.properties.keySet()) { String name = propertyDescriptor.name(); if (!"xpath".equals(name)) { XPathVariable xpathVariable = xpathStaticContext.declareVariable(null, name); xpathVariables.add(xpathVariable); } } // TODO Come up with a way to make use of RuleChain. I had hacked up // an approach which used Jaxen's stuff, but that only works for // 1.0 compatibility mode. Rather do it right instead of kludging. xpathExpression = xpathEvaluator.createExpression(super.xpath); } catch (XPathException e) { throw new RuntimeException(e); } }
// in src/main/java/net/sourceforge/pmd/RuleSetWriter.java
public void write(RuleSet ruleSet) { try { DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance(); documentBuilderFactory.setNamespaceAware(true); DocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder(); document = documentBuilder.newDocument(); ruleSetFileNames = new HashSet<String>(); Element ruleSetElement = createRuleSetElement(ruleSet); document.appendChild(ruleSetElement); TransformerFactory transformerFactory = TransformerFactory.newInstance(); try { transformerFactory.setAttribute("indent-number", 3); } catch (IllegalArgumentException iae) { //ignore it, specific to one parser } Transformer transformer = transformerFactory.newTransformer(); transformer.setOutputProperty(OutputKeys.METHOD, "xml"); // This is as close to pretty printing as we'll get using standard Java APIs. transformer.setOutputProperty(OutputKeys.INDENT, "yes"); transformer.setOutputProperty(OutputKeys.ENCODING, "UTF-8"); transformer.transform(new DOMSource(document), new StreamResult(outputStream)); } catch (DOMException e) { throw new RuntimeException(e); } catch (FactoryConfigurationError e) { throw new RuntimeException(e); } catch (ParserConfigurationException e) { throw new RuntimeException(e); } catch (TransformerException e) { throw new RuntimeException(e); } }
// in src/main/java/net/sourceforge/pmd/renderers/IDEAJRenderer.java
public String clipPath(String fullFilename) { for (String path : paths) { if (fullFilename.startsWith(path)) { return fullFilename.substring(path.length() + 1); } } throw new RuntimeException("Couldn't find src path for " + fullFilename); }
// in src/main/java/net/sourceforge/pmd/RuleSet.java
public void addRuleByReference(String ruleSetFileName, Rule rule) { if (StringUtil.isEmpty(ruleSetFileName)) { throw new RuntimeException("Adding a rule by reference is not allowed with an empty rule set file name."); } if (rule == null) { throw new IllegalArgumentException("Cannot add a null rule reference to a RuleSet"); } if (!(rule instanceof RuleReference)) { RuleSetReference ruleSetReference = new RuleSetReference(); ruleSetReference.setRuleSetFileName(ruleSetFileName); RuleReference ruleReference = new RuleReference(); ruleReference.setRule(rule); ruleReference.setRuleSetReference(ruleSetReference); rule = ruleReference; } rules.add(rule); }
// in src/main/java/net/sourceforge/pmd/RuleSet.java
public void addRuleSetByReference(RuleSet ruleSet, boolean allRules) { if (StringUtil.isEmpty(ruleSet.getFileName())) { throw new RuntimeException("Adding a rule by reference is not allowed with an empty rule set file name."); } RuleSetReference ruleSetReference = new RuleSetReference(ruleSet.getFileName()); ruleSetReference.setAllRules(allRules); for (Rule rule : ruleSet.getRules()) { RuleReference ruleReference = new RuleReference(rule, ruleSetReference); rules.add(ruleReference); } }
// in src/main/java/net/sourceforge/pmd/util/CollectionUtil.java
public static <K, V> Map<K, V> mapFrom(K[] keys, V[] values) { if (keys.length != values.length) { throw new RuntimeException("mapFrom keys and values arrays have different sizes"); } Map<K, V> map = new HashMap<K, V>(keys.length); for (int i = 0; i < keys.length; i++) { map.put(keys[i], values[i]); } return map; }
// in src/main/java/net/sourceforge/pmd/util/FileUtil.java
private static List<DataSource> collect(List<DataSource> dataSources, String fileLocation, FilenameFilter filenameFilter) { File file = new File(fileLocation); if (!file.exists()) { throw new RuntimeException("File " + file.getName() + " doesn't exist"); } if (!file.isDirectory()) { if (fileLocation.endsWith(".zip") || fileLocation.endsWith(".jar")) { ZipFile zipFile; try { zipFile = new ZipFile(fileLocation); Enumeration<? extends ZipEntry> e = zipFile.entries(); while (e.hasMoreElements()) { ZipEntry zipEntry = e.nextElement(); if (filenameFilter.accept(null, zipEntry.getName())) { dataSources.add(new ZipDataSource(zipFile, zipEntry)); } } } catch (IOException ze) { throw new RuntimeException("Archive file " + file.getName() + " can't be opened"); } } else { dataSources.add(new FileDataSource(file)); } } else { // Match files, or directories which are not excluded. // FUTURE Make the excluded directories be some configurable option Filter<File> filter = new OrFilter<File>(Filters.toFileFilter(filenameFilter), new AndFilter<File>(Filters .getDirectoryFilter(), Filters.toNormalizedFileFilter(Filters.buildRegexFilterExcludeOverInclude( null, Collections.singletonList("SCCS"))))); FileFinder finder = new FileFinder(); List<File> files = finder.findFilesFrom(file.getAbsolutePath(), Filters.toFilenameFilter(filter), true); for (File f : files) { dataSources.add(new FileDataSource(f)); } } return dataSources; }
// in src/main/java/net/sourceforge/pmd/util/designer/Designer.java
private int selectedLanguageVersionIndex() { for (int i = 0; i < languageVersionMenuItems.length; i++) { if (languageVersionMenuItems[i].isSelected()) { return i; } } throw new RuntimeException("Initial default language version not specified"); }
// in src/main/java/net/sourceforge/pmd/util/designer/CodeEditorTextPane.java
public String getLine(int number) { String[] lines= getLines(); if (number < lines.length) { return lines[number]; } throw new RuntimeException("Line number " + number + " not found"); }
// in src/main/java/net/sourceforge/pmd/util/designer/CodeEditorTextPane.java
private int getPosition(String[] lines, int line, int column) { int pos = 0; for (int count = 0; count < lines.length;) { String tok = lines[count++]; if (count == line) { int linePos = 0; int i; for (i = 0; linePos < column; i++) { linePos++; if (tok.charAt(i) == '\t') { linePos--; linePos += 8 - (linePos & 07); } } return pos + i - 1; } pos += tok.length() + 1; } throw new RuntimeException("Line " + line + " not found"); }
29
            
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
catch (ClassNotFoundException e) { throw new RuntimeException(e); }
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
catch (NoSuchFieldException e) { throw new RuntimeException(e); }
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
catch (NoSuchMethodException e) { throw new RuntimeException(e); }
// in src/main/java/net/sourceforge/pmd/dcd/ClassLoaderUtil.java
catch (NoSuchMethodException e) { throw new RuntimeException(e); }
// in src/main/java/net/sourceforge/pmd/dcd/graph/UsageGraphBuilder.java
catch (IOException e) { throw new RuntimeException("For " + name + ": " + e.getMessage(), e); }
// in src/main/java/net/sourceforge/pmd/cpd/SourceCode.java
catch (Exception e) { e.printStackTrace(); throw new RuntimeException("Problem while reading " + getFileName() + ":" + e.getMessage()); }
// in src/main/java/net/sourceforge/pmd/RuleSetFactory.java
catch (IOException ioe) { throw new RuntimeException("Couldn't find " + rulesetsProperties + "; please ensure that the rulesets directory is on the classpath. The current classpath is: " + System.getProperty("java.class.path")); }
// in src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/EcmascriptTreeBuilder.java
catch (SecurityException e) { throw new RuntimeException(e); }
// in src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/EcmascriptTreeBuilder.java
catch (NoSuchMethodException e) { throw new RuntimeException(e); }
// in src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/EcmascriptTreeBuilder.java
catch (InstantiationException e) { throw new RuntimeException(e); }
// in src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/EcmascriptTreeBuilder.java
catch (IllegalAccessException e) { throw new RuntimeException(e); }
// in src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/EcmascriptTreeBuilder.java
catch (InvocationTargetException e) { throw new RuntimeException(e.getTargetException()); }
// in src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/DumpFacade.java
catch (IOException e) { throw new RuntimeException("Problem flushing PrintWriter.", e); }
// in src/main/java/net/sourceforge/pmd/lang/dfa/report/ReportHTMLPrintVisitor.java
catch (Exception e) { throw new RuntimeException("Error while writing HTML report: " + e.getMessage()); }
// in src/main/java/net/sourceforge/pmd/lang/dfa/report/ReportHTMLPrintVisitor.java
catch (Exception e) { throw new RuntimeException("Error while writing HTML report: " + e.getMessage()); }
// in src/main/java/net/sourceforge/pmd/lang/xml/ast/DumpFacade.java
catch (IOException e) { throw new RuntimeException("Problem flushing PrintWriter.", e); }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/DumpFacade.java
catch (IOException e) { throw new RuntimeException("Problem flushing PrintWriter.", e); }
// in src/main/java/net/sourceforge/pmd/lang/ast/AbstractNode.java
catch (ParserConfigurationException pce) { throw new RuntimeException(pce); }
// in src/main/java/net/sourceforge/pmd/lang/ast/AbstractNode.java
catch (JaxenException e) { throw new RuntimeException("XPath expression " + xpathString + " failed: " + e.getLocalizedMessage(), e); }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/DumpFacade.java
catch (IOException e) { throw new RuntimeException("Problem flushing PrintWriter.", e); }
// in src/main/java/net/sourceforge/pmd/lang/rule/xpath/JaxenXPathRuleQuery.java
catch (JaxenException ex) { throw new RuntimeException(ex); }
// in src/main/java/net/sourceforge/pmd/lang/rule/xpath/JaxenXPathRuleQuery.java
catch (JaxenException ex) { throw new RuntimeException(ex); }
// in src/main/java/net/sourceforge/pmd/lang/rule/xpath/SaxonXPathRuleQuery.java
catch (XPathException e) { throw new RuntimeException(super.xpath + " had problem: " + e.getMessage(), e); }
// in src/main/java/net/sourceforge/pmd/lang/rule/xpath/SaxonXPathRuleQuery.java
catch (XPathException e) { throw new RuntimeException(e); }
// in src/main/java/net/sourceforge/pmd/RuleSetWriter.java
catch (DOMException e) { throw new RuntimeException(e); }
// in src/main/java/net/sourceforge/pmd/RuleSetWriter.java
catch (FactoryConfigurationError e) { throw new RuntimeException(e); }
// in src/main/java/net/sourceforge/pmd/RuleSetWriter.java
catch (ParserConfigurationException e) { throw new RuntimeException(e); }
// in src/main/java/net/sourceforge/pmd/RuleSetWriter.java
catch (TransformerException e) { throw new RuntimeException(e); }
// in src/main/java/net/sourceforge/pmd/util/FileUtil.java
catch (IOException ze) { throw new RuntimeException("Archive file " + file.getName() + " can't be opened"); }
1
            
// in src/main/java/net/sourceforge/pmd/RuleSetFactory.java
private static RuleSet classNotFoundProblem(Exception ex) throws RuntimeException { ex.printStackTrace(); throw new RuntimeException("Couldn't find the class " + ex.getMessage()); }
4
            
// in src/main/java/net/sourceforge/pmd/cpd/GUI.java
catch (RuntimeException t) { t.printStackTrace(); JOptionPane.showMessageDialog(frame, "Halted due to " + t.getClass().getName() + "; " + t.getMessage()); }
// in src/main/java/net/sourceforge/pmd/processor/PmdRunnable.java
catch (RuntimeException re) { addErrorAndShutdown(report, re,"RuntimeException during processing"); }
// in src/main/java/net/sourceforge/pmd/processor/MonoThreadProcessor.java
catch (RuntimeException re) { // unexpected exception: log and stop executor service addError(report, "RuntimeException while processing file", re, niceFileName); }
// in src/main/java/net/sourceforge/pmd/ant/PMDTask.java
catch (RuntimeException pmde) { handleError(ctx, errorReport, pmde); }
0 0
unknown (Lib) SAXException 0 0 0 4
            
// in src/main/java/net/sourceforge/pmd/RuleSetFactory.java
catch (SAXException se) { return classNotFoundProblem(se); }
// in src/main/java/net/sourceforge/pmd/lang/xml/ast/XmlParser.java
catch (SAXException e) { throw new ParseException(e); }
// in src/main/java/net/sourceforge/pmd/renderers/XSLTRenderer.java
catch (SAXException e) { e.printStackTrace(); }
// in src/main/java/net/sourceforge/pmd/util/designer/Designer.java
catch (SAXException e) { e.printStackTrace(); }
1
            
// in src/main/java/net/sourceforge/pmd/lang/xml/ast/XmlParser.java
catch (SAXException e) { throw new ParseException(e); }
0
unknown (Lib) SecurityException 0 0 2
            
// in src/main/java/net/sourceforge/pmd/util/log/AntLogHandler.java
public void close() throws SecurityException { }
// in src/main/java/net/sourceforge/pmd/util/log/ConsoleLogHandler.java
public void close() throws SecurityException { }
1
            
// in src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/EcmascriptTreeBuilder.java
catch (SecurityException e) { throw new RuntimeException(e); }
1
            
// in src/main/java/net/sourceforge/pmd/lang/ecmascript/ast/EcmascriptTreeBuilder.java
catch (SecurityException e) { throw new RuntimeException(e); }
1
checked (Domain) SequenceException
public class SequenceException extends Exception {

    public SequenceException() {
        super("Sequence error."); //TODO redefinition
    }

    public SequenceException(String message) {
        super(message);
    }
}
1
            
// in src/main/java/net/sourceforge/pmd/lang/dfa/Linker.java
public void computePaths() throws LinkerException, SequenceException { // Returns true if there are more sequences, computes the first and // the last index of the sequence. SequenceChecker sc = new SequenceChecker(braceStack); while (!sc.run()) { if (sc.getFirstIndex() < 0 || sc.getLastIndex() < 0) { throw new SequenceException("computePaths(): return index < 0"); } StackObject firstStackObject = braceStack.get(sc.getFirstIndex()); switch (firstStackObject.getType()) { case NodeType.IF_EXPR: int x = sc.getLastIndex() - sc.getFirstIndex(); if (x == 2) { this.computeIf(sc.getFirstIndex(), sc.getFirstIndex() + 1, sc.getLastIndex()); } else if (x == 1) { this.computeIf(sc.getFirstIndex(), sc.getLastIndex()); } else { System.out.println("Error - computePaths 1"); } break; case NodeType.WHILE_EXPR: this.computeWhile(sc.getFirstIndex(), sc.getLastIndex()); break; case NodeType.SWITCH_START: this.computeSwitch(sc.getFirstIndex(), sc.getLastIndex()); break; case NodeType.FOR_INIT: case NodeType.FOR_EXPR: case NodeType.FOR_UPDATE: case NodeType.FOR_BEFORE_FIRST_STATEMENT: this.computeFor(sc.getFirstIndex(), sc.getLastIndex()); break; case NodeType.DO_BEFORE_FIRST_STATEMENT: this.computeDo(sc.getFirstIndex(), sc.getLastIndex()); break; default: } for (int y = sc.getLastIndex(); y >= sc.getFirstIndex(); y--) { braceStack.remove(y); } } while (!continueBreakReturnStack.isEmpty()) { StackObject stackObject = continueBreakReturnStack.get(0); DataFlowNode node = stackObject.getDataFlowNode(); switch (stackObject.getType()) { case NodeType.THROW_STATEMENT: // do the same like a return case NodeType.RETURN_STATEMENT: // remove all children (should contain only one child) node.removePathToChild(node.getChildren().get(0)); DataFlowNode lastNode = node.getFlow().get(node.getFlow().size() - 1); node.addPathToChild(lastNode); continueBreakReturnStack.remove(0); break; case NodeType.BREAK_STATEMENT: DataFlowNode last = getNodeToBreakStatement(node); node.removePathToChild(node.getChildren().get(0)); node.addPathToChild(last); continueBreakReturnStack.remove(0); break; case NodeType.CONTINUE_STATEMENT: //List cList = node.getFlow(); /* traverse up the tree and find the first loop start node */ /* for(int i = cList.indexOf(node)-1;i>=0;i--) { IDataFlowNode n = (IDataFlowNode)cList.get(i); if(n.isType(NodeType.FOR_UPDATE) || n.isType(NodeType.FOR_EXPR) || n.isType(NodeType.WHILE_EXPR)) { */ /* * while(..) { * while(...) { * ... * } * continue; * } * * Without this Expression he continues the second * WHILE loop. The continue statement and the while loop * have to be in different scopes. * * TODO An error occurs if "continue" is even nested in * scopes other than local loop scopes, like "if". * The result is, that the data flow isn't build right * and the pathfinder runs in invinity loop. * */ /* if(n.getNode().getScope().equals(node.getNode().getScope())) { System.err.println("equals"); continue; } else { System.err.println("don't equals"); } //remove all children (should contain only one child) node.removePathToChild((IDataFlowNode)node.getChildren().get(0)); node.addPathToChild(n); cbrStack.remove(0); break; }else if(n.isType(NodeType.DO_BEFOR_FIRST_STATEMENT)) { IDataFlowNode inode = (IDataFlowNode)n.getFlow().get(n.getIndex()1); for(int j=0;j<inode.getParents().size();j) { IDataFlowNode parent = (IDataFlowNode)inode.getParents().get(j); if(parent.isType(NodeType.DO_EXPR)) { node.removePathToChild((IDataFlowNode)node.getChildren().get(0)); node.addPathToChild(parent); cbrStack.remove(0); break; } } break; } } */ continueBreakReturnStack.remove(0); // delete this statement if you uncomment the stuff above break; default: // Do nothing break; } } }
0 1
            
// in src/main/java/net/sourceforge/pmd/lang/dfa/Linker.java
public void computePaths() throws LinkerException, SequenceException { // Returns true if there are more sequences, computes the first and // the last index of the sequence. SequenceChecker sc = new SequenceChecker(braceStack); while (!sc.run()) { if (sc.getFirstIndex() < 0 || sc.getLastIndex() < 0) { throw new SequenceException("computePaths(): return index < 0"); } StackObject firstStackObject = braceStack.get(sc.getFirstIndex()); switch (firstStackObject.getType()) { case NodeType.IF_EXPR: int x = sc.getLastIndex() - sc.getFirstIndex(); if (x == 2) { this.computeIf(sc.getFirstIndex(), sc.getFirstIndex() + 1, sc.getLastIndex()); } else if (x == 1) { this.computeIf(sc.getFirstIndex(), sc.getLastIndex()); } else { System.out.println("Error - computePaths 1"); } break; case NodeType.WHILE_EXPR: this.computeWhile(sc.getFirstIndex(), sc.getLastIndex()); break; case NodeType.SWITCH_START: this.computeSwitch(sc.getFirstIndex(), sc.getLastIndex()); break; case NodeType.FOR_INIT: case NodeType.FOR_EXPR: case NodeType.FOR_UPDATE: case NodeType.FOR_BEFORE_FIRST_STATEMENT: this.computeFor(sc.getFirstIndex(), sc.getLastIndex()); break; case NodeType.DO_BEFORE_FIRST_STATEMENT: this.computeDo(sc.getFirstIndex(), sc.getLastIndex()); break; default: } for (int y = sc.getLastIndex(); y >= sc.getFirstIndex(); y--) { braceStack.remove(y); } } while (!continueBreakReturnStack.isEmpty()) { StackObject stackObject = continueBreakReturnStack.get(0); DataFlowNode node = stackObject.getDataFlowNode(); switch (stackObject.getType()) { case NodeType.THROW_STATEMENT: // do the same like a return case NodeType.RETURN_STATEMENT: // remove all children (should contain only one child) node.removePathToChild(node.getChildren().get(0)); DataFlowNode lastNode = node.getFlow().get(node.getFlow().size() - 1); node.addPathToChild(lastNode); continueBreakReturnStack.remove(0); break; case NodeType.BREAK_STATEMENT: DataFlowNode last = getNodeToBreakStatement(node); node.removePathToChild(node.getChildren().get(0)); node.addPathToChild(last); continueBreakReturnStack.remove(0); break; case NodeType.CONTINUE_STATEMENT: //List cList = node.getFlow(); /* traverse up the tree and find the first loop start node */ /* for(int i = cList.indexOf(node)-1;i>=0;i--) { IDataFlowNode n = (IDataFlowNode)cList.get(i); if(n.isType(NodeType.FOR_UPDATE) || n.isType(NodeType.FOR_EXPR) || n.isType(NodeType.WHILE_EXPR)) { */ /* * while(..) { * while(...) { * ... * } * continue; * } * * Without this Expression he continues the second * WHILE loop. The continue statement and the while loop * have to be in different scopes. * * TODO An error occurs if "continue" is even nested in * scopes other than local loop scopes, like "if". * The result is, that the data flow isn't build right * and the pathfinder runs in invinity loop. * */ /* if(n.getNode().getScope().equals(node.getNode().getScope())) { System.err.println("equals"); continue; } else { System.err.println("don't equals"); } //remove all children (should contain only one child) node.removePathToChild((IDataFlowNode)node.getChildren().get(0)); node.addPathToChild(n); cbrStack.remove(0); break; }else if(n.isType(NodeType.DO_BEFOR_FIRST_STATEMENT)) { IDataFlowNode inode = (IDataFlowNode)n.getFlow().get(n.getIndex()1); for(int j=0;j<inode.getParents().size();j) { IDataFlowNode parent = (IDataFlowNode)inode.getParents().get(j); if(parent.isType(NodeType.DO_EXPR)) { node.removePathToChild((IDataFlowNode)node.getChildren().get(0)); node.addPathToChild(parent); cbrStack.remove(0); break; } } break; } } */ continueBreakReturnStack.remove(0); // delete this statement if you uncomment the stuff above break; default: // Do nothing break; } } }
1
            
// in src/main/java/net/sourceforge/pmd/lang/java/dfa/StatementAndBraceFinder.java
catch (SequenceException e) { e.printStackTrace(); }
0 0
oops (Domain) StartAndEndTagMismatchException
public class StartAndEndTagMismatchException extends SyntaxErrorException {

    public static final String START_END_TAG_MISMATCH_RULE_NAME
            = "Start and End Tags of an XML Element must match.";

    private int startLine, endLine, startColumn, endColumn;
    private String startTagName, endTagName;

    /**
     * Public constructor.
     *
     * @param startLine
     * @param startColumn
     * @param startTagName
     * @param endLine
     * @param endColumn
     * @param endTagName
     */
    public StartAndEndTagMismatchException(int startLine, int startColumn, String startTagName,
                                           int endLine, int endColumn, String endTagName) {
        super(endLine, START_END_TAG_MISMATCH_RULE_NAME);
        this.startLine = startLine;
        this.startColumn = startColumn;
        this.startTagName = startTagName;

        this.endLine = endLine;
        this.endColumn = endColumn;
        this.endTagName = endTagName;
    }


    /**
     * @return Returns the endColumn.
     */
    public int getEndColumn() {
        return endColumn;
    }

    /**
     * @return Returns the endLine.
     */
    public int getEndLine() {
        return endLine;
    }

    /**
     * @return Returns the startColumn.
     */
    public int getStartColumn() {
        return startColumn;
    }

    /**
     * @return Returns the startLine.
     */
    public int getStartLine() {
        return startLine;
    }

    /* (non-Javadoc)
     * @see java.lang.Throwable#getMessage()
     */
    public String getMessage() {
        return "The start-tag of element \"" + startTagName + "\" (line "
                + startLine + ", column " + startColumn
                + ") does not correspond to the end-tag found: \""
                + endTagName + "\" (line " + endLine
                + ", column " + endColumn + ").";
    }
}
1
            
// 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); } } }
0 0 0 0 0
oops (Domain) SyntaxErrorException
public abstract class SyntaxErrorException extends ParseException {
    private int line;
    private String ruleName;

    /**
     * @param line
     * @param ruleName
     */
    public SyntaxErrorException(int line, String ruleName) {
        super();
        this.line = line;
        this.ruleName = ruleName;
    }

    /**
     * @return Returns the line.
     */
    public int getLine() {
        return line;
    }

    /**
     * @return Returns the ruleName.
     */
    public String getRuleName() {
        return ruleName;
    }
}
0 0 0 0 0 0
checked (Lib) Throwable 0 0 1
            
// in src/main/java/net/sourceforge/pmd/lang/xml/ast/XmlParser.java
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { // XmlNode method? if (method.getDeclaringClass().isAssignableFrom(XmlNode.class) && !"java.lang.Object".equals(method.getDeclaringClass().getName())) { if ("jjtGetNumChildren".equals(method.getName())) { return node.hasChildNodes() ? node.getChildNodes().getLength() : 0; } else if ("jjtGetChild".equals(method.getName())) { return createProxy(node.getChildNodes().item(((Integer) args[0]).intValue())); } else if ("getImage".equals(method.getName())) { if (node instanceof Text) { return ((Text) node).getData(); } else { return null; } } else if ("jjtGetParent".equals(method.getName())) { Node parent = node.getParentNode(); if (parent != null && !(parent instanceof Document)) { return createProxy(parent); } else { return null; } } else if ("getAttributeIterator".equals(method.getName())) { List<Iterator<Attribute>> iterators = new ArrayList<Iterator<Attribute>>(); // Expose DOM Attributes final NamedNodeMap attributes = node.getAttributes(); iterators.add(new Iterator<Attribute>() { private int index; public boolean hasNext() { return attributes != null && index < attributes.getLength(); } public Attribute next() { Node attributeNode = attributes.item(index++); return new Attribute(createProxy(node), attributeNode.getNodeName(), attributeNode .getNodeValue()); } public void remove() { throw new UnsupportedOperationException(); } }); // Expose Text/CDATA nodes to have an 'Image' attribute like AST Nodes if (proxy instanceof Text) { iterators.add(Collections.singletonList( new Attribute((net.sourceforge.pmd.lang.ast.Node) proxy, "Image", ((Text) proxy) .getData())).iterator()); } // Expose Java Attributes // iterators.add(new AttributeAxisIterator((net.sourceforge.pmd.lang.ast.Node) p)); return new CompoundIterator<Attribute>(iterators.toArray(new Iterator[iterators.size()])); } else if ("getBeginLine".equals(method.getName())) { return Integer.valueOf(-1); } else if ("getBeginColumn".equals(method.getName())) { return Integer.valueOf(-1); } else if ("getEndLine".equals(method.getName())) { return Integer.valueOf(-1); } else if ("getEndColumn".equals(method.getName())) { return Integer.valueOf(-1); } else if ("getNode".equals(method.getName())) { return node; } else if ("getUserData".equals(method.getName())) { return userData; } else if ("setUserData".equals(method.getName())) { userData = args[0]; return null; } throw new UnsupportedOperationException("Method not supported for XmlNode: " + method); }
116
            
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/ast/JavaCharStream.java
catch (Throwable t) { throw new Error(t.getMessage()); }
// in src/main/java/net/sourceforge/pmd/lang/ast/SimpleCharStream.java
catch (Throwable t) { throw new Error(t.getMessage()); }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/typeresolution/ClassTypeResolver.java
catch (Throwable e) { }
// in src/main/java/net/sourceforge/pmd/lang/java/rule/junit/AbstractJUnitRule.java
catch (Throwable t) { c = null;
// in src/main/java/net/sourceforge/pmd/lang/java/rule/junit/AbstractJUnitRule.java
catch (Throwable t) { c = null; }
// in src/main/java/net/sourceforge/pmd/lang/java/rule/logging/MoreThanOneLoggerRule.java
catch (Throwable t) { c = null; }
// in src/main/java/net/sourceforge/pmd/lang/java/rule/logging/MoreThanOneLoggerRule.java
catch (Throwable t) { c = null; }
329
            
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/ast/JavaCharStream.java
catch (Throwable t) { throw new Error(t.getMessage()); }
// in src/main/java/net/sourceforge/pmd/lang/ast/SimpleCharStream.java
catch (Throwable t) { throw new Error(t.getMessage()); }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParser.java
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;} }
2
runtime (Domain) TokenMgrError
public class TokenMgrError extends RuntimeException
{

   /*
    * Ordinals for various reasons why an Error of this type can be thrown.
    */

   /**
    * Lexical error occurred.
    */
   public static final int LEXICAL_ERROR = 0;

   /**
    * An attempt was made to create a second instance of a static token manager.
    */
   public static final int STATIC_LEXER_ERROR = 1;

   /**
    * Tried to change to an invalid lexical state.
    */
   public static final int INVALID_LEXICAL_STATE = 2;

   /**
    * Detected (and bailed out of) an infinite loop in the token manager.
    */
   public static final int LOOP_DETECTED = 3;

   /**
    * Indicates the reason why the exception is thrown. It will have
    * one of the above 4 values.
    */
   int errorCode;

   /**
    * Replaces unprintable characters by their escaped (or unicode escaped)
    * equivalents in the given string
    */
   protected static final String addEscapes(String str) {
      StringBuffer retval = new StringBuffer();
      char ch;
      for (int i = 0; i < str.length(); i++) {
        switch (str.charAt(i))
        {
           case 0 :
              continue;
           case '\b':
              retval.append("\\b");
              continue;
           case '\t':
              retval.append("\\t");
              continue;
           case '\n':
              retval.append("\\n");
              continue;
           case '\f':
              retval.append("\\f");
              continue;
           case '\r':
              retval.append("\\r");
              continue;
           case '\"':
              retval.append("\\\"");
              continue;
           case '\'':
              retval.append("\\\'");
              continue;
           case '\\':
              retval.append("\\\\");
              continue;
           default:
              if ((ch = str.charAt(i)) < 0x20 || ch > 0x7e) {
                 String s = "0000" + Integer.toString(ch, 16);
                 retval.append("\\u" + s.substring(s.length() - 4, s.length()));
              } else {
                 retval.append(ch);
              }
              continue;
        }
      }
      return retval.toString();
   }

   /**
    * Returns a detailed message for the Error when it is thrown by the
    * token manager to indicate a lexical error.
    * Parameters :
    *    EOFSeen     : indicates if EOF caused the lexical error
    *    curLexState : lexical state in which this error occurred
    *    errorLine   : line number when the error occurred
    *    errorColumn : column number when the error occurred
    *    errorAfter  : prefix that was seen before this error occurred
    *    curchar     : the offending character
    * Note: You can customize the lexical error message by modifying this method.
    */
   protected static String LexicalError(boolean EOFSeen, int lexState, int errorLine, int errorColumn, String errorAfter, char curChar) {
      return("Lexical error in file " + AbstractTokenManager.getFileName() + " at line " +
           errorLine + ", column " +
           errorColumn + ".  Encountered: " +
           (EOFSeen ? "<EOF> " : ("\"" + addEscapes(String.valueOf(curChar)) + "\"") + " (" + (int)curChar + "), ") +
           "after : \"" + addEscapes(errorAfter) + "\"");
   }

   /**
    * You can also modify the body of this method to customize your error messages.
    * For example, cases like LOOP_DETECTED and INVALID_LEXICAL_STATE are not
    * of end-users concern, so you can return something like :
    *
    *     "Internal Error : Please file a bug report .... "
    *
    * from this method for such cases in the release version of your parser.
    */
   public String getMessage() {
      return super.getMessage();
   }

   /*
    * Constructors of various flavors follow.
    */

   /** No arg constructor. */
   public TokenMgrError() {
   }

   /** Constructor with message and reason. */
   public TokenMgrError(String message, int reason) {
      super(message);
      errorCode = reason;
   }

   /** Full Constructor. */
   public TokenMgrError(boolean EOFSeen, int lexState, int errorLine, int errorColumn, String errorAfter, char curChar, int reason) {
      this(LexicalError(EOFSeen, lexState, errorLine, errorColumn, errorAfter, curChar), reason);
   }
}
6
            
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
public void SwitchTo(int lexState) { if (lexState >= 18 || lexState < 0) throw new TokenMgrError("Error: Ignoring invalid lexical state : " + lexState + ". State unchanged.", TokenMgrError.INVALID_LEXICAL_STATE); else curLexState = lexState; }
// in src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserTokenManager.java
public Token getNextToken() { Token specialToken = null; Token matchedToken; int curPos = 0; EOFLoop : for (;;) { try { curChar = input_stream.BeginToken(); } catch(java.io.IOException e) { jjmatchedKind = 0; matchedToken = jjFillToken(); matchedToken.specialToken = specialToken; return matchedToken; } image = jjimage; image.setLength(0); jjimageLen = 0; switch(curLexState) { case 0: jjmatchedKind = 0x7fffffff; jjmatchedPos = 0; curPos = jjMoveStringLiteralDfa0_0(); if (jjmatchedPos == 0 && jjmatchedKind > 77) { jjmatchedKind = 77; } break; case 1: jjmatchedKind = 0x7fffffff; jjmatchedPos = 0; curPos = jjMoveStringLiteralDfa0_1(); if (jjmatchedPos == 0 && jjmatchedKind > 76) { jjmatchedKind = 76; } break; case 2: jjmatchedKind = 0x7fffffff; jjmatchedPos = 0; curPos = jjMoveStringLiteralDfa0_2(); break; case 3: jjmatchedKind = 0x7fffffff; jjmatchedPos = 0; curPos = jjMoveStringLiteralDfa0_3(); break; case 4: jjmatchedKind = 0x7fffffff; jjmatchedPos = 0; curPos = jjMoveStringLiteralDfa0_4(); if (jjmatchedPos == 0 && jjmatchedKind > 57) { jjmatchedKind = 57; } break; case 5: jjmatchedKind = 0x7fffffff; jjmatchedPos = 0; curPos = jjMoveStringLiteralDfa0_5(); if (jjmatchedPos == 0 && jjmatchedKind > 54) { jjmatchedKind = 54; } break; case 6: jjmatchedKind = 0x7fffffff; jjmatchedPos = 0; curPos = jjMoveStringLiteralDfa0_6(); break; case 7: jjmatchedKind = 0x7fffffff; jjmatchedPos = 0; curPos = jjMoveStringLiteralDfa0_7(); break; case 8: jjmatchedKind = 0x7fffffff; jjmatchedPos = 0; curPos = jjMoveStringLiteralDfa0_8(); break; case 9: jjmatchedKind = 0x7fffffff; jjmatchedPos = 0; curPos = jjMoveStringLiteralDfa0_9(); break; case 10: jjmatchedKind = 0x7fffffff; jjmatchedPos = 0; curPos = jjMoveStringLiteralDfa0_10(); break; case 11: jjmatchedKind = 0x7fffffff; jjmatchedPos = 0; curPos = jjMoveStringLiteralDfa0_11(); break; case 12: jjmatchedKind = 0x7fffffff; jjmatchedPos = 0; curPos = jjMoveStringLiteralDfa0_12(); if (jjmatchedPos == 0 && jjmatchedKind > 63) { jjmatchedKind = 63; } break; case 13: jjmatchedKind = 0x7fffffff; jjmatchedPos = 0; curPos = jjMoveStringLiteralDfa0_13(); break; case 14: jjmatchedKind = 0x7fffffff; jjmatchedPos = 0; curPos = jjMoveStringLiteralDfa0_14(); break; case 15: jjmatchedKind = 0x7fffffff; jjmatchedPos = 0; curPos = jjMoveStringLiteralDfa0_15(); break; case 16: jjmatchedKind = 0x7fffffff; jjmatchedPos = 0; curPos = jjMoveStringLiteralDfa0_16(); break; case 17: jjmatchedKind = 0x7fffffff; jjmatchedPos = 0; curPos = jjMoveStringLiteralDfa0_17(); break; } if (jjmatchedKind != 0x7fffffff) { if (jjmatchedPos + 1 < curPos) input_stream.backup(curPos - jjmatchedPos - 1); if ((jjtoToken[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L) { matchedToken = jjFillToken(); matchedToken.specialToken = specialToken; TokenLexicalActions(matchedToken); if (jjnewLexState[jjmatchedKind] != -1) curLexState = jjnewLexState[jjmatchedKind]; return matchedToken; } else { if ((jjtoSpecial[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L) { matchedToken = jjFillToken(); if (specialToken == null) specialToken = matchedToken; else { matchedToken.specialToken = specialToken; specialToken = (specialToken.next = matchedToken); } } if (jjnewLexState[jjmatchedKind] != -1) curLexState = jjnewLexState[jjmatchedKind]; continue EOFLoop; } } int error_line = input_stream.getEndLine(); int error_column = input_stream.getEndColumn(); String error_after = null; boolean EOFSeen = false; try { input_stream.readChar(); input_stream.backup(1); } catch (java.io.IOException e1) { EOFSeen = true; error_after = curPos <= 1 ? "" : input_stream.GetImage(); if (curChar == '\n' || curChar == '\r') { error_line++; error_column = 0; } else error_column++; } if (!EOFSeen) { input_stream.backup(1); error_after = curPos <= 1 ? "" : input_stream.GetImage(); } throw new TokenMgrError(EOFSeen, curLexState, error_line, error_column, error_after, curChar, TokenMgrError.LEXICAL_ERROR); } }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParserTokenManager.java
public void SwitchTo(int lexState) { if (lexState >= 3 || lexState < 0) throw new TokenMgrError("Error: Ignoring invalid lexical state : " + lexState + ". State unchanged.", TokenMgrError.INVALID_LEXICAL_STATE); else curLexState = lexState; }
// in src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParserTokenManager.java
public Token getNextToken() { Token specialToken = null; Token matchedToken; int curPos = 0; EOFLoop : for (;;) { try { curChar = input_stream.BeginToken(); } catch(java.io.IOException e) { jjmatchedKind = 0; matchedToken = jjFillToken(); matchedToken.specialToken = specialToken; return matchedToken; } image = jjimage; image.setLength(0); jjimageLen = 0; for (;;) { switch(curLexState) { case 0: jjmatchedKind = 0x7fffffff; jjmatchedPos = 0; curPos = jjMoveStringLiteralDfa0_0(); break; case 1: jjmatchedKind = 0x7fffffff; jjmatchedPos = 0; curPos = jjMoveStringLiteralDfa0_1(); if (jjmatchedPos == 0 && jjmatchedKind > 11) { jjmatchedKind = 11; } break; case 2: jjmatchedKind = 0x7fffffff; jjmatchedPos = 0; curPos = jjMoveStringLiteralDfa0_2(); if (jjmatchedPos == 0 && jjmatchedKind > 11) { jjmatchedKind = 11; } break; } if (jjmatchedKind != 0x7fffffff) { if (jjmatchedPos + 1 < curPos) input_stream.backup(curPos - jjmatchedPos - 1); if ((jjtoToken[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L) { matchedToken = jjFillToken(); matchedToken.specialToken = specialToken; TokenLexicalActions(matchedToken); if (jjnewLexState[jjmatchedKind] != -1) curLexState = jjnewLexState[jjmatchedKind]; return matchedToken; } else if ((jjtoSkip[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L) { if ((jjtoSpecial[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L) { matchedToken = jjFillToken(); if (specialToken == null) specialToken = matchedToken; else { matchedToken.specialToken = specialToken; specialToken = (specialToken.next = matchedToken); } SkipLexicalActions(matchedToken); } else SkipLexicalActions(null); if (jjnewLexState[jjmatchedKind] != -1) curLexState = jjnewLexState[jjmatchedKind]; continue EOFLoop; } MoreLexicalActions(); if (jjnewLexState[jjmatchedKind] != -1) curLexState = jjnewLexState[jjmatchedKind]; curPos = 0; jjmatchedKind = 0x7fffffff; try { curChar = input_stream.readChar(); continue; } catch (java.io.IOException e1) { } } int error_line = input_stream.getEndLine(); int error_column = input_stream.getEndColumn(); String error_after = null; boolean EOFSeen = false; try { input_stream.readChar(); input_stream.backup(1); } catch (java.io.IOException e1) { EOFSeen = true; error_after = curPos <= 1 ? "" : input_stream.GetImage(); if (curChar == '\n' || curChar == '\r') { error_line++; error_column = 0; } else error_column++; } if (!EOFSeen) { input_stream.backup(1); error_after = curPos <= 1 ? "" : input_stream.GetImage(); } throw new TokenMgrError(EOFSeen, curLexState, error_line, error_column, error_after, curChar, TokenMgrError.LEXICAL_ERROR); } } }
// in src/main/java/net/sourceforge/pmd/lang/cpp/ast/CppParserTokenManager.java
public void SwitchTo(int lexState) { if (lexState >= 5 || lexState < 0) throw new TokenMgrError("Error: Ignoring invalid lexical state : " + lexState + ". State unchanged.", TokenMgrError.INVALID_LEXICAL_STATE); else curLexState = lexState; }
// in src/main/java/net/sourceforge/pmd/lang/cpp/ast/CppParserTokenManager.java
public Token getNextToken() { Token matchedToken; int curPos = 0; EOFLoop : for (;;) { try { curChar = input_stream.BeginToken(); } catch(java.io.IOException e) { jjmatchedKind = 0; matchedToken = jjFillToken(); return matchedToken; } for (;;) { switch(curLexState) { case 0: try { input_stream.backup(0); while (curChar <= 32 && (0x100001600L & (1L << curChar)) != 0L) curChar = input_stream.BeginToken(); } catch (java.io.IOException e1) { continue EOFLoop; } jjmatchedKind = 0x7fffffff; jjmatchedPos = 0; curPos = jjMoveStringLiteralDfa0_0(); break; case 1: jjmatchedKind = 0x7fffffff; jjmatchedPos = 0; curPos = jjMoveStringLiteralDfa0_1(); if (jjmatchedPos == 0 && jjmatchedKind > 10) { jjmatchedKind = 10; } break; case 2: jjmatchedKind = 0x7fffffff; jjmatchedPos = 0; curPos = jjMoveStringLiteralDfa0_2(); if (jjmatchedPos == 0 && jjmatchedKind > 12) { jjmatchedKind = 12; } break; case 3: jjmatchedKind = 0x7fffffff; jjmatchedPos = 0; curPos = jjMoveStringLiteralDfa0_3(); if (jjmatchedPos == 0 && jjmatchedKind > 12) { jjmatchedKind = 12; } break; case 4: jjmatchedKind = 0x7fffffff; jjmatchedPos = 0; curPos = jjMoveStringLiteralDfa0_4(); if (jjmatchedPos == 0 && jjmatchedKind > 18) { jjmatchedKind = 18; } break; } if (jjmatchedKind != 0x7fffffff) { if (jjmatchedPos + 1 < curPos) input_stream.backup(curPos - jjmatchedPos - 1); if ((jjtoToken[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L) { matchedToken = jjFillToken(); if (jjnewLexState[jjmatchedKind] != -1) curLexState = jjnewLexState[jjmatchedKind]; return matchedToken; } else if ((jjtoSkip[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L) { if (jjnewLexState[jjmatchedKind] != -1) curLexState = jjnewLexState[jjmatchedKind]; continue EOFLoop; } if (jjnewLexState[jjmatchedKind] != -1) curLexState = jjnewLexState[jjmatchedKind]; curPos = 0; jjmatchedKind = 0x7fffffff; try { curChar = input_stream.readChar(); continue; } catch (java.io.IOException e1) { } } int error_line = input_stream.getEndLine(); int error_column = input_stream.getEndColumn(); String error_after = null; boolean EOFSeen = false; try { input_stream.readChar(); input_stream.backup(1); } catch (java.io.IOException e1) { EOFSeen = true; error_after = curPos <= 1 ? "" : input_stream.GetImage(); if (curChar == '\n' || curChar == '\r') { error_line++; error_column = 0; } else error_column++; } if (!EOFSeen) { input_stream.backup(1); error_after = curPos <= 1 ? "" : input_stream.GetImage(); } throw new TokenMgrError(EOFSeen, curLexState, error_line, error_column, error_after, curChar, TokenMgrError.LEXICAL_ERROR); } } }
0 0 1
            
// in src/main/java/net/sourceforge/pmd/cpd/CPPTokenizer.java
catch (TokenMgrError err) { err.printStackTrace(); System.err.println("Skipping " + sourceCode.getFileName() + " due to parse error"); tokenEntries.add(TokenEntry.getEOF()); }
0 0
unknown (Lib) TransformerConfigurationException 0 0 0 1
            
// in src/main/java/net/sourceforge/pmd/renderers/XSLTRenderer.java
catch (TransformerConfigurationException e) { e.printStackTrace(); }
0 0
unknown (Lib) TransformerException 0 0 1
            
// in src/main/java/net/sourceforge/pmd/util/designer/Designer.java
private String getXmlString(Node node) throws TransformerException { StringWriter writer = new StringWriter(); Source source = new DOMSource(node.getAsDocument()); Result result = new StreamResult(writer); TransformerFactory transformerFactory = TransformerFactory.newInstance(); transformerFactory.setAttribute("indent-number", 3); Transformer xformer = transformerFactory.newTransformer(); xformer.setOutputProperty(OutputKeys.INDENT, "yes"); xformer.transform(source, result); return writer.toString(); }
5
            
// in src/main/java/net/sourceforge/pmd/cpd/XMLRenderer.java
catch (TransformerException e) { throw new IllegalStateException(e); }
// in src/main/java/net/sourceforge/pmd/RuleSetWriter.java
catch (TransformerException e) { throw new RuntimeException(e); }
// in src/main/java/net/sourceforge/pmd/renderers/XSLTRenderer.java
catch (TransformerException e) { e.printStackTrace(); }
// in src/main/java/net/sourceforge/pmd/util/designer/Designer.java
catch (TransformerException e) { e.printStackTrace(); xml = "Error trying to construct XML representation"; }
// in src/main/java/net/sourceforge/pmd/util/designer/Designer.java
catch (TransformerException e) { e.printStackTrace(); }
2
            
// in src/main/java/net/sourceforge/pmd/cpd/XMLRenderer.java
catch (TransformerException e) { throw new IllegalStateException(e); }
// in src/main/java/net/sourceforge/pmd/RuleSetWriter.java
catch (TransformerException e) { throw new RuntimeException(e); }
2
unknown (Lib) UnsupportedEncodingException 0 0 12
            
// in src/main/java/net/sourceforge/pmd/lang/ast/JavaCharStream.java
public void ReInit(java.io.InputStream dstream, String encoding, int startline, int startcolumn, int buffersize) throws java.io.UnsupportedEncodingException { ReInit(encoding == null ? new java.io.InputStreamReader(dstream) : new java.io.InputStreamReader(dstream, encoding), startline, startcolumn, buffersize); }
// in src/main/java/net/sourceforge/pmd/lang/ast/JavaCharStream.java
public void ReInit(java.io.InputStream dstream, String encoding, int startline, int startcolumn) throws java.io.UnsupportedEncodingException { ReInit(dstream, encoding, startline, startcolumn, 4096); }
// in src/main/java/net/sourceforge/pmd/lang/ast/JavaCharStream.java
public void ReInit(java.io.InputStream dstream, String encoding) throws java.io.UnsupportedEncodingException { ReInit(dstream, encoding, 1, 1, 4096); }
// in src/main/java/net/sourceforge/pmd/lang/ast/SimpleCharStream.java
public void ReInit(java.io.InputStream dstream, String encoding, int startline, int startcolumn, int buffersize) throws java.io.UnsupportedEncodingException { ReInit(encoding == null ? new java.io.InputStreamReader(dstream) : new java.io.InputStreamReader(dstream, encoding), startline, startcolumn, buffersize); }
// in src/main/java/net/sourceforge/pmd/lang/ast/SimpleCharStream.java
public void ReInit(java.io.InputStream dstream, String encoding) throws java.io.UnsupportedEncodingException { ReInit(dstream, encoding, 1, 1, 4096); }
// in src/main/java/net/sourceforge/pmd/lang/ast/SimpleCharStream.java
public void ReInit(java.io.InputStream dstream, String encoding, int startline, int startcolumn) throws java.io.UnsupportedEncodingException { ReInit(dstream, encoding, startline, startcolumn, 4096); }
1
            
// in src/main/java/net/sourceforge/pmd/SourceCodeProcessor.java
catch (UnsupportedEncodingException uee) { throw new PMDException("Unsupported encoding exception: " + uee.getMessage()); }
1
            
// in src/main/java/net/sourceforge/pmd/SourceCodeProcessor.java
catch (UnsupportedEncodingException uee) { throw new PMDException("Unsupported encoding exception: " + uee.getMessage()); }
0
runtime (Lib) UnsupportedOperationException 13
            
// in src/main/java/net/sourceforge/pmd/lang/dfa/report/ReportTree.java
public void remove() { throw new UnsupportedOperationException(); }
// in src/main/java/net/sourceforge/pmd/lang/xml/ast/XmlParser.java
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { // XmlNode method? if (method.getDeclaringClass().isAssignableFrom(XmlNode.class) && !"java.lang.Object".equals(method.getDeclaringClass().getName())) { if ("jjtGetNumChildren".equals(method.getName())) { return node.hasChildNodes() ? node.getChildNodes().getLength() : 0; } else if ("jjtGetChild".equals(method.getName())) { return createProxy(node.getChildNodes().item(((Integer) args[0]).intValue())); } else if ("getImage".equals(method.getName())) { if (node instanceof Text) { return ((Text) node).getData(); } else { return null; } } else if ("jjtGetParent".equals(method.getName())) { Node parent = node.getParentNode(); if (parent != null && !(parent instanceof Document)) { return createProxy(parent); } else { return null; } } else if ("getAttributeIterator".equals(method.getName())) { List<Iterator<Attribute>> iterators = new ArrayList<Iterator<Attribute>>(); // Expose DOM Attributes final NamedNodeMap attributes = node.getAttributes(); iterators.add(new Iterator<Attribute>() { private int index; public boolean hasNext() { return attributes != null && index < attributes.getLength(); } public Attribute next() { Node attributeNode = attributes.item(index++); return new Attribute(createProxy(node), attributeNode.getNodeName(), attributeNode .getNodeValue()); } public void remove() { throw new UnsupportedOperationException(); } }); // Expose Text/CDATA nodes to have an 'Image' attribute like AST Nodes if (proxy instanceof Text) { iterators.add(Collections.singletonList( new Attribute((net.sourceforge.pmd.lang.ast.Node) proxy, "Image", ((Text) proxy) .getData())).iterator()); } // Expose Java Attributes // iterators.add(new AttributeAxisIterator((net.sourceforge.pmd.lang.ast.Node) p)); return new CompoundIterator<Attribute>(iterators.toArray(new Iterator[iterators.size()])); } else if ("getBeginLine".equals(method.getName())) { return Integer.valueOf(-1); } else if ("getBeginColumn".equals(method.getName())) { return Integer.valueOf(-1); } else if ("getEndLine".equals(method.getName())) { return Integer.valueOf(-1); } else if ("getEndColumn".equals(method.getName())) { return Integer.valueOf(-1); } else if ("getNode".equals(method.getName())) { return node; } else if ("getUserData".equals(method.getName())) { return userData; } else if ("setUserData".equals(method.getName())) { userData = args[0]; return null; } throw new UnsupportedOperationException("Method not supported for XmlNode: " + method); }
// in src/main/java/net/sourceforge/pmd/lang/xml/ast/XmlParser.java
public void remove() { throw new UnsupportedOperationException(); }
// in src/main/java/net/sourceforge/pmd/lang/ast/xpath/AttributeAxisIterator.java
public void remove() { throw new UnsupportedOperationException(); }
// in src/main/java/net/sourceforge/pmd/lang/ast/xpath/NodeIterator.java
public void remove() { throw new UnsupportedOperationException(); }
// 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/lang/cpp/CppParser.java
public Map<Integer, String> getSuppressMap() { throw new UnsupportedOperationException("getSuppressMap() is not supported for C++"); }
// in src/main/java/net/sourceforge/pmd/lang/cpp/CppHandler.java
public RuleViolationFactory getRuleViolationFactory() { throw new UnsupportedOperationException("getRuleViolationFactory() is not supported for C++"); }
// in src/main/java/net/sourceforge/pmd/lang/rule/properties/AbstractScalarProperty.java
protected Object[] arrayFor(int size) { if (isMultiValue()) { throw new IllegalStateException("Subclass '" + this.getClass().getSimpleName() + "' must implement the arrayFor(int) method."); } throw new UnsupportedOperationException("Arrays not supported on single valued property descriptors."); }
// in src/main/java/net/sourceforge/pmd/lang/rule/xpath/AbstractXPathRuleQuery.java
public void setVersion(String version) throws UnsupportedOperationException { if (!isSupportedVersion(version)) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + " does not support XPath version: " + version); } this.version = version; }
// in src/main/java/net/sourceforge/pmd/lang/rule/AbstractRule.java
public void setLanguage(Language language) { if (this.language != null && this instanceof ImmutableLanguage && !this.language.equals(language)) { throw new UnsupportedOperationException("The Language for Rule class " + this.getClass().getName() + " is immutable and cannot be changed."); } this.language = language; }
// in src/main/java/net/sourceforge/pmd/util/EmptyIterator.java
public void remove() { throw new UnsupportedOperationException(); }
// in src/main/java/net/sourceforge/pmd/util/viewer/model/ASTModel.java
public void valueForPathChanged(TreePath path, Object newValue) { throw new UnsupportedOperationException(); }
0 1
            
// in src/main/java/net/sourceforge/pmd/lang/rule/xpath/AbstractXPathRuleQuery.java
public void setVersion(String version) throws UnsupportedOperationException { if (!isSupportedVersion(version)) { throw new UnsupportedOperationException(this.getClass().getSimpleName() + " does not support XPath version: " + version); } this.version = version; }
0 0 0
checked (Domain) VariableAccessException
public class VariableAccessException extends Exception {

    public VariableAccessException() {
        super("VariableAccess error."); //TODO redefinition
    }

    public VariableAccessException(String message) {
        super(message);
    }
}
0 0 0 0 0 0
unknown (Lib) XPathException 0 0 5
            
// in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AbstractNodeInfo.java
public SequenceIterator getTypedValue() throws XPathException { throw createUnsupportedOperationException("Item.getTypedValue()"); }
// in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AbstractNodeInfo.java
public Value atomize() throws XPathException { throw createUnsupportedOperationException("NodeInfo.atomize()"); }
// in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AbstractNodeInfo.java
public void copy(Receiver receiver, int whichNamespaces, boolean copyAnnotations, int locationId) throws XPathException { throw createUnsupportedOperationException("ValueRepresentation.copy(Receiver, int, boolean, int)"); }
// in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AttributeNode.java
Override public Value atomize() throws XPathException { if (value == null) { Object v = attribute.getValue(); // TODO Need to handle the full range of types, is there something Saxon can do to help? if (v instanceof String) { value = new StringValue((String) v); } else if (v instanceof Boolean) { value = BooleanValue.get(((Boolean) v).booleanValue()); } else if (v instanceof Integer) { value = Int64Value.makeIntegerValue((Integer) v); } else if (v == null) { // Ok } else { throw new RuntimeException("Unable to create ValueRepresentaton for attribute value: " + v + " of type " + v.getClass()); } } return value; }
// in src/main/java/net/sourceforge/pmd/lang/ast/xpath/saxon/AttributeNode.java
Override public SequenceIterator getTypedValue() throws XPathException { return atomize().iterate(); }
2
            
// in src/main/java/net/sourceforge/pmd/lang/rule/xpath/SaxonXPathRuleQuery.java
catch (XPathException e) { throw new RuntimeException(super.xpath + " had problem: " + e.getMessage(), e); }
// in src/main/java/net/sourceforge/pmd/lang/rule/xpath/SaxonXPathRuleQuery.java
catch (XPathException e) { throw new RuntimeException(e); }
2
            
// in src/main/java/net/sourceforge/pmd/lang/rule/xpath/SaxonXPathRuleQuery.java
catch (XPathException e) { throw new RuntimeException(super.xpath + " had problem: " + e.getMessage(), e); }
// in src/main/java/net/sourceforge/pmd/lang/rule/xpath/SaxonXPathRuleQuery.java
catch (XPathException e) { throw new RuntimeException(e); }
2

Miscellanous Metrics

nF = Number of Finally 206
nF = Number of Try-Finally (without catch) 30
Number of Methods with Finally (nMF) 206 / 5657 (3.6%)
Number of Finally with a Continue 0
Number of Finally with a Return 0
Number of Finally with a Throw 0
Number of Finally with a Break 0
Number of different exception types thrown 20
Number of Domain exception types thrown 7
Number of different exception types caught 42
Number of Domain exception types caught 8
Number of exception declarations in signatures 327
Number of different exceptions types declared in method signatures 27
Number of library exceptions types declared in method signatures 21
Number of Domain exceptions types declared in method signatures 6
Number of Catch with a continue 1
Number of Catch with a return 156
Number of Catch with a Break 0
nbIf = Number of If 5672
nbFor = Number of For 718
Number of Method with an if 1838 / 5657
Number of Methods with a for 558 / 5657
Number of Method starting with a try 32 / 5657 (0.6%)
Number of Expressions 55419
Number of Expressions in try 7654 (13.8%)