Package com.ericsson.otp.erlang

Examples of com.ericsson.otp.erlang.OtpErlangInt


                                        .size()]));

                        // net tick time
                        final int tickTimeValue = Activator.getDefault()
                                .getPreferenceStore().getInt(PreferenceNames.TICK_TIME);
                        final OtpErlangInt netTickTime = new OtpErlangInt(tickTimeValue);

                        final OtpErlangObject callResult = tracerBackend.getOtpRpc()
                                .call(Constants.ERLANG_HELPER_MODULE, FUN_START, "xsi",
                                        nodes, Constants.OUTPUT_FILE, netTickTime);
                        status = processResult(callResult);
View Full Code Here


                                tracePattern.getFunctionName(), matchSpec);
                    } else {
                        tracerBackend.getOtpRpc().call(Constants.TTB_MODULE, function,
                                "aaxx", tracePattern.getModuleName(),
                                tracePattern.getFunctionName(),
                                new OtpErlangInt(tracePattern.getArity()), matchSpec);
                    }
                } catch (final RpcException e) {
                    ErlLogger.error("Could not add pattern: " + e.getMessage());
                }
            }
View Full Code Here

        OtpErlangObject res = null;
        final OtpErlangTuple input = new OtpErlangTuple(new OtpErlangObject[] {
                new OtpErlangAtom("external"),
                new OtpErlangAtom(functionCall.getModule()),
                new OtpErlangAtom(functionCall.getName()),
                new OtpErlangInt(functionCall.getArity()), new OtpErlangString("") });
        try {
            res = b.call(ERLIDE_OTP_DOC, "get_doc", "sxs", functionCall.getModule(),
                    input, stateDir);
        } catch (final RpcException e) {
            ErlLogger.warn(e);
View Full Code Here

    @Override
    public IRefactoringRpcMessage run(final IErlSelection selection) {
        final IErlMemberSelection sel = (IErlMemberSelection) selection;

        final OtpErlangList pos = new OtpErlangList(new OtpErlangInt[] {
                new OtpErlangInt(sel.getSelectionRange().getStartLine()),
                new OtpErlangInt(sel.getSelectionRange().getStartCol()) });
        final OtpErlangList selectionBeg = new OtpErlangList(new OtpErlangInt[] {
                new OtpErlangInt(sel.getSelectionRange().getStartLine()),
                new OtpErlangInt(sel.getSelectionRange().getStartCol()) });
        final OtpErlangList selectionEnd = new OtpErlangList(new OtpErlangInt[] {
                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 SyntaxInfo varToPos(final OtpErlangTuple syntaxTree, final int line,
            final int col) {
        final OtpErlangInt[] position = new OtpErlangInt[2];
        position[0] = new OtpErlangInt(line);
        position[1] = new OtpErlangInt(col);
        final RpcResult res = backend.call_noexception(INTERFACE_MODULE, VAR_FUNCTION,
                "xx", syntaxTree, new OtpErlangTuple(position));
        return parseVarInfo(res.getValue());
    }
View Full Code Here

        return startLine;
    }

    @Override
    public OtpErlangTuple getStartPos() {
        return OtpErlang.mkTuple(new OtpErlangInt(startLine), new OtpErlangInt(startCol));
    }
View Full Code Here

        return OtpErlang.mkTuple(new OtpErlangInt(startLine), new OtpErlangInt(startCol));
    }

    @Override
    public OtpErlangTuple getEndPos() {
        return OtpErlang.mkTuple(new OtpErlangInt(endLine), new OtpErlangInt(endCol));
    }
View Full Code Here

        args = argsTmp.toArray(new OtpErlangObject[0]);
    }

    public void addTabWidth(final int tabWidth) {
        final List<OtpErlangObject> argsTmp = Arrays.asList(args);
        argsTmp.add(new OtpErlangInt(tabWidth));

        args = argsTmp.toArray(new OtpErlangObject[0]);
    }
View Full Code Here

          partA = partA.substring(1);
        long outcome = Long.parseLong(partA);
        if (outcome > Integer.MAX_VALUE || outcome < Integer.MIN_VALUE)
          result = new OtpErlangLong(outcome);
        else
          result = new OtpErlangInt((int) outcome);
      } else {// floating - point number.
        String textToParse = partA + "."
            + (partB == null ? "0" : partB)
            + (partExp == null ? "" : ("e" + partExp));
        if (partExp != null) {
View Full Code Here

      return singleton;
    }

    @Override
    public void dump(OtpErlangObject arg, StringBuffer resultHolder) {
      OtpErlangInt longValue = (OtpErlangInt) arg;
      resultHolder.append(longValue.longValue());
    }
View Full Code Here

TOP

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

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.