Package tod.core.database.event

Examples of tod.core.database.event.ICallerSideEvent


            depths.put(event.getPointer(), newDepth);
            return newDepth;
        }
       
        int depth = 1;
        ICallerSideEvent parent = event.getParent();
        while (parent != null) {
            if (parent instanceof MethodCallEvent || parent instanceof InstantiationEvent || parent instanceof tod.impl.dbgrid.event.ConstructorChainingEvent) {
                if (parent.getOperationBehavior() != null) {
                    depth++;
                }
            }
            parent = parent.getParent();
        }
       
        // Cache it for next time.
        depths.put(event.getPointer(), depth);
        return depth;
View Full Code Here


                i.setLineNumber(n);
                stack.add(i);
                loggedMethod = true;
            }
        }
        ICallerSideEvent currentEvent = (ICallerSideEvent)event;
        boolean isFirst = true;
        do {
            if (currentEvent.getOperationBehavior() != null) {
                IBehaviorInfo method = currentEvent.getOperationBehavior();
                MethodInfo i = getTODSession().getClassInformationProvider().getMethodInfo(method);
                int n = TypeUtils.calculateLineNumber(method, currentEvent.getOperationBytecodeIndex());
                //we really need the current location not some calculated position...is this possible?
                i.setLineNumber(n);
                if(!isStepInto && isFirst && isForward && event instanceof IMethodCallEvent){
                    isFirst = false;
                }else{
                    stack.add(i);
                }
               
            }
            currentEvent = currentEvent.getParent();
        } while (currentEvent != null);
        
        return stack;
    }
View Full Code Here

                    String calledClass = called.getDeclaringType().getName();
                    if (calledClass.startsWith("quorum.") && (calledSignature.equals("main()V") || calledSignature.equals("Main()V"))) {
                        if (browser.hasNext()) {
                            ILogEvent next = browser.next();
                            if (next instanceof ICallerSideEvent) {
                                ICallerSideEvent e = (ICallerSideEvent)next;
                                IClassInfo c = called.getDeclaringType();
                                ClassInfo ci = getTODSession().getClassInformationProvider().getClassInfo(c);
                                mainClassName = ci.getFullyQualifiedName();
                                mainFirstLine = TypeUtils.calculateLineNumber(called, e.getOperationBytecodeIndex());
                                break;
                            }
                        }
                    }
                }
View Full Code Here

TOP

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

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.