Examples of IErlImport


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

    @Override
    public IErlImport findImport(final ErlangFunction function) {
        try {
            for (final IErlElement e : getChildrenOfKind(ErlElementKind.IMPORT)) {
                if (e instanceof IErlImport) {
                    final IErlImport ei = (IErlImport) e;
                    if (ei.hasFunction(function)) {
                        return ei;
                    }
                }
            }
        } catch (final ErlModelException e) {
View Full Code Here

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

    public Collection<IErlImport> getImports() {
        final List<IErlImport> result = new ArrayList<IErlImport>();
        synchronized (getModelLock()) {
            for (final IErlElement e : internalGetChildren()) {
                if (e instanceof IErlImport) {
                    final IErlImport ei = (IErlImport) e;
                    result.add(ei);
                }
            }
        }
        return result;
View Full Code Here

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

    if (_tripleNotEquals) {
      return foundElement;
    }
    OtpErlangObject res2 = null;
    String moduleName = null;
    final IErlImport ei = module.findImport(erlangFunction);
    boolean _tripleNotEquals_1 = (ei != null);
    if (_tripleNotEquals_1) {
      IErlangEngine _instance = ErlangEngine.getInstance();
      final IErlModel model = _instance.getModel();
      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);
View Full Code Here

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

                case EXPORT:
                    options.flags = EnumSet.of(Kinds.DECLARED_FUNCTIONS,
                            Kinds.ARITY_ONLY, Kinds.UNEXPORTED_ONLY);
                    break;
                case IMPORT:
                    final IErlImport i = (IErlImport) element;
                    options.moduleOrRecord = i.getImportModule();
                    options.flags = EnumSet
                            .of(Kinds.EXTERNAL_FUNCTIONS, Kinds.ARITY_ONLY);
                    break;
                case FUNCTION:
                case CLAUSE:
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.