Examples of IClassInfo


Examples of tod.core.database.structure.IClassInfo

    private boolean isAtLocation(ICallerSideEvent event, String fullyQualifiedClassName, int line) {
        if (event.getOperationBehavior() == null) {
            return false;
        }
       
        IClassInfo classInfo = event.getOperationBehavior().getDeclaringType();
        boolean inClass = classInfo.getJvmName().equals("L" + fullyQualifiedClassName + ";");
        boolean onLine = TypeUtils.calculateLineNumber(event.getOperationBehavior(), event.getOperationBytecodeIndex()) == line;
       
        return inClass && onLine;
    }
View Full Code Here

Examples of tod.core.database.structure.IClassInfo

    private boolean hasBreakpoint(ICallerSideEvent event) {
        if (event.getOperationBehavior() == null) {
            return false;
        }
       
        IClassInfo classInfo = event.getOperationBehavior().getDeclaringType();
        String jvmName = classInfo.getJvmName();
        String fullyQualifiedClassName = jvmName.substring(1, jvmName.length() - 1);
        int line = TypeUtils.calculateLineNumber(event.getOperationBehavior(), event.getOperationBytecodeIndex());
        BreakpointInfo breakpoint = this.getTODSession().getJVMHandler().getBreakpoint(fullyQualifiedClassName, line);
        System.out.println("Breakpoint at " + fullyQualifiedClassName + ":" + line + "?");
        return breakpoint != null;
View Full Code Here

Examples of tod.core.database.structure.IClassInfo

    @Override
    public IBehaviorInfo getMethodBehavior(Method method) {
        try {
            String className = method.declaringType().name();
            IStructureDatabase db = this.todSession.getLogBrowser().getStructureDatabase();
            IClassInfo cls = db.getClass(className, false);
            List<Type> argumentTypes = method.argumentTypes();
            ITypeInfo[] args = new ITypeInfo[argumentTypes.size()];
            for (int i = 0; i < argumentTypes.size(); i++) {
                args[i] = db.getType(argumentTypes.get(i).signature(), false);
            }
            ITypeInfo ret = db.getType(method.returnType().signature(), false);
            IBehaviorInfo behavior = cls.getBehavior(method.name(), args, ret);
            return behavior;
        } catch (ClassNotLoadedException ex) {
            return null;
        }
    }
View Full Code Here

Examples of tod.core.database.structure.IClassInfo

                    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
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.