Codota Logo
DecisionInfo
Code IndexAdd Codota to your IDE (free)

How to use
DecisionInfo
in
org.antlr.v4.runtime.atn

Best Java code snippets using org.antlr.v4.runtime.atn.DecisionInfo (Showing top 5 results out of 315)

  • Common ways to obtain DecisionInfo
private void myMethod () {
DecisionInfo d =
  • Codota Iconnew DecisionInfo(decision)
  • Smart code suggestions by Codota
}
origin: org.antlr/antlr4-runtime

public ProfilingATNSimulator(Parser parser) {
  super(parser,
      parser.getInterpreter().atn,
      parser.getInterpreter().decisionToDFA,
      parser.getInterpreter().sharedContextCache);
  numDecisions = atn.decisionToState.size();
  decisions = new DecisionInfo[numDecisions];
  for (int i=0; i<numDecisions; i++) {
    decisions[i] = new DecisionInfo(i);
  }
}
origin: com.tunnelvisionlabs/antlr4-runtime

public ProfilingATNSimulator(Parser parser) {
  super(parser, parser.getInterpreter().atn);
  optimize_ll1 = false;
  reportAmbiguities = true;
  numDecisions = atn.decisionToState.size();
  decisions = new DecisionInfo[numDecisions];
  for (int i=0; i<numDecisions; i++) {
    decisions[i] = new DecisionInfo(i);
  }
}
origin: io.virtdata/virtdata-lib-realer

public ProfilingATNSimulator(Parser parser) {
  super(parser,
      parser.getInterpreter().atn,
      parser.getInterpreter().decisionToDFA,
      parser.getInterpreter().sharedContextCache);
  numDecisions = atn.decisionToState.size();
  decisions = new DecisionInfo[numDecisions];
  for (int i=0; i<numDecisions; i++) {
    decisions[i] = new DecisionInfo(i);
  }
}
origin: com.impetus.fabric/fabric-jdbc-driver-shaded

public ProfilingATNSimulator(Parser parser) {
  super(parser,
      parser.getInterpreter().atn,
      parser.getInterpreter().decisionToDFA,
      parser.getInterpreter().sharedContextCache);
  numDecisions = atn.decisionToState.size();
  decisions = new DecisionInfo[numDecisions];
  for (int i=0; i<numDecisions; i++) {
    decisions[i] = new DecisionInfo(i);
  }
}
origin: uk.co.nichesolutions/antlr4-runtime

public ProfilingATNSimulator(Parser parser) {
  super(parser,
      parser.getInterpreter().atn,
      parser.getInterpreter().decisionToDFA,
      parser.getInterpreter().sharedContextCache);
  numDecisions = atn.decisionToState.size();
  decisions = new DecisionInfo[numDecisions];
  for (int i=0; i<numDecisions; i++) {
    decisions[i] = new DecisionInfo(i);
  }
}
org.antlr.v4.runtime.atnDecisionInfo

Javadoc

This class contains profiling gathered for a particular decision.

Parsing performance in ANTLR 4 is heavily influenced by both static factors (e.g. the form of the rules in the grammar) and dynamic factors (e.g. the choice of input and the state of the DFA cache at the time profiling operations are started). For best results, gather and use aggregate statistics from a large sample of inputs representing the inputs expected in production before using the results to make changes in the grammar.

Most used methods

  • <init>
    Constructs a new instance of the DecisionInfo class to contain statistics for a particular decision.

Popular in Java

  • Making http post requests using okhttp
  • compareTo (BigDecimal)
  • getSharedPreferences (Context)
  • requestLocationUpdates (LocationManager)
  • PriorityQueue (java.util)
    An unbounded priority Queue based on a priority heap. The elements of the priority queue are ordered
  • TreeMap (java.util)
    A Red-Black tree based NavigableMap implementation. The map is sorted according to the Comparable of
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • JFileChooser (javax.swing)
  • Runner (org.openjdk.jmh.runner)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now