Package com.ericsson.otp.erlang

Examples of com.ericsson.otp.erlang.OtpErlangString


  public void testLayoutOptions2()
  {
    final LayoutOptions options = new LayoutOptions();
   
    checkForCorrectException(new whatToRun() { public @Override void run() {
      Synapse.StatechumProcess.setStateNamesToBeIgnored(options, new OtpErlangList(new OtpErlangObject[]{new OtpErlangString("a")}));
    }},ClassCastException.class,"OtpErlangString");// when we do not collect output, no response is sent.
   
  }
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

    // this one configures the runner.
    ErlangRunner.getRunner().configurationToErlang(myEvalCnf.config);
    ErlangRunner.getRunner().call(
        new OtpErlangObject[] {
            new OtpErlangAtom("addPath"),
            new OtpErlangString(
                module.sourceFolder.getAbsolutePath()) },
        "addPath");

  }
View Full Code Here

  public void finished() {
    ErlangRunner.getRunner().call(
        new OtpErlangObject[] {
            new OtpErlangAtom("delPath"),
            new OtpErlangString(
                module.sourceFolder.getAbsolutePath()) },
        "delPath");
  }
View Full Code Here

    {
      if (valuesArg.elementAt(i) instanceof OtpErlangList)
      {
        if ( ((OtpErlangList)valuesArg.elementAt(i)).arity() > 0)
          throw new IllegalArgumentException("Cannot build a string from a non-string list "+ valuesArg);
        values.add(new OtpErlangString(""));// empty string
        nonEmptyValue = false;
      }
      else
      {
        if (!(valuesArg.elementAt(i) instanceof OtpErlangString))
View Full Code Here

    @Override
  public List<OtpErlangObject> instantiateAllAlts() {
      List<OtpErlangObject> outcome = null;
      if (values == null)
      {// values are not constrained
        if (nonEmpty) outcome = Collections.singletonList((OtpErlangObject)new OtpErlangString("wibble"));
        else outcome = Collections.singletonList((OtpErlangObject)new OtpErlangString(""));
      }
      else
        outcome = values;
     
      return outcome;
View Full Code Here

          value = ((OtpErlangByte)obj).longValue();
        if (value < 0 || value > 255)
          return false;
        stringValue[idx++]=(char)value;
      }
      return typeCompatibleInternal(new OtpErlangString(new String(stringValue)));
    }
    return false;
  }
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

  }
 
  @Test
  public void testToString2()
  {
    Assert.assertEquals("\"this is a string\"",ErlangLabel.dumpErlangObject(new OtpErlangString("this is a string")));
  }
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.