Package org.epic.core.model

Examples of org.epic.core.model.Subroutine


   
    protected IRegion findDeclaration(SourceFile sourceFile, String subName)
    {
        for (Iterator i = sourceFile.getSubs(); i.hasNext();)
        {
            Subroutine sub = (Subroutine) i.next();
            if (sub.getName().equals(subName))
                return new Region(sub.getOffset(), sub.getLength());
        }
        return null;
    }
View Full Code Here


            || caretLine > lastCaretSub.getEndLine())
        {
            lastCaretSub = null;
            for (Iterator i = source.getSubs(); i.hasNext();)
            {
                Subroutine sub = (Subroutine) i.next();
                if (caretLine >= sub.getStartLine()
                    && caretLine <= sub.getEndLine())
                {
                    lastCaretSub = sub;
                    break;
                }
            }
View Full Code Here

TOP

Related Classes of org.epic.core.model.Subroutine

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.