Examples of ClassData


Examples of ch.pterrettaz.jmess.core.ClassData

        while (names.hasMoreElements()) {
          String value = props.getProperty((String) names.nextElement());
          Matcher m = classPattern.matcher(value);
          if (m.matches()) {
            int dot = value.lastIndexOf('.');
            results.add(new ClassData(value.substring(0, dot), value.substring(dot + 1), location));
          }
        }
      }
    });
View Full Code Here

Examples of ch.pterrettaz.jmess.core.ClassData

                }

            }
        });

        return Collections.singleton(new ClassData(packageName.get(), className.get(), location));
    }
View Full Code Here

Examples of com.android.dex.ClassData

      this.interfaces = new ArrayList<ClassInfo>(cls.getInterfaces().length);
      for (short interfaceIdx : cls.getInterfaces()) {
        this.interfaces.add(ClassInfo.fromDex(dex, interfaceIdx));
      }
      if (cls.getClassDataOffset() != 0) {
        ClassData clsData = dex.readClassData(cls);
        int mthsCount = clsData.getDirectMethods().length + clsData.getVirtualMethods().length;
        int fieldsCount = clsData.getStaticFields().length + clsData.getInstanceFields().length;

        methods = new ArrayList<MethodNode>(mthsCount);
        fields = new ArrayList<FieldNode>(fieldsCount);

        for (Method mth : clsData.getDirectMethods()) {
          methods.add(new MethodNode(this, mth));
        }
        for (Method mth : clsData.getVirtualMethods()) {
          methods.add(new MethodNode(this, mth));
        }

        for (Field f : clsData.getStaticFields()) {
          fields.add(new FieldNode(this, f));
        }
        loadStaticValues(cls, fields);
        for (Field f : clsData.getInstanceFields()) {
          fields.add(new FieldNode(this, f));
        }
      } else {
        methods = Collections.emptyList();
        fields = Collections.emptyList();
View Full Code Here

Examples of com.facebook.presto.jdbc.internal.jol.info.ClassData

        read_U4(); // stack trace
        int elements = read_U4();
        int typeClass = read_U1();
        read_null(elements * getSize(typeClass));

        classCounts.add(new ClassData(getTypeString(typeClass) + "[]", getTypeString(typeClass), elements));
    }
View Full Code Here

Examples of com.facebook.presto.jdbc.internal.jol.info.ClassData

        int elements = read_U4();
        read_ID(); // type class
        read_null(elements * idSize);

        // assume Object, we don't care about the exact types here
        classCounts.add(new ClassData("Object[]", "Object", elements));
    }
View Full Code Here

Examples of com.facebook.presto.jdbc.internal.jol.info.ClassData

    private void digestClass() throws IOException {
        long klassID = read_ID();

        String name = classNames.get(klassID);

        ClassData cd = new ClassData(name);
        cd.addSuperClass(name);

        read_U4(); // stack trace

        long superKlassID = read_ID();
        ClassData superCd = classDatas.get(superKlassID);
        if (superCd != null) {
            cd.merge(superCd);
        }

        read_ID(); // class loader
View Full Code Here

Examples of com.intellij.rt.coverage.data.ClassData

  private static ProjectData readProjectData(@NotNull File dataFile, @NotNull File basePath) throws IOException {
    ProjectData projectData = new ProjectData();
    LcovCoverageReport report = CoverageSerializationUtils.readLCOV(basePath, dataFile);
    for (Map.Entry<String, List<LcovCoverageReport.LineHits>> entry : report.getInfo().entrySet()) {
      String filePath = SimpleCoverageAnnotator.getFilePath(entry.getKey());
      ClassData classData = projectData.getOrCreateClassData(filePath);
      int max = 0;
      List<LcovCoverageReport.LineHits> lineHitsList = entry.getValue();
      if (lineHitsList.size() > 0) {
        LcovCoverageReport.LineHits lastLineHits = lineHitsList.get(lineHitsList.size() - 1);
        max = lastLineHits.getLineNumber();
      }
      LineData[] lines = new LineData[max + 1];
      for (LcovCoverageReport.LineHits lineHits : lineHitsList) {
        LineData lineData = new LineData(lineHits.getLineNumber(), null);
        lineData.setHits(lineHits.getHits());
        lines[lineHits.getLineNumber()] = lineData;
      }
      classData.setLines(lines);
    }
    return projectData;
  }
View Full Code Here

Examples of com.intellij.rt.coverage.data.ClassData

      if (projectData != null) {
        @SuppressWarnings("unchecked")
        Map<String, ClassData> classDataMap = projectData.getClasses();
        for (Map.Entry<String, ClassData> classDataEntry : classDataMap.entrySet()) {
          String fileName = classDataEntry.getKey();
          ClassData classData = classDataEntry.getValue();
          List<CoverageReport.LineHits> lineHitsList = convertClassDataToLineHits(classData);
          coverageReport.mergeFileReport(fileName, lineHitsList);
        }
      }
    }
View Full Code Here

Examples of com.intellij.rt.coverage.data.ClassData

  private static ProjectData readProjectData(@NotNull File dataFile) throws IOException {
    CoverageReport report = CoverageSerializationUtils.readLCOV(dataFile);
    ProjectData projectData = new ProjectData();
    for (Map.Entry<String, List<CoverageReport.LineHits>> entry : report.getInfo().entrySet()) {
      String filePath = SimpleCoverageAnnotator.getFilePath(entry.getKey());
      ClassData classData = projectData.getOrCreateClassData(filePath);
      int max = 0;
      List<CoverageReport.LineHits> lineHitsList = entry.getValue();
      if (lineHitsList.size() > 0) {
        CoverageReport.LineHits lastLineHits = lineHitsList.get(lineHitsList.size() - 1);
        max = lastLineHits.getLineNumber();
      }
      LineData[] lines = new LineData[max + 1];
      for (CoverageReport.LineHits lineHits : lineHitsList) {
        LineData lineData = new LineData(lineHits.getLineNumber(), null);
        lineData.setHits(lineHits.getHits());
        lines[lineHits.getLineNumber()] = lineData;
      }
      classData.setLines(lines);
    }
    return projectData;
  }
View Full Code Here

Examples of edu.umd.cs.findbugs.classfile.analysis.ClassData

    public int getClassSize(ClassDescriptor desc) {
        IAnalysisCache analysisCache = Global.getAnalysisCache();

        try {
            /* ClassContext classContext =*/ analysisCache.getClassAnalysis(ClassContext.class, desc);
            ClassData classData = analysisCache.getClassAnalysis(ClassData.class, desc);
            return classData.getData().length;

        } catch (RuntimeException e) {
            AnalysisContext.logError("Error getting class data for " + desc, e);
            return 10000;
        } catch (CheckedAnalysisException e) {
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.