APISonar


com.oracle.truffle.regex.tregex.util.DebugUtil.DebugLogger.log

> com > oracle > truffle > regex > tregex > util > DebugUtil > DebugLogger > log
com APIs oracle APIs truffle APIs regex APIs tregex APIs util APIs DebugUtil APIs DebugLogger APIs log APIs

Example 1
private DebugUtil.DebugLogger logSizes;

    private void logSizes(String msg) {
        if (logSizes == null) {
            logSizes = new DebugUtil.DebugLogger("", DebugUtil.LOG_AUTOMATON_SIZES);
        }
        logSizes.log(msg);
    }
Example 2
private DebugUtil.DebugLogger logPhases;

    private void logPhase(String msg) {
        if (logPhases == null) {
            logPhases = new DebugUtil.DebugLogger("TRegex Phase: ", DebugUtil.LOG_PHASES);
        }
        logPhases.log(msg);
    }
Example 3
private DebugUtil.DebugLogger logBailout;

    private void logBailout(String msg) {
        if (logBailout == null) {
            logBailout = new DebugUtil.DebugLogger("TRegex Bailout: ", DebugUtil.LOG_BAILOUT_MESSAGES);
        }
        logBailout.log(msg);
    }
Example 4
private static final DebugUtil.DebugLogger LOG_BAILOUT = new DebugUtil.DebugLogger("TRegex Bailout: ", DebugUtil.LOG_BAILOUT_MESSAGES);

    private void compileEagerSearchNode() {
        if (eagerSearchNode == null) {
            try {
                TRegexDFAExecutorNode executorNode = tRegexCompiler.compileEagerDFAExecutor(getSource());
                eagerSearchNode = new EagerCaptureGroupRegexSearchNode(executorNode);
            } catch (UnsupportedRegexException e) {
                LOG_BAILOUT.log(e.getMessage() + ": " + source);
                eagerSearchNode = EAGER_SEARCH_BAILED_OUT;
            }
        }
    }