Package com.ericsson.otp.erlang

Examples of com.ericsson.otp.erlang.OtpErlangString


            }
        } else if (resultTuple.elementAt(0).toString().equals("undecidables")) {
            hasUndecidables = true;

        }
        final OtpErlangString errorMsg = (OtpErlangString) wranglerResult;
        setUnsuccessful(errorMsg.stringValue());
        return;

    }
View Full Code Here


                new OtpErlangInt(sel.getSelectionRange().getEndLine()),
                new OtpErlangInt(sel.getSelectionRange().getEndCol()) });
        final OtpErlangList selectionPos = new OtpErlangList(new OtpErlangObject[] {
                selectionBeg, selectionEnd });
        final OtpErlangList args = new OtpErlangList(new OtpErlangObject[] {
                new OtpErlangString(sel.getFilePath()), pos, selectionPos,
                prepareUserInput(), sel.getSearchPath(),
                new OtpErlangInt(GlobalParameters.getTabWidth()) });

        return WranglerBackendManager.getRefactoringBackend().call("run_refac_eclipse",
                "sx", getCallbackModule(), args);
View Full Code Here

    protected OtpErlangList prepareUserInput() {
        final OtpErlangObject[] params = new OtpErlangObject[parValues.size()];
        int i = 0;
        for (final String val : parValues) {
            params[i] = new OtpErlangString(val);
            i++;
        }
        return new OtpErlangList(params);
    }
View Full Code Here

                    }
                }
                setSuccessful();

            } else {
                final OtpErlangString errorMsg = (OtpErlangString) wranglerResult;
                setUnsuccessful(errorMsg.stringValue());
                return;
            }
        } catch (final Exception e) {
            throw new WranglerRpcParsingException(resultTuple.toString());
        }
View Full Code Here

        final Collection<IPath> sourcDirs = actualProject.getProperties().getSourceDirs();
        final OtpErlangString[] searchPath = new OtpErlangString[sourcDirs.size()];
        int i = 0;
        for (final IPath src : sourcDirs) {
            searchPath[i++] = new OtpErlangString(projectLocation.append(src)
                    .toOSString());
        }
        return new OtpErlangList(searchPath);
    }
View Full Code Here

        final List<OtpErlangObject> argsTmp = new LinkedList<OtpErlangObject>();
        final OtpErlangObject[] userInput = new OtpErlangObject[input.size()];

        int i = 0;
        for (final String text : input) {
            userInput[i] = new OtpErlangString(text);
            i++;
        }

        for (final OtpErlangObject arg : args) {
            if (arg instanceof OtpErlangTuple
View Full Code Here

                    mbox.send(erlangPartner,outcome);
                  }
                  else
                  if (command.equals(msgGetTraces) && message.arity() == 2)
                  {
                    mbox.send(erlangPartner,new OtpErlangTuple(new OtpErlangObject[]{ref,msgOk,new OtpErlangString(sPlus.toString()),new OtpErlangString(sMinus.toString())}));
                  }
                  else
                    if (command.equals(msgLoadFSM) && message.arity() == 3)
                    {
                      OtpErlangObject outcome = new OtpErlangTuple(new OtpErlangObject[]{ref,msgOk});
View Full Code Here

        whatToQuoteForString.add(ch);
    }

    @Override
    public void dump(OtpErlangObject arg, StringBuffer resultHolder) {
      OtpErlangString atom = (OtpErlangString) arg;
      dump(atom.stringValue(), resultHolder);
    }
View Full Code Here

              + currentMatch + " in parsing tuple, looking at "
              + lexer.getMatch());
        }
      }

      return new OtpErlangString(stringText.toString());
    }
View Full Code Here

              "'P1000',"+
              "[d,b,c,a]}");
    Synapse.StatechumProcess.parseStatemachine(grAerlang,grA,null,true);
    Assert.assertEquals(0, grA.getRedStateNumber());
    checkForCorrectException(new whatToRun() { public @Override void run() {
      Synapse.StatechumProcess.setReds(new OtpErlangList(new OtpErlangObject[]{new OtpErlangString("P1002")}), grA);
    }},ClassCastException.class,"OtpErlangString");
  }
View Full Code Here

TOP

Related Classes of com.ericsson.otp.erlang.OtpErlangString

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.