Package org.tod.meta

Examples of org.tod.meta.ClassInfo


           
            // 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;
View Full Code Here


        if (runningLive || isLive()) {
            // 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;
                    }
View Full Code Here

                        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

    @Override
    public void startElement(String s, String s1, String name, Attributes attributes) throws SAXException {
        //System.out.println("start el: " + name);
       
        if (name.equalsIgnoreCase(CLASS)) {
            this.classInfo = new ClassInfo();
        } else if (name.equalsIgnoreCase(ACTION)) {
            action(attributes);
        } else if (name.equalsIgnoreCase(NAME)) {
           
        } else if (name.equalsIgnoreCase(ASSIGNMENT)) {
View Full Code Here

            return null;
        }
        // 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

            return null;
        }
        // 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

    }

    @Override
    public boolean acceptMethod(MethodInfo method) {
        // First, is this a class we care about?
        ClassInfo owningClass = method.getOwningClass();
        if (owningClass.getFullyQualifiedName().startsWith("java") && !method.getName().equals("println")) {
            return false;
        }
        else if (method.getName().equals("toString") &&
                method.getOwningClass().getFullyQualifiedName().startsWith("java/lang")) {
            return false;
View Full Code Here

     * @return the class information. At a minimum, the returned ClassInfo object
     * will only have an associated name--line number information is not
     * guaranteed.
     */
    public ClassInfo getClassInfo(String className) {
        ClassInfo c = new ClassInfo();
        c.setFullyQualifiedName(className);
        return c;
    }
View Full Code Here

TOP

Related Classes of org.tod.meta.ClassInfo

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.