Package com.ericsson.otp.erlang

Examples of com.ericsson.otp.erlang.OtpErlangList.elements()


        final RpcResult res = WranglerBackendManager.getRefactoringBackend()
                .callWithoutParser("input_par_prompts_eclipse", "s", callbackModule);
        final OtpErlangList params = (OtpErlangList) ((OtpErlangTuple) res.getValue())
                .elementAt(1);
        parPrompts.clear();
        for (final OtpErlangObject obj : params.elements()) {
            parPrompts.add(obj.toString().replace("\"", ""));
        }

        fetched = true;
View Full Code Here


                    syntaxTree = null;
                    posDefList = (OtpErlangList) wranglerResult;
                }

                positionDefs = new HashMap<IRange, OtpErlangTuple>();
                final OtpErlangObject[] elements = posDefList.elements();
                for (final OtpErlangObject o : elements) {
                    final OtpErlangTuple value = (OtpErlangTuple) o;
                    final OtpErlangTuple pos = (OtpErlangTuple) value.elementAt(0);
                    try {
                        positionDefs.put(new Range(pos), value);
View Full Code Here

    public void dump(OtpErlangObject arg, StringBuffer resultHolder) {
      OtpErlangList list = (OtpErlangList) arg;

      resultHolder.append("[");
      boolean first = true;
      for (OtpErlangObject obj : list.elements()) {
        if (!first)
          resultHolder.append(',');
        else
          first = false;
        classToDumper.get(obj.getClass()).dump(obj, resultHolder);
View Full Code Here

    public void dump(OtpErlangObject arg, StringBuffer resultHolder) {
      OtpErlangList list = (OtpErlangList) arg;

      resultHolder.append("[");
      boolean first = true;
      for (OtpErlangObject obj : list.elements()) {
        if (!first)
          resultHolder.append(',');
        else
          first = false;
        classToDumper.get(obj.getClass()).dump(obj, resultHolder);
View Full Code Here

    public void dump(OtpErlangObject arg, StringBuffer resultHolder) {
      OtpErlangList list = (OtpErlangList) arg;

      resultHolder.append("[");
      boolean first = true;
      for (OtpErlangObject obj : list.elements()) {
        if (!first)
          resultHolder.append(',');
        else
          first = false;
        classToDumper.get(obj.getClass()).dump(obj, resultHolder);
View Full Code Here

            new OtpErlangAtom(ErlangRunner.getName(file, ErlangRunner.ERL.BEAM)) },
        "Could not load dependencies of " + file.getName());
   
    // the first element is 'ok'
    OtpErlangList listOfDepTuples = (OtpErlangList) response.elementAt(1);
    for (OtpErlangObject tup : listOfDepTuples.elements()) {
      String mod = ((OtpErlangAtom) ((OtpErlangTuple) tup).elementAt(0)).atomValue();
      if (!stdModsList.contains(mod) && !dependencies.contains(mod)) {
        dependencies.add(mod);
      }
    }
View Full Code Here

            new OtpErlangAtom(ErlangRunner.getName(new File(parent.sourceFolder, parent.getName()
                + ERL.ERL), ErlangRunner.ERL.BEAM)) },
        "Could not load exports of " + parent.getName());

    OtpErlangList listOfExportTuples = (OtpErlangList) response.elementAt(1);// the first element is 'ok'
    for (OtpErlangObject tup : listOfExportTuples.elements()) {
      String funName = ((OtpErlangAtom) ((OtpErlangTuple) tup).elementAt(0)).atomValue();
      if (!funName.equals("module_info"))
      {
        long funArity = ((OtpErlangLong) ((OtpErlangTuple) tup).elementAt(1)).longValue();
        String qualifiedName = FuncSignature.qualifiedNameFromFunction(parent.getName(), funName,funArity);
View Full Code Here

        new OtpErlangObject[] { new OtpErlangAtom("attributes"),
            new OtpErlangAtom(ErlangRunner.getName(file, ErlangRunner.ERL.BEAM)) },
        "Could not load attributes of " + file.getName());

    OtpErlangList listOfDepTuples = (OtpErlangList) response.elementAt(1);// the first element is 'ok'
    for (OtpErlangObject tup : listOfDepTuples.elements()) {
      OtpErlangTuple tuple = (OtpErlangTuple) tup;
      OtpErlangObject name = tuple.elementAt(0);
      if (name instanceof OtpErlangAtom && ((OtpErlangAtom) name).atomValue().equals("behaviour")) {// found the OTP behaviour attribute
        OtpErlangObject value = tuple.elementAt(1);
        if (value instanceof OtpErlangList) // list of behaviours
View Full Code Here

            new OtpErlangAtom(ErlangRunner.getName(file, ErlangRunner.ERL.BEAM, config.getErlangCompileIntoBeamDirectory())) },
        "Could not load dependencies of " + file.getName());
   
    // the first element is 'ok'
    OtpErlangList listOfDepTuples = (OtpErlangList) response.elementAt(1);
    for (OtpErlangObject tup : listOfDepTuples.elements()) {
      String mod = ((OtpErlangAtom) ((OtpErlangTuple) tup).elementAt(0)).atomValue();
      if (!stdModsList.contains(mod) && !dependencies.contains(mod)) {
        dependencies.add(mod);
      }
    }
View Full Code Here

            new OtpErlangAtom(ErlangRunner.getName(new File(parent.sourceFolder, parent.getName()
                + ERL.ERL), ErlangRunner.ERL.BEAM,config.getErlangCompileIntoBeamDirectory())) },
        "Could not load exports of " + parent.getName());

    OtpErlangList listOfExportTuples = (OtpErlangList) response.elementAt(1);// the first element is 'ok'
    for (OtpErlangObject tup : listOfExportTuples.elements()) {
      String funName = ((OtpErlangAtom) ((OtpErlangTuple) tup).elementAt(0)).atomValue();
      if (!funName.equals("module_info"))
      {
        long funArity = ((OtpErlangLong) ((OtpErlangTuple) tup).elementAt(1)).longValue();
        String qualifiedName = FuncSignature.qualifiedNameFromFunction(parent.getName(), funName,funArity);
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.