Examples of CompilerException


Examples of org.codehaus.plexus.compiler.CompilerException

        if ( type.equals( "library" ) || type.equals( "module" ) )
        {
            return "dll";
        }

        throw new CompilerException( "Unrecognized type '" + type + "'." );
    }
View Full Code Here

Examples of org.formulacompiler.compiler.CompilerException

    try {
      try {
        return visitCell( _cell );
      }
      catch (InnerExpressionException e) {
        final CompilerException cause = e.getCause();
        final ExpressionNode errorNode = e.getErrorNode();
        if (null != errorNode) {
          cause.addMessageContext( errorNode.getContext( errorNode ) );
        }
        else {
          final ExpressionNode cellExpr = _cell.getExpression();
          if (null != cellExpr) {
            cause.addMessageContext( cellExpr.getContext( null ) );
          }
          else {
            cause.addMessageContext( "\nCell containing expression is " + _cell.getFullName() + "." );
          }
        }
        throw cause;
      }
      catch (CompilerException e) {
View Full Code Here

Examples of org.nlogo.api.CompilerException

  @Override
  public void setError(Exception compilerError, int offset) {
    super.setError(compilerError, offset);

    if (compilerError instanceof CompilerException) {
      CompilerException compilerEx = (CompilerException) compilerError;
      editorArea.select(compilerEx.startPos() - offset, compilerEx.endPos() - offset);
      editorArea.setSelection(false);
      editorArea.requestFocus();
    } else {
      editorArea.setSelection(true);
    }
View Full Code Here

Examples of org.z.compiler.CompilerException

    if(type != null) {
      if(type.toString().equals("int"))
        return type.toString();
    }
    if(type == null)
      throw new CompilerException("null type");
    return prefix + type.toString().replace('.', '_') + "*";
  }
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.