Package tod.core.database.event

Examples of tod.core.database.event.IMethodCallEvent


            return true;
        } else if (ile instanceof OpcodeEvent) {
            OpcodeEvent e = (OpcodeEvent)ile;
            return e.getOpcode() == Opcodes.GOTO;
        } else if (ile instanceof IMethodCallEvent) {
            IMethodCallEvent imce = (IMethodCallEvent)ile;
            IBehaviorInfo executedBehavior = imce.getExecutedBehavior();
            IBehaviorInfo calledBehavior = imce.getCalledBehavior();
            if (executedBehavior == null && calledBehavior == null) {
                return true;
            }
           
            // Use either executedBehavior or calledBehavior, in that order, depending on which is available.
View Full Code Here


        }
       
        LinkedList<MethodInfo> stack = new LinkedList<MethodInfo>();
        boolean loggedMethod = false;
        if (event instanceof IMethodCallEvent) {
            IMethodCallEvent mce = (IMethodCallEvent)event;
            if (mce.getCalledBehavior() != null && isForward) {
                IBehaviorInfo b = mce.getCalledBehavior();
                MethodInfo i = getTODSession().getClassInformationProvider().getMethodInfo(b);
                mce.getOperationBytecodeIndex();
                int n = TypeUtils.calculateLineNumber(b, mce.getOperationBytecodeIndex());
                i.setLineNumber(n);
                stack.add(i);
                loggedMethod = true;
            }
        }
View Full Code Here

       
        IEventBrowser browser = getTODSession().getTODHandler().getStepOverEventBrowser();
        while (browser.hasNext()) {
            ILogEvent event = browser.next();
            if (event instanceof IMethodCallEvent) {
                IMethodCallEvent mce = (IMethodCallEvent)event;
                IBehaviorInfo called = mce.getCalledBehavior();
                if (called != null) {
                    String calledSignature = called.getName() + called.getSignature();
                    String calledClass = called.getDeclaringType().getName();
                    if (calledClass.startsWith("quorum.") && (calledSignature.equals("main()V") || calledSignature.equals("Main()V"))) {
                        if (browser.hasNext()) {
View Full Code Here

TOP

Related Classes of tod.core.database.event.IMethodCallEvent

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.