Examples of Analyzer


Examples of com.googlecode.aviator.asm.tree.analysis.Analyzer

        cr.accept(new CheckClassAdapter(cn), ClassReader.SKIP_DEBUG);

        List methods = cn.methods;
        for (int i = 0; i < methods.size(); ++i) {
            MethodNode method = (MethodNode) methods.get(i);
            Analyzer a = new Analyzer(new SimpleVerifier(Type.getObjectType(cn.name),
                    Type.getObjectType(cn.superName),
                    false));
            try {
                a.analyze(cn.name, method);
                if (!dump) {
                    continue;
                }
            } catch (Exception e) {
                e.printStackTrace();
            }
            Frame[] frames = a.getFrames();

            TraceMethodVisitor mv = new TraceMethodVisitor();

            pw.println(method.name + method.desc);
            for (int j = 0; j < method.instructions.size(); ++j) {
View Full Code Here

Examples of de.mindcrimeilab.xsanalyzer.Analyzer

                        setDetailMessage("Examining type:" + evt.getNewValue());
                    }

                };

                final Analyzer analyzer = new TypeUsageAnalyzer();
                analyzer.setProgressListener(progressListener);
                analyzer.analyze(model);
                return analyzer;
            }

            @Override
            protected void done() {
                try {
                    Analyzer analyzer = get();
                    analyzer.showResult();
                }
                catch (InterruptedException e) {
                    logger.error("Failed to analyze schema for type usage.", e);
                    e.printStackTrace();
                }
View Full Code Here

Examples of edu.pku.sei.metric.analyzer.Analyzer

            }
            metrics.addAll(descriptors);

            System.out.println("Total " + descriptors.size() + " metric descriptors..");

            Analyzer analyzer = (Analyzer) analyzerExtention
                .createExecutableExtension("analyzerClass");
            analyzer.setMetrics(descriptors);
            analyzers.add(analyzer);
          }
        }
      }
    }
View Full Code Here

Examples of ij.plugin.filter.Analyzer

  float[] getZAxisProfile(Roi roi, double minThreshold, double maxThreshold) {
    ImageStack stack = imp.getStack();
    int size = stack.getSize();
    float[] values = new float[size];
    Calibration cal = imp.getCalibration();
    Analyzer analyzer = new Analyzer(imp);
    int measurements = analyzer.getMeasurements();
    boolean showResults = measurements!=0 && measurements!=LIMIT;
    boolean showingLabels = (measurements&LABELS)!=0 || (measurements&SLICE)!=0;
    measurements |= MEAN;
    if (showResults) {
      if (!analyzer.resetCounter())
        return null;
    }
    int current = imp.getCurrentSlice();
    for (int i=1; i<=size; i++) {
      if (showingLabels) imp.setSlice(i);
      ImageProcessor ip = stack.getProcessor(i);
      if (minThreshold!=ImageProcessor.NO_THRESHOLD)
        ip.setThreshold(minThreshold,maxThreshold,ImageProcessor.NO_LUT_UPDATE);
      ip.setRoi(roi);
      ImageStatistics stats = ImageStatistics.getStatistics(ip, measurements, cal);
      analyzer.saveResults(stats, roi);
      if (showResults)     
        analyzer.displayResults();
      values[i-1] = (float)stats.mean;
    }
    if (showingLabels) imp.setSlice(current);
    return values;
  }
View Full Code Here

Examples of javassist.bytecode.analysis.Analyzer

        return frames[pos - offset]; // Adjust pos
    }

    private void initFrames(CtClass clazz, MethodInfo minfo) throws BadBytecode {
        if (frames == null) {
            frames = ((new Analyzer())).analyze(clazz, minfo);
            offset = 0; // start tracking changes
        }
    }
View Full Code Here

Examples of kameleon.plugin.Analyzer

   * @throws   KameleonException
   *       if an error occurred while analyzing the given file
   */
  public static Document launchAnalyzer(PlugInInfo analyzer, String path)
      throws KameleonException {
    Analyzer plugIn = getInstance(analyzer, ANALYSER_FOLDER, Analyzer.class) ;
    return plugIn.analyze(path) ;
  }// launchAnalyzer(PlugInInfi, String)
View Full Code Here

Examples of net.percederberg.grammatica.parser.Analyzer

     * @param grammar        the grammar to use
     * @param file           the file to parse
     */
    private static void parse(Grammar grammar, File file) {
        Tokenizer  tokenizer;
        Analyzer   analyzer;
        Parser     parser;

        try {
            tokenizer = grammar.createTokenizer(new FileReader(file));
            analyzer = new TreePrinter(System.out);
View Full Code Here

Examples of net.sf.joafip.asm.tree.analysis.Analyzer

   */
  public CheckMethodAdapter(final int access, final String name,
      final String desc, final MethodVisitor mv, final Map labels) {
    this(new MethodNode(access, name, desc, null, null) {
      public void visitEnd() {
        Analyzer a = new Analyzer(new BasicVerifier());
        try {
          a.analyze("dummy", this);
        } catch (Exception e) {
          e.printStackTrace();
          StringWriter sw = new StringWriter();
          PrintWriter pw = new PrintWriter(sw, true);
          CheckClassAdapter.printAnalyzerResult(this, a, pw);
View Full Code Here

Examples of nginx.clojure.asm.tree.analysis.Analyzer

        this.db = db;
        this.className = className;
        this.mn = mn;
        this.classAndMethod = className + "." +  mn.name + mn.desc;
        try {
            Analyzer a = MethodDatabaseUtil.buildAnalyzer(db);
            this.frames = a.analyze(className, mn);
            this.lvarStack = mn.maxLocals;
            this.firstLocal = ((mn.access & Opcodes.ACC_STATIC) == Opcodes.ACC_STATIC) ? 0 : 1;
        } catch (UnsupportedOperationException ex) {
            throw new AnalyzerException(null, ex.getMessage(), ex);
        }
View Full Code Here

Examples of oracle.toplink.libraries.asm.tree.analysis.Analyzer

   
    List methods = ca.classNode.methods;
    for (int i = 0; i < methods.size(); ++i) {
      MethodNode method = (MethodNode)methods.get(i);
      if (method.instructions.size() > 0) {
        Analyzer a = new Analyzer(new SimpleVerifier());
        try {
          a.analyze(ca.classNode, method);
          continue;
        } catch (Exception e) {
          e.printStackTrace();
        }
        final Frame[] frames = a.getFrames();
       
        System.out.println(method.name + method.desc);
        TraceCodeVisitor cv = new TraceCodeVisitor(null) {
          public void visitMaxs (int maxStack, int maxLocals) {
            for (int i = 0; i < text.size(); ++i) {
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.