Tabnine Logo
BasicState
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.antlr/antlr4-runtime

protected ATNState stateFactory(int type, int ruleIndex) {
  ATNState s;
  switch (type) {
    case ATNState.INVALID_TYPE: return null;
    case ATNState.BASIC : s = new BasicState(); break;
    case ATNState.RULE_START : s = new RuleStartState(); break;
    case ATNState.BLOCK_START : s = new BasicBlockStartState(); break;
    case ATNState.PLUS_BLOCK_START : s = new PlusBlockStartState(); break;
    case ATNState.STAR_BLOCK_START : s = new StarBlockStartState(); break;
    case ATNState.TOKEN_START : s = new TokensStartState(); break;
    case ATNState.RULE_STOP : s = new RuleStopState(); break;
    case ATNState.BLOCK_END : s = new BlockEndState(); break;
    case ATNState.STAR_LOOP_BACK : s = new StarLoopbackState(); break;
    case ATNState.STAR_LOOP_ENTRY : s = new StarLoopEntryState(); break;
    case ATNState.PLUS_LOOP_BACK : s = new PlusLoopbackState(); break;
    case ATNState.LOOP_END : s = new LoopEndState(); break;
    default :
      String message = String.format(Locale.getDefault(), "The specified state type %d is not valid.", type);
      throw new IllegalArgumentException(message);
  }
  s.ruleIndex = ruleIndex;
  return s;
}
origin: org.antlr/antlr4-runtime

bypassStop.addTransition(new EpsilonTransition(endState));
ATNState matchState = new BasicState();
atn.addState(matchState);
matchState.addTransition(new AtomTransition(bypassStop, atn.ruleToTokenType[i]));
origin: com.impetus.fabric/fabric-jdbc-driver-shaded

public ATNState newState(GrammarAST node) {
  ATNState n = new BasicState();
  n.setRuleIndex(currentRule.index);
  atn.addState(n);
  return n;
}
origin: uk.co.nichesolutions/antlr4

public ATNState newState(GrammarAST node) {
  ATNState n = new BasicState();
  n.setRuleIndex(currentRule.index);
  atn.addState(n);
  return n;
}
origin: io.virtdata/virtdata-lib-realer

public ATNState newState(GrammarAST node) {
  ATNState n = new BasicState();
  n.setRuleIndex(currentRule.index);
  atn.addState(n);
  return n;
}
origin: org.antlr/antlr4

public ATNState newState(GrammarAST node) {
  ATNState n = new BasicState();
  n.setRuleIndex(currentRule.index);
  atn.addState(n);
  return n;
}
origin: com.tunnelvisionlabs/antlr4

@NotNull
public ATNState newState(@Nullable GrammarAST node) {
  ATNState n = new BasicState();
  n.setRuleIndex(currentRule.index);
  atn.addState(n);
  return n;
}
origin: com.impetus.fabric/fabric-jdbc-driver-shaded

protected ATNState stateFactory(int type, int ruleIndex) {
  ATNState s;
  switch (type) {
    case ATNState.INVALID_TYPE: return null;
    case ATNState.BASIC : s = new BasicState(); break;
    case ATNState.RULE_START : s = new RuleStartState(); break;
    case ATNState.BLOCK_START : s = new BasicBlockStartState(); break;
    case ATNState.PLUS_BLOCK_START : s = new PlusBlockStartState(); break;
    case ATNState.STAR_BLOCK_START : s = new StarBlockStartState(); break;
    case ATNState.TOKEN_START : s = new TokensStartState(); break;
    case ATNState.RULE_STOP : s = new RuleStopState(); break;
    case ATNState.BLOCK_END : s = new BlockEndState(); break;
    case ATNState.STAR_LOOP_BACK : s = new StarLoopbackState(); break;
    case ATNState.STAR_LOOP_ENTRY : s = new StarLoopEntryState(); break;
    case ATNState.PLUS_LOOP_BACK : s = new PlusLoopbackState(); break;
    case ATNState.LOOP_END : s = new LoopEndState(); break;
    default :
      String message = String.format(Locale.getDefault(), "The specified state type %d is not valid.", type);
      throw new IllegalArgumentException(message);
  }
  s.ruleIndex = ruleIndex;
  return s;
}
origin: com.tunnelvisionlabs/antlr4-runtime

protected ATNState stateFactory(int type, int ruleIndex) {
  ATNState s;
  switch (type) {
    case ATNState.INVALID_TYPE: return null;
    case ATNState.BASIC : s = new BasicState(); break;
    case ATNState.RULE_START : s = new RuleStartState(); break;
    case ATNState.BLOCK_START : s = new BasicBlockStartState(); break;
    case ATNState.PLUS_BLOCK_START : s = new PlusBlockStartState(); break;
    case ATNState.STAR_BLOCK_START : s = new StarBlockStartState(); break;
    case ATNState.TOKEN_START : s = new TokensStartState(); break;
    case ATNState.RULE_STOP : s = new RuleStopState(); break;
    case ATNState.BLOCK_END : s = new BlockEndState(); break;
    case ATNState.STAR_LOOP_BACK : s = new StarLoopbackState(); break;
    case ATNState.STAR_LOOP_ENTRY : s = new StarLoopEntryState(); break;
    case ATNState.PLUS_LOOP_BACK : s = new PlusLoopbackState(); break;
    case ATNState.LOOP_END : s = new LoopEndState(); break;
    default :
      String message = String.format(Locale.getDefault(), "The specified state type %d is not valid.", type);
      throw new IllegalArgumentException(message);
  }
  s.ruleIndex = ruleIndex;
  return s;
}
origin: uk.co.nichesolutions/antlr4-runtime

