Package com.sun.jdi

Examples of com.sun.jdi.AbsentInformationException


  private void parseFileInfo(Lexer lexer) throws AbsentInformationException {
    int lexemType = lexer.lexemType();
    if (lexemType == Lexer.NUMBER) {
      int fileId = integerValue(lexer.lexem());
      if (isAsteriskLexem(lexer.nextLexem())) {
        throw new AbsentInformationException(
            JDIMessages.SourceDebugExtensionParser_16);
      }
      fCurrentStratum.addFileInfo(fileId, getNonAsteriskString(lexer));
    } else if (lexemType == Lexer.PLUS) {
      if (lexer.nextLexem() != Lexer.NUMBER) {
        throw new AbsentInformationException(
            JDIMessages.SourceDebugExtensionParser_17);
      }
      int fileId = integerValue(lexer.lexem());
      if (isAsteriskLexem(lexer.nextLexem())) {
        throw new AbsentInformationException(
            JDIMessages.SourceDebugExtensionParser_16);
      }
      String fileName = getNonAsteriskString(lexer);
      if (isAsteriskLexem(lexer.lexemType())) {
        throw new AbsentInformationException(
            JDIMessages.SourceDebugExtensionParser_19);
      }
      fCurrentStratum.addFileInfo(fileId, fileName,
          getNonAsteriskString(lexer));
    } else {
      throw new AbsentInformationException(NLS.bind(
          JDIMessages.SourceDebugExtensionParser_12,
          new String[] { new String(lexer.lexem()) }));
    }
  }
View Full Code Here


   */
  private void parseLineSection(Lexer lexer)
      throws AbsentInformationException {
    fCurrentLineFileId = 0;
    if (lexer.nextLexem() != Lexer.CR) {
      throw new AbsentInformationException(NLS.bind(
          JDIMessages.SourceDebugExtensionParser_12,
          new String[] { new String(lexer.lexem()) }));
    }
    lexer.nextLexem();
    while (!isAsteriskLexem(lexer.lexemType())) {
View Full Code Here

  /**
   * @param lexer
   */
  private void parseLineInfo(Lexer lexer) throws AbsentInformationException {
    if (lexer.lexemType() != Lexer.NUMBER) {
      throw new AbsentInformationException(
          JDIMessages.SourceDebugExtensionParser_22);
    }
    int inputStartLine = integerValue(lexer.lexem());
    int lexemType = lexer.nextLexem();
    if (lexemType == Lexer.SHARP) {
      if (lexer.nextLexem() != Lexer.NUMBER) {
        throw new AbsentInformationException(
            JDIMessages.SourceDebugExtensionParser_23);
      }
      fCurrentLineFileId = integerValue(lexer.lexem());
      lexemType = lexer.nextLexem();
    }
    int repeatCount;
    if (lexemType == Lexer.COMMA) {
      if (lexer.nextLexem() != Lexer.NUMBER) {
        throw new AbsentInformationException(
            JDIMessages.SourceDebugExtensionParser_24);
      }
      repeatCount = integerValue(lexer.lexem());
      lexemType = lexer.nextLexem();
    } else {
      repeatCount = 1;
    }
    if (lexemType != Lexer.COLON) {
      throw new AbsentInformationException(
          JDIMessages.SourceDebugExtensionParser_25);
    }
    if (lexer.nextLexem() != Lexer.NUMBER) {
      throw new AbsentInformationException(
          JDIMessages.SourceDebugExtensionParser_26);
    }
    int outputStartLine = integerValue(lexer.lexem());
    lexemType = lexer.nextLexem();
    int outputLineIncrement;
    if (lexemType == Lexer.COMMA) {
      if (lexer.nextLexem() != Lexer.NUMBER) {
        throw new AbsentInformationException(
            JDIMessages.SourceDebugExtensionParser_27);
      }
      outputLineIncrement = integerValue(lexer.lexem());
      lexemType = lexer.nextLexem();
    } else {
      outputLineIncrement = 1;
    }
    if (lexemType != Lexer.CR) {
      throw new AbsentInformationException(
          JDIMessages.SourceDebugExtensionParser_28);
    }
    lexer.nextLexem();
    fCurrentStratum.addLineInfo(inputStartLine, fCurrentLineFileId,
        repeatCount, outputStartLine, outputLineIncrement);
View Full Code Here

   * @param lexer
   */
  private void parseVendorSection(Lexer lexer)
      throws AbsentInformationException {
    if (lexer.nextLexem() != Lexer.CR) {
      throw new AbsentInformationException(NLS.bind(
          JDIMessages.SourceDebugExtensionParser_12,
          new String[] { new String(lexer.lexem()) }));
    }
    lexer.nextLexem();
    while (!isAsteriskLexem(lexer.lexemType())) {
View Full Code Here

   * @param lexer
   */
  private void parseFutureSection(Lexer lexer)
      throws AbsentInformationException {
    if (lexer.nextLexem() != Lexer.CR) {
      throw new AbsentInformationException(NLS.bind(
          JDIMessages.SourceDebugExtensionParser_12,
          new String[] { new String(lexer.lexem()) }));
    }
    lexer.nextLexem();
    while (!isAsteriskLexem(lexer.lexemType())) {
View Full Code Here

     *
     * @return the type of the next lexem.
     */
    public int nextLexem() throws AbsentInformationException {
      if (fEOF) {
        throw new AbsentInformationException(
            JDIMessages.SourceDebugExtensionParser_0);
      }
      startWith();
      return fLexemType;
    }
View Full Code Here

     *
     */
    private void startWithAsterisk() throws AbsentInformationException {
      nextChar();
      if (fEOF) {
        throw new AbsentInformationException(
            JDIMessages.SourceDebugExtensionParser_0);
      }
      switch (fChar) {
      case 'C':
        fLexemType = ASTERISK_C;
View Full Code Here

TOP

Related Classes of com.sun.jdi.AbsentInformationException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.