Examples of ErlangFunction


Examples of org.erlide.engine.model.erlang.ErlangFunction

        final String moduleName = ese.getModuleName();
        if (!moduleNames.contains(moduleName)) {
            moduleNames.add(moduleName);
        }
        if (ese.isSubClause()) {
            final ErlangFunction function = new ErlangFunction(ese.getName(),
                    ese.getArity());
            addChild(moduleName, function);
            addChild(function, ese);
        } else {
            addChild(moduleName, ese);
View Full Code Here

Examples of org.erlide.engine.model.erlang.ErlangFunction

    }

    private void removeElement(final ErlangSearchElement ese) {
        final String moduleName = ese.getModuleName();
        if (ese.isSubClause()) {
            final ErlangFunction function = new ErlangFunction(ese.getName(),
                    ese.getArity());
            removeChild(moduleName, function);
            removeChild(function, ese);
        } else {
            removeChild(moduleName, ese);
View Full Code Here

Examples of org.erlide.engine.model.erlang.ErlangFunction

        return ResourcesPlugin.getEncoding();
    }

    public static void openMFA(final String module, final String function, final int arity)
            throws CoreException {
        ErlModelUtils.openExternalFunction(module, new ErlangFunction(function, arity),
                null, ErlangEngine.getInstance().getModel().findModule(module), null,
                IErlElementLocator.Scope.ALL_PROJECTS);
    }
View Full Code Here

Examples of org.erlide.engine.model.erlang.ErlangFunction

            return new Path(s).lastSegment();
        } else if (element instanceof ErlangSearchElement) {
            final ErlangSearchElement ese = (ErlangSearchElement) element;
            return searchElementToString(ese);
        } else if (element instanceof ErlangFunction) {
            final ErlangFunction f = (ErlangFunction) element;
            return f.getNameWithArity();
        }
        return "";
    }
View Full Code Here

Examples of org.erlide.engine.model.erlang.ErlangFunction

                final IErlModule module = ese.getModule();
                try {
                    module.open(null);
                } catch (final ErlModelException e) {
                }
                final IErlFunction function = module.findFunction(new ErlangFunction(ese
                        .getName(), ese.getArity()));
                if (function != null && function.isExported()) {
                    kind = ErlElementKind.EXPORTFUNCTION;
                }
            }
View Full Code Here

Examples of org.erlide.engine.model.erlang.ErlangFunction

        return b.toString();
    }

    @Override
    public ErlangFunction getFunction() {
        return new ErlangFunction(getName(), getArity());
    }
View Full Code Here

Examples of org.erlide.engine.model.erlang.ErlangFunction

    protected ErlImportExport(final IErlElement parent, final String name,
            final OtpErlangList functionList) {
        super(parent, name);
        fFunctions = new ArrayList<ErlangFunction>(functionList.arity());
        for (final OtpErlangObject object : functionList) {
            fFunctions.add(new ErlangFunction((OtpErlangTuple) object));
        }
    }
View Full Code Here

Examples of org.erlide.engine.model.erlang.ErlangFunction

            IErlModule module;
            try {
                module = ErlangEngine.getInstance().getModel().findModule(moduleName);

                final IErlFunction f = module.findFunction(new ErlangFunction(fs
                        .getLabel(), fs.getArity()));

                editor.setSelection(f);

            } catch (final ErlModelException e) {
View Full Code Here

Examples of org.erlide.engine.model.erlang.ErlangFunction

        final IErlModule module = findModule(r.module);
        if (module == null) {
            return null;
        }
        module.open(null);
        return module.findFunction(new ErlangFunction(r.function, r.arity));
    }
View Full Code Here

Examples of org.erlide.engine.model.erlang.ErlangFunction

      String _fun = res.getFun();
      return this.modelFindService.findTypespec(module, _fun);
    }
    String _fun_1 = res.getFun();
    int _arity = res.getArity();
    final ErlangFunction erlangFunction = new ErlangFunction(_fun_1, _arity);
    final IErlFunction foundElement = module.findFunction(erlangFunction);
    boolean _tripleNotEquals = (foundElement != null);
    if (_tripleNotEquals) {
      return foundElement;
    }
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.