Package com.ericsson.otp.erlang

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


        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


    @Override
    public Object fromErlang(OtpErlangObject erlangObject) throws ErlangConversionException {
      List<QueueInfo> queueInfoList = new ArrayList<QueueInfo>();
      if (erlangObject instanceof OtpErlangList) {
        OtpErlangList erlangList = (OtpErlangList) erlangObject;
        for (OtpErlangObject element : erlangList.elements()) {
          QueueInfo queueInfo = new QueueInfo();
          OtpErlangList itemList = (OtpErlangList) element;
          for (OtpErlangObject item : itemList.elements()) {
            OtpErlangTuple tuple = (OtpErlangTuple) item;
            if (tuple.arity() == 2) {
View Full Code Here

      if (erlangObject instanceof OtpErlangList) {
        OtpErlangList erlangList = (OtpErlangList) erlangObject;
        for (OtpErlangObject element : erlangList.elements()) {
          QueueInfo queueInfo = new QueueInfo();
          OtpErlangList itemList = (OtpErlangList) element;
          for (OtpErlangObject item : itemList.elements()) {
            OtpErlangTuple tuple = (OtpErlangTuple) item;
            if (tuple.arity() == 2) {
              String key = tuple.elementAt(0).toString();
              OtpErlangObject value = tuple.elementAt(1);
              switch (QueueInfoField.toQueueInfoField(key)) {
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.