Package abstrasy

Examples of abstrasy.Node$ParseBag


    if(ex instanceof InterpreterException){
      InterpreterException iex = (InterpreterException)ex;
      return create(iex.getErrCode(),iex.getMessage(),iex.getMessageExt());
    }
    else{
    return create(StdErrors.Unknown_error.getErr(),StdErrors.Unknown_error.getMsg(),new Node(ex.getMessage()));   
    }
  }
View Full Code Here


  public External_Exception() {
  }

  public Node external_string(Node startAt) throws Exception {
    startAt.isGoodArgsLength(true, 1);
  return new Node(err+" : "+etype+ " ("+emsg+")");
  }
View Full Code Here

  return new Node(err+" : "+etype+ " ("+emsg+")");
  }

  public Node external_get_code(Node startAt) throws Exception {
    startAt.isGoodArgsLength(true, 1);
    return new Node(err);
  }
View Full Code Here

    return new Node(err);
  }

  public Node external_get_trace(Node startAt) throws Exception {
    startAt.isGoodArgsLength(true, 1);
    return new Node(etype);
  }
View Full Code Here

    }

    public Node external_is_null(Node startAt) throws Exception {
        startAt.isGoodArgsLength(true, 1);
        if (objet == null) {
            return new Node(Node.TRUE);
        }
        else {
            return new Node(Node.FALSE);
        }
    }
View Full Code Here

        }
    }

    public Node external_quote(Node startAt) throws Exception {
        startAt.isGoodArgsCnt(1, 2);
        Node res = null;
        if (objet == null) {
            res = AExtTools.createNewExpr(Node.createSymbol("Object"));
        }
        else {
            if (startAt.size() == 2) {
                // contient un vecteur de références
                Node vector = startAt.getSubNode(1, Node.TYPE_CLIST);
                if (vector.indexOf(objet) >= 0)
                    throw new InterpreterException(StdErrors.Circulare_reference);
                if (!objet.isNodeType(Node.VTYPE_BY_VALUE))
                    vector.addElement(objet);
                res = AExtTools.createNewExpr(
                          Node.createSymbol("Object"),
                          Node.createLazy().append(AExtTools.createSExpression(":set!", new Node[] { objet.toSerialized(vector) }))
                          );
            }
View Full Code Here

        return (this instanceof External_SystemAdapter);
    }
   
    public Node external_user_name(Node startAt) throws Exception {
        startAt.isGoodArgsLength(true, 1);
        return new Node(System.getProperty("user.name"));
    }
View Full Code Here

        return new Node(System.getProperty("user.name"));
    }

    public Node external_user_language(Node startAt) throws Exception {
        startAt.isGoodArgsLength(true, 1);
        return new Node(System.getProperty("user.language"));
    }
View Full Code Here

        return new Node(System.getProperty("user.language"));
    }

    public Node external_user_timezone(Node startAt) throws Exception {
        startAt.isGoodArgsLength(true, 1);
        return new Node(System.getProperty("user.timezone"));
    }
View Full Code Here

        return new Node(System.getProperty("user.timezone"));
    }

    public Node external_user_country(Node startAt) throws Exception {
        startAt.isGoodArgsLength(true, 1);
        return new Node(System.getProperty("user.country"));
    }
View Full Code Here

TOP

Related Classes of abstrasy.Node$ParseBag

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.