Package org.eclipse.jdt.core.compiler

Examples of org.eclipse.jdt.core.compiler.InvalidInputException


      argument.setType(argType);
      argument.setSourceRange(argStart, argEnd - argStart + 1);
      return argument;
    }
    catch (ClassCastException ex) {
        throw new InvalidInputException();
    }
  }
View Full Code Here


        fieldRef.setSourceRange(start, end-start+1);
      }
      return fieldRef;
    }
    catch (ClassCastException ex) {
        throw new InvalidInputException();
    }
  }
View Full Code Here

      }
      methodRef.setSourceRange(start, this.scanner.getCurrentTokenEndPosition()-start+1);
      return methodRef;
    }
    catch (ClassCastException ex) {
        throw new InvalidInputException();
    }
  }
View Full Code Here

        return syntaxRecoverArgumentType(receiver, arguments, argument);
      }
    }

    // Something wrong happened => Invalid input
    throw new InvalidInputException();
  }
View Full Code Here

      }
      argument.setSourceRange(argStart, argEnd - argStart + 1);
      return argument;
    }
    catch (ClassCastException ex) {
        throw new InvalidInputException();
    }
  }
View Full Code Here

        fieldRef.setSourceRange(start, end-start+1);
      }
      return fieldRef;
    }
    catch (ClassCastException ex) {
        throw new InvalidInputException();
    }
  }
View Full Code Here

      }
      methodRef.setSourceRange(start, this.scanner.getCurrentTokenEndPosition()-start+1);
      return methodRef;
    }
    catch (ClassCastException ex) {
        throw new InvalidInputException();
    }
  }
View Full Code Here

        break nextArg;
      }
    }

    // Something wrong happened => Invalid input
    throw new InvalidInputException();
  }
View Full Code Here

          consumeToken();
          break;

        case TerminalTokens.TokenNameDOT :
          if ((iToken & 1) == 0) { // dots must be even tokens
            throw new InvalidInputException();
          }
          consumeToken();
          break;

        case TerminalTokens.TokenNamevoid :
        case TerminalTokens.TokenNameboolean :
        case TerminalTokens.TokenNamebyte :
        case TerminalTokens.TokenNamechar :
        case TerminalTokens.TokenNamedouble :
        case TerminalTokens.TokenNamefloat :
        case TerminalTokens.TokenNameint :
        case TerminalTokens.TokenNamelong :
        case TerminalTokens.TokenNameshort :
          if (iToken > 0) {
            throw new InvalidInputException();
          }
          pushIdentifier(true, false);
          primitiveToken = token;
          consumeToken();
          break nextToken;

        default :
          if (iToken == 0) {
            if (this.identifierPtr>=0) {
              this.lastIdentifierEndPosition = (int) this.identifierPositionStack[this.identifierPtr];
            }
            return null;
          }
          if ((iToken & 1) == 0) { // cannot leave on a dot
            switch (parserKind) {
              case COMPLETION_PARSER:
                if (this.identifierPtr>=0) {
                  this.lastIdentifierEndPosition = (int) this.identifierPositionStack[this.identifierPtr];
                }
                return syntaxRecoverQualifiedName(primitiveToken);
              case DOM_PARSER:
                if (this.currentTokenType != -1) {
                  // Reset position: we want to rescan last token
                  this.index = this.tokenPreviousPosition;
                  this.scanner.currentPosition = this.tokenPreviousPosition;
                  this.currentTokenType = -1;
                }
                // $FALL-THROUGH$ - fall through default case to raise exception
              default:
                throw new InvalidInputException();
            }
          }
          break nextToken;
      }
    }
View Full Code Here

      }
      if (argNamePos >= 0) argEnd = (int) argNamePos;
      return new JavadocArgumentExpression(name, argTypeRef.sourceStart, argEnd, argTypeRef);
    }
    catch (ClassCastException ex) {
      throw new InvalidInputException();
    }
  }
View Full Code Here

TOP

Related Classes of org.eclipse.jdt.core.compiler.InvalidInputException

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.