Package org.erlide.engine.model.erlang

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


        public Object[] getChildren(final Object parentElement) {
            if (parentElement instanceof String) {
                return new Object[0];
            }
            final IErlFunction parent = (IErlFunction) parentElement;
            final FunctionRef ref = new FunctionRef(parent);
            final FunctionRef[] children = xrefService.functionUse(ref);
            if (children == null) {
                return new Object[0];
            }
            if (parentElement == input && children.length == 0) {
View Full Code Here


        String name = module.getName();
        final int i = name.lastIndexOf('.');
        if (i > 0) {
            name = name.substring(0, i);
        }
        final FunctionRef ref = new FunctionRef(name, f.getFunctionName(), f.getArity());

        final IWorkbenchWindow dw = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
        final IWorkbenchPage page = dw.getActivePage();

        final AsyncCaller<CallHierarchyView> ac = new AsyncCaller<CallHierarchyView>(100) {
View Full Code Here

                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()]);
        } catch (final Exception e) {
            ErlLogger.debug(e);
        }
View Full Code Here

            throws OtpErlangRangeException, ErlModelException {
        final IErlModule mod = extractModule(fTuple.elementAt(0));
        final String function = ((OtpErlangAtom) fTuple.elementAt(1)).atomValue();
        final int arity = ((OtpErlangLong) fTuple.elementAt(2)).intValue();
        final IErlFunctionClause f = ErlangEngine.getInstance().getModel()
                .findFunction(new FunctionRef(mod.getModuleName(), function, arity));
        return f;
    }
View Full Code Here

TOP

Related Classes of org.erlide.engine.model.erlang.FunctionRef

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.