Package com.ericsson.otp.erlang

Examples of com.ericsson.otp.erlang.OtpErlangList


        }
        throw new RpcException("bad result from erlide_builder:source_clash: " + res);
    }

    public static OtpErlangList getCodeClashes(final IOtpRpc b) throws RpcException {
        final OtpErlangList res = (OtpErlangList) b.call(ERLIDE_BUILDER, "code_clash",
                null);
        return res;
    }
View Full Code Here


                    mod, fun, arity);
            final Bindings bind = OtpErlang.match("{ok, L}", r);
            if (bind == null) {
                return new FunctionRef[0];
            }
            final OtpErlangList l = (OtpErlangList) bind.get("L");
            final List<FunctionRef> result = new ArrayList<FunctionRef>();
            for (final OtpErlangObject e : l) {
                result.add(new FunctionRef(e));
            }
            return result.toArray(new FunctionRef[result.size()]);
View Full Code Here

      String _importModule = ei.getImportModule();
      moduleName = _importModule;
      IErlangEngine _instance_1 = ErlangEngine.getInstance();
      OpenService _service = _instance_1.<OpenService>getService(OpenService.class);
      IResource _resource = module.getResource();
      OtpErlangList _pathVars = model.getPathVars(_resource);
      ErlangProjectProperties _properties = erlProject.getProperties();
      String _externalModules = _properties.getExternalModules();
      OtpErlangObject _sourceFromModule = _service.getSourceFromModule(_pathVars, moduleName, _externalModules);
      res2 = _sourceFromModule;
    }
View Full Code Here

        final ArrayList<String> result = new ArrayList<String>();
        try {
            final OtpErlangObject res = backend.call(ERLIDE_XREF, "modules", "");
            if (Util.isOk(res)) {
                final OtpErlangTuple t = (OtpErlangTuple) res;
                final OtpErlangList l = (OtpErlangList) t.elementAt(1);
                for (final OtpErlangObject i : l) {
                    if (i instanceof OtpErlangAtom) {
                        final OtpErlangAtom m = (OtpErlangAtom) i;
                        result.add(m.atomValue());
                    }
View Full Code Here

    }

    @Override
    public OtpErlangList getProcessList(final IOtpRpc b) {
        if (b == null) {
            return new OtpErlangList();
        }
        try {
            final OtpErlangObject result = b.call(MODULE_NAME, "process_list", "");
            return (OtpErlangList) result;
        } catch (final Exception e) {
            ErlLogger.warn(e);
        }
        return new OtpErlangList();
    }
View Full Code Here

            final OtpErlangObject res = backend.call(ERLIDE_OPEN,
                    "get_external_module_tree", "x",
                    mkContext(externalModules, null, pathVars, null, null));
            if (Util.isOk(res)) {
                OtpErlangTuple t = (OtpErlangTuple) res;
                final OtpErlangList l = (OtpErlangList) t.elementAt(1);
                final List<ExternalTreeEntry> result = Lists.newArrayListWithCapacity(l
                        .arity());
                for (final OtpErlangObject i : l) {
                    t = (OtpErlangTuple) i;
                    final String parentPath = Util.stringValue(t.elementAt(0));
                    final String path = Util.stringValue(t.elementAt(1));
View Full Code Here

        try {
            final OtpErlangObject res = backend.call("erlide_libraries",
                    "get_otp_lib_structure", "s", stateDir);
            if (Util.isOk(res)) {
                final OtpErlangTuple tres = (OtpErlangTuple) res;
                final OtpErlangList lot = (OtpErlangList) tres.elementAt(1);
                return lot;
            }
            ErlLogger.error(res.toString());
        } catch (final RpcException e) {
            ErlLogger.error(e);
View Full Code Here

        try {
            final OtpErlangObject res = ideBackend.call("erlide_libraries",
                    "get_lib_files", "ss", entry, stateDir);
            if (Util.isOk(res)) {
                final OtpErlangTuple t = (OtpErlangTuple) res;
                final OtpErlangList l = (OtpErlangList) t.elementAt(1);
                return Util.asStringList(l);
            }
        } catch (final RpcException e) {
            ErlLogger.error(e);
        }
View Full Code Here

        try {
            final OtpErlangObject res = ideBackend.call(ERLIDE_OPEN, "get_hrls_in_dir",
                    "s", directory);
            if (Util.isOk(res)) {
                final OtpErlangTuple t = (OtpErlangTuple) res;
                final OtpErlangList l = (OtpErlangList) t.elementAt(1);
                return Util.asStringList(l);
            }
        } catch (final RpcException e) {
            ErlLogger.error(e);
        }
View Full Code Here

        try {
            final OtpErlangObject res = backend.call("erlide_content_assist",
                    "get_variables", "ss", src, prefix);
            if (Util.isOk(res)) {
                final OtpErlangTuple t = (OtpErlangTuple) res;
                final OtpErlangList l = (OtpErlangList) t.elementAt(1);
                return new TreeSet<String>(Util.asStringList(l));
            }
        } catch (final RpcException e) {
            ErlLogger.error(e);
        }
View Full Code Here

TOP

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

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.