Package com.vladium.emma.data

Examples of com.vladium.emma.data.ClassDescriptor


   
    TypeVisitor(IMetaData metadata, ICoverageData coveragedata) {
      this.coveragedata = coveragedata;
      this.descriptors = new HashMap();
      for (Iterator i = metadata.iterator(); i.hasNext(); ) {
        ClassDescriptor cd = (ClassDescriptor) i.next();
        descriptors.put(cd.getClassVMName(), cd);
      }
    }
View Full Code Here


        descriptors.put(cd.getClassVMName(), cd);
      }
    }

    public IMethodVisitor visit(IType type, String vmname) {
      ClassDescriptor descriptor = (ClassDescriptor) descriptors.remove(vmname);
      if (descriptor == null) {
        return null;
      } else {
        DataHolder data = coveragedata == null ? null : coveragedata.getCoverage(descriptor);
        if (data != null && data.m_stamp != descriptor.getStamp()) {
          TRACER.trace("Invalid meta data signature for {0}.", descriptor.getClassVMName()); //$NON-NLS-1$
          return null;
        } else {
          return new MethodVisitor(type, descriptor, data);
        }
      }
View Full Code Here

   
    TypeVisitor(IMetaData metadata, ICoverageData coveragedata) {
      this.coveragedata = coveragedata;
      this.descriptors = new HashMap();
      for (Iterator i = metadata.iterator(); i.hasNext(); ) {
        ClassDescriptor cd = (ClassDescriptor) i.next();
        descriptors.put(cd.getClassVMName(), cd);
      }
    }
View Full Code Here

        descriptors.put(cd.getClassVMName(), cd);
      }
    }

    public void visit(IType type, String vmname) {
      ClassDescriptor descriptor = (ClassDescriptor) descriptors.remove(vmname);
      if (descriptor != null) {
        DataHolder data = coveragedata == null ? null : coveragedata.getCoverage(descriptor);
        if (data != null && data.m_stamp != descriptor.getStamp()) {
          TRACER.trace("Invalid meta data signature for {0}.", descriptor.getClassVMName()); //$NON-NLS-1$
        } else {
          TypeCoverage typecoverage = (TypeCoverage) getCoverage(type, descriptor.hasCompleteLineNumberInfo());
          IResource resource = type.getResource();
          typecoverage.addType(data != null);
          MethodDescriptor[] methods = descriptor.getMethods();
          UnboundMethodCoverage[] ubcoverage = new UnboundMethodCoverage[methods.length];
          boolean[][] covered = data == null ? null : data.m_coverage;
          for (int i = 0; i < methods.length; i++) {
            ubcoverage[i] = processMethodCoverage(methods[i], covered == null ? null : covered[i], typecoverage, resource);
          }
View Full Code Here

   
    TypeVisitor(IMetaData metadata, ICoverageData coveragedata) {
      this.coveragedata = coveragedata;
      this.descriptors = new HashMap();
      for (Iterator i = metadata.iterator(); i.hasNext(); ) {
        ClassDescriptor cd = (ClassDescriptor) i.next();
        descriptors.put(cd.getClassVMName(), cd);
      }
    }
View Full Code Here

        descriptors.put(cd.getClassVMName(), cd);
      }
    }

    public void visit(IType type, String vmname) {
      ClassDescriptor descriptor = (ClassDescriptor) descriptors.remove(vmname);
      if (descriptor != null) {
        DataHolder data = coveragedata == null ? null : coveragedata.getCoverage(descriptor);
        if (data != null && data.m_stamp != descriptor.getStamp()) {
          TRACER.trace("Invalid meta data signature for {0}.", descriptor.getClassVMName()); //$NON-NLS-1$
        } else {
          TypeCoverage typecoverage = (TypeCoverage) getCoverage(type, descriptor.hasCompleteLineNumberInfo());
          IResource resource = type.getResource();
          typecoverage.addType(data != null);
          MethodDescriptor[] methods = descriptor.getMethods();
          UnboundMethodCoverage[] ubcoverage = new UnboundMethodCoverage[methods.length];
          boolean[][] covered = data == null ? null : data.m_coverage;
          for (int i = 0; i < methods.length; i++) {
            ubcoverage[i] = processMethodCoverage(methods[i], covered == null ? null : covered[i], typecoverage, resource);
          }
View Full Code Here

   
    TypeVisitor(IMetaData metadata, ICoverageData coveragedata) {
      this.coveragedata = coveragedata;
      this.descriptors = new HashMap();
      for (Iterator i = metadata.iterator(); i.hasNext(); ) {
        ClassDescriptor cd = (ClassDescriptor) i.next();
        descriptors.put(cd.getClassVMName(), cd);
      }
    }
View Full Code Here

        descriptors.put(cd.getClassVMName(), cd);
      }
    }

    public IMethodVisitor visit(IType type, String vmname) {
      ClassDescriptor descriptor = (ClassDescriptor) descriptors.remove(vmname);
      if (descriptor == null) {
        return null;
      } else {
        DataHolder data = coveragedata == null ? null : coveragedata
            .getCoverage(descriptor);
        if (data != null && data.m_stamp != descriptor.getStamp()) {
          TRACER.trace("Invalid meta data signature for {0}.", descriptor.getClassVMName()); //$NON-NLS-1$
          return null;
        } else {
          return new MethodVisitor(type, descriptor, data);
        }
      }
View Full Code Here

   
    TypeVisitor(IMetaData metadata, ICoverageData coveragedata) {
      this.coveragedata = coveragedata;
      this.descriptors = new HashMap();
      for (Iterator i = metadata.iterator(); i.hasNext(); ) {
        ClassDescriptor cd = (ClassDescriptor) i.next();
        descriptors.put(cd.getClassVMName(), cd);
      }
    }
View Full Code Here

        descriptors.put(cd.getClassVMName(), cd);
      }
    }

    public IMethodVisitor visit(IType type, String vmname) {
      ClassDescriptor descriptor = (ClassDescriptor) descriptors.remove(vmname);
      if (descriptor == null) {
        return null;
      } else {
        DataHolder data = coveragedata == null ? null : coveragedata
            .getCoverage(descriptor);
        if (data != null && data.m_stamp != descriptor.getStamp()) {
          TRACER.trace("Invalid meta data signature for {0}.", descriptor.getClassVMName()); //$NON-NLS-1$
          return null;
        } else {
          return new MethodVisitor(type, descriptor, data);
        }
      }
View Full Code Here

TOP

Related Classes of com.vladium.emma.data.ClassDescriptor

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.