Package com.ericsson.otp.erlang

Examples of com.ericsson.otp.erlang.OtpErlangAtom.atomValue()


    }

    @Override
    public void execute(final ErlangDebugTarget debugTarget) {
        final OtpErlangAtom m = (OtpErlangAtom) cmds[1];
        debugTarget.getInterpretedModules().remove(m.atomValue());
        debugTarget.fireEvent(new DebugEvent(this, DebugEvent.MODEL_SPECIFIC,
                ErlangDebugTarget.INTERPRETED_MODULES_CHANGED));
    }

}
View Full Code Here


    }

    @Override
    public void execute(final ErlangDebugTarget debugTarget) {
        final OtpErlangAtom m = (OtpErlangAtom) cmds[1];
        debugTarget.getInterpretedModules().add(m.atomValue());
        debugTarget.fireEvent(new DebugEvent(this, DebugEvent.MODEL_SPECIFIC,
                ErlangDebugTarget.INTERPRETED_MODULES_CHANGED));
    }

}
View Full Code Here

        final OtpErlangAtom nameA = (OtpErlangAtom) r.elementAt(1);
        final OtpErlangAtom prefixA = (OtpErlangAtom) r.elementAt(2);
        final OtpErlangList fieldL = (OtpErlangList) r.elementAt(3);
        kind = kindL.intValue();
        name = nameA.atomValue();
        prefix = prefixA.atomValue();
        // TODO we probably need another way to signal this...
        if (prefix.endsWith("><")) {
            prefix = "'" + prefix.substring(0, prefix.length() - 2);
        } else if ("<>".equals(prefix)) {
            prefix = "";
View Full Code Here

            }
        }
        fields = new ArrayList<String>(fieldL.arity());
        for (final OtpErlangObject object : fieldL) {
            final OtpErlangAtom f = (OtpErlangAtom) object;
            getFields().add(f.atomValue());
        }
    }

    public boolean isNameWanted() {
        return kind == ContextAssistService.RECORD_NAME;
View Full Code Here

        final OtpErlangAtom mod = (OtpErlangAtom) err.elementAt(1);
        final OtpErlangObject arg = err.elementAt(2);

        String res;
        try {
            OtpErlangObject r = target.call(mod.atomValue(), "format_error", "x", arg);
            r = target.call("lists", "flatten", "x", r);
            res = ((OtpErlangString) r).stringValue();
        } catch (final Exception e) {
            ErlLogger.error(e);
            res = err.toString();
View Full Code Here

    private void addNodesAsDebugTargets(final ILaunch aLaunch) {
        final OtpErlangList nodes = ErlideDebug.nodes(backend.getOtpRpc());
        if (nodes != null) {
            for (int i = 1, n = nodes.arity(); i < n; ++i) {
                final OtpErlangAtom a = (OtpErlangAtom) nodes.elementAt(i);
                final IDebugTarget edn = new ErlangDebugNode(this, a.atomValue());
                aLaunch.addDebugTarget(edn);
            }
        }
    }
View Full Code Here

            } else if (parameters instanceof OtpErlangList) {
                final OtpErlangList l = (OtpErlangList) parameters;
                arity = l.arity();
            }
        }
        name = a.atomValue();
    }

    @Override
    public boolean equals(final Object obj) {
        if (obj instanceof ErlangFunction) {
View Full Code Here

      if (!_matched) {
        if (Objects.equal(kind, "macro")) {
          _matched=true;
          OtpErlangObject _elementAt_11 = openTuple.elementAt(1);
          final OtpErlangAtom element = ((OtpErlangAtom) _elementAt_11);
          String _atomValue_3 = element.atomValue();
          String _removeQuestionMark = OpenResult.removeQuestionMark(_atomValue_3);
          return new MacroOpenResult(_removeQuestionMark);
        }
      }
      if (!_matched) {
View Full Code Here

          if ((o instanceof OtpErlangTuple)) {
            String _xblockexpression = null;
            {
              OtpErlangObject _elementAt_12 = ((OtpErlangTuple)o).elementAt(0);
              final OtpErlangAtom a = ((OtpErlangAtom) _elementAt_12);
              _xblockexpression = a.atomValue();
            }
            _xifexpression_1 = _xblockexpression;
          } else {
            String _xifexpression_2 = null;
            if ((o instanceof OtpErlangAtom)) {
View Full Code Here

        final OtpErlangTuple msg = (OtpErlangTuple) data;
        final OtpErlangAtom resType = (OtpErlangAtom) msg.elementAt(0);
        log.info(resType);

        if (resType.atomValue().equals(GROUP_BEGIN)) {
            handle_group_begin(msg);
        } else if (resType.atomValue().equals(TEST_BEGIN)) {
        } else if (resType.atomValue().equals(TEST_END)) {
            handle_test(msg);
        } else if (resType.atomValue().equals(GROUP_END)) {
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.