This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public final class PerClassStatistics | |
| { | |
| private final String className; | |
| private final int nrRules; | |
| private final int nrCalls; | |
| public PerClassStatistics(final String className, final int nrRules, | |
| final int nrCalls) | |
| { | |
| this.className = className; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public final class PerClassStatisticsMapper | |
| implements RecordMapper<Record, PerClassStatistics> | |
| { | |
| @Override | |
| public PerClassStatistics map(final Record record) | |
| { | |
| //noinspection AutoUnboxing | |
| return new PerClassStatistics( | |
| record.getValue(Tables.MATCHERS.CLASS_NAME), | |
| record.getValue("nrRules", Integer.class), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Nonnull | |
| @Override | |
| public List<PerClassStatistics> getRulesByClass() | |
| throws GrappaDebuggerException | |
| { | |
| waitForMatchers(); | |
| return jooq.select(MATCHERS.CLASS_NAME, DSL.count().as("nrCalls"), | |
| DSL.countDistinct(NODES.MATCHER_ID).as("nrRules")) | |
| .from(MATCHERS, NODES) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.github.fge.lambdas.v2; | |
| public abstract class Chain<N, T extends N, C extends Chain<N, T, C>> | |
| { | |
| protected final T throwing; | |
| protected Chain(final T throwing) | |
| { | |
| this.throwing = throwing; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.github.fge.lambdas.v2; | |
| public abstract class Chainer<N, T extends N, C extends Chainer<N, T, C>> | |
| { | |
| protected final T throwing; | |
| protected Chainer(final T throwing) | |
| { | |
| this.throwing = throwing; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.io.Closeable; | |
| import java.io.IOException; | |
| import java.io.InputStream; | |
| import java.io.OutputStream; | |
| import java.util.Arrays; | |
| import java.util.List; | |
| import java.util.concurrent.ExecutorService; | |
| import java.util.concurrent.Executors; | |
| import java.util.concurrent.ThreadFactory; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.io.Closeable; | |
| import java.io.IOException; | |
| import java.io.InputStream; | |
| import java.io.OutputStream; | |
| import java.util.Arrays; | |
| import java.util.List; | |
| import java.util.concurrent.ExecutorService; | |
| import java.util.concurrent.Executors; | |
| import java.util.concurrent.ThreadFactory; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Copyright (c) 2015, Francis Galiegue (fgaliegue@gmail.com) | |
| * | |
| * This software is dual-licensed under: | |
| * | |
| * - the Lesser General Public License (LGPL) version 3.0 or, at your option, any | |
| * later version; | |
| * - the Apache Software License (ASL) version 2.0. | |
| * | |
| * The text of both licenses is available under the src/resources/ directory of |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Copyright (c) 2015, Francis Galiegue (fgaliegue@gmail.com) | |
| * | |
| * This software is dual-licensed under: | |
| * | |
| * - the Lesser General Public License (LGPL) version 3.0 or, at your option, any | |
| * later version; | |
| * - the Apache Software License (ASL) version 2.0. | |
| * | |
| * The text of both licenses is available under the src/resources/ directory of |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Copyright (c) 2015, Francis Galiegue (fgaliegue@gmail.com) | |
| * | |
| * This software is dual-licensed under: | |
| * | |
| * - the Lesser General Public License (LGPL) version 3.0 or, at your option, any | |
| * later version; | |
| * - the Apache Software License (ASL) version 2.0. | |
| * | |
| * The text of both licenses is available under the src/resources/ directory of |