protected ATNState stateFactory(int type, int ruleIndex) {
  ATNState s;
  switch (type) {
    case ATNState.INVALID_TYPE: return null;
    case ATNState.BASIC : s = new BasicState(); break;
    case ATNState.RULE_START : s = new RuleStartState(); break;
    case ATNState.BLOCK_START : s = new BasicBlockStartState(); break;
    case ATNState.PLUS_BLOCK_START : s = new PlusBlockStartState(); break;
    case ATNState.STAR_BLOCK_START : s = new StarBlockStartState(); break;
    case ATNState.TOKEN_START : s = new TokensStartState(); break;
    case ATNState.RULE_STOP : s = new RuleStopState(); break;
    case ATNState.BLOCK_END : s = new BlockEndState(); break;
    case ATNState.STAR_LOOP_BACK : s = new StarLoopbackState(); break;
    case ATNState.STAR_LOOP_ENTRY : s = new StarLoopEntryState(); break;
    case ATNState.PLUS_LOOP_BACK : s = new PlusLoopbackState(); break;
    case ATNState.LOOP_END : s = new LoopEndState(); break;
    default :
      String message = String.format(Locale.getDefault(), "The specified state type %d is not valid.", type);
      throw new IllegalArgumentException(message);
  }
  s.ruleIndex = ruleIndex;
  return s;
}
origin: io.virtdata/virtdata-lib-realer

protected ATNState stateFactory(int type, int ruleIndex) {
  ATNState s;
  switch (type) {
    case ATNState.INVALID_TYPE: return null;
    case ATNState.BASIC : s = new BasicState(); break;
    case ATNState.RULE_START : s = new RuleStartState(); break;
    case ATNState.BLOCK_START : s = new BasicBlockStartState(); break;
    case ATNState.PLUS_BLOCK_START : s = new PlusBlockStartState(); break;
    case ATNState.STAR_BLOCK_START : s = new StarBlockStartState(); break;
    case ATNState.TOKEN_START : s = new TokensStartState(); break;
    case ATNState.RULE_STOP : s = new RuleStopState(); break;
    case ATNState.BLOCK_END : s = new BlockEndState(); break;
    case ATNState.STAR_LOOP_BACK : s = new StarLoopbackState(); break;
    case ATNState.STAR_LOOP_ENTRY : s = new StarLoopEntryState(); break;
    case ATNState.PLUS_LOOP_BACK : s = new PlusLoopbackState(); break;
    case ATNState.LOOP_END : s = new LoopEndState(); break;
    default :
      String message = String.format(Locale.getDefault(), "The specified state type %d is not valid.", type);
      throw new IllegalArgumentException(message);
  }
  s.ruleIndex = ruleIndex;
  return s;
}
origin: com.tunnelvisionlabs/antlr4-runtime

ATNState intermediateState = new BasicState();
intermediateState.setRuleIndex(target.ruleIndex);
atn.addState(intermediateState);
origin: com.tunnelvisionlabs/antlr4-runtime

ATNState setOptimizedState = new BasicState();
setOptimizedState.setRuleIndex(decision.ruleIndex);
atn.addState(setOptimizedState);
origin: com.tunnelvisionlabs/antlr4-runtime

bypassStop.addTransition(new EpsilonTransition(endState));
ATNState matchState = new BasicState();
atn.addState(matchState);
matchState.addTransition(new AtomTransition(bypassStop, atn.ruleToTokenType[i]));
origin: io.virtdata/virtdata-lib-realer

bypassStop.addTransition(new EpsilonTransition(endState));
ATNState matchState = new BasicState();
atn.addState(matchState);
matchState.addTransition(new AtomTransition(bypassStop, atn.ruleToTokenType[i]));
origin: uk.co.nichesolutions/antlr4-runtime

bypassStop.addTransition(new EpsilonTransition(endState));
ATNState matchState = new BasicState();
atn.addState(matchState);
matchState.addTransition(new AtomTransition(bypassStop, atn.ruleToTokenType[i]));
origin: com.impetus.fabric/fabric-jdbc-driver-shaded

bypassStop.addTransition(new EpsilonTransition(endState));
ATNState matchState = new BasicState();
atn.addState(matchState);
matchState.addTransition(new AtomTransition(bypassStop, atn.ruleToTokenType[i]));
org.antlr.v4.runtime.atnBasicState

Most used methods

  • <init>

Popular in Java

  • Finding current android device location
  • getContentResolver (Context)
  • startActivity (Activity)
  • getSystemService (Context)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • Menu (java.awt)
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now