Package org.tod.meta.sourcecode

Examples of org.tod.meta.sourcecode.SourceInfo


            // If we are currently on a line marked as a return (such as a 'return now' line),
            // then we must perform step over TWICE, to get around the odd way in which TOD
            // instruments the bytecode.
            if(this.behavior != null && this.lineNumber >= 0) {
                ClassInfo classInfo = this.getTODSession().getClassInformationProvider().getClassInfo(behavior.getDeclaringType());
                SourceInfo sourceInfo = classInfo.getSourceInfo();
               
                if (sourceInfo.isActionEnd(this.lineNumber) || sourceInfo.isReturn(this.lineNumber)) {
                    // Step over twice.
                    if (this.behavior.getName().equals("Main") || this.behavior.getName().equals("main")) {
                        return false;
                    }
                    this.getTODSession().getJVMHandler().stepOver(this.thread, 2);
View Full Code Here


            // If we are currently on a line marked as a return (such as a 'return now' line),
            // then we must perform step over TWICE, to get around the odd way in which TOD
            // instruments the bytecode.
            if(this.behavior != null && this.lineNumber >= 0) {
                ClassInfo classInfo = this.getTODSession().getClassInformationProvider().getClassInfo(behavior.getDeclaringType());
                SourceInfo sourceInfo = classInfo.getSourceInfo();
               
                if (sourceInfo.isActionEnd(this.lineNumber) || sourceInfo.isReturn(this.lineNumber)) {
                    if (this.behavior.getName().equals("Main") || this.behavior.getName().equals("main")) {
                        return false;
                    }
                    // Step over twice.
                    this.getTODSession().getJVMHandler().stepInto(this.thread, 2);
View Full Code Here

            } else if (name.equalsIgnoreCase(END)) {
                end = Integer.parseInt(value);
            }
        }
       
        SourceInfo sourceInfo = this.classInfo.getSourceInfo();
        sourceInfo.addScope(conditional, start, end);
    }
View Full Code Here

        }
        // Gather information about i) the class we're in,
        // ii) the last scope we were in (from lastLineNumber) and
        // iii) the current scope we are in.
        ClassInfo classInfo = session.getClassInformationProvider().getClassInfo(event.getOperationBehavior().getDeclaringType());
        SourceInfo sourceInfo = classInfo.getSourceInfo();
        BlockScope lastScope = sourceInfo.findScope(lastLineNumber);
        BlockScope newScope = sourceInfo.findScope(newLine);
       
        if (newScope == null && lastScope == null) {
            return null;
        }
       
View Full Code Here

        }
        // Gather information about i) the class we're in,
        // ii) the last scope we were in (from lastLineNumber) and
        // iii) the current scope we are in.
        ClassInfo classInfo = session.getClassInformationProvider().getClassInfo(event.getOperationBehavior().getDeclaringType());
        SourceInfo sourceInfo = classInfo.getSourceInfo();
        BlockScope lastScope = sourceInfo.findScope(lastLineNumber);
        BlockScope newScope = sourceInfo.findScope(newLine);
       
        if (newScope == null && lastScope == null) {
            return null;
        }
       
View Full Code Here

TOP

Related Classes of org.tod.meta.sourcecode.SourceInfo

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.