Codota Logo
Transition.matches
Code IndexAdd Codota to your IDE (free)

How to use
matches
method
in
org.antlr.v4.runtime.atn.Transition

Best Java code snippets using org.antlr.v4.runtime.atn.Transition.matches (Showing top 20 results out of 315)

  • Common ways to obtain Transition
private void myMethod () {
Transition t =
  • Codota IconATNState s;s.transition(i)
  • Codota Iconatn.ruleToStartState[i].removeTransition(atn.ruleToStartState[i].getNumberOfTransitions() - 1)
  • Codota IconATNState target;new AtomTransition(target, label)
  • Smart code suggestions by Codota
}
origin: org.antlr/antlr4-runtime

protected ATNState getReachableTarget(Transition trans, int t) {
  if (trans.matches(t, Lexer.MIN_CHAR_VALUE, Lexer.MAX_CHAR_VALUE)) {
    return trans.target;
  }
  return null;
}
origin: org.antlr/antlr4-runtime

protected ATNState getReachableTarget(Transition trans, int ttype) {
  if (trans.matches(ttype, 0, atn.maxTokenType)) {
    return trans.target;
  }
  return null;
}
origin: com.impetus.fabric/fabric-jdbc-driver-shaded

protected ATNState getReachableTarget(Transition trans, int t) {
  if (trans.matches(t, Character.MIN_VALUE, Character.MAX_VALUE)) {
    return trans.target;
  }
  return null;
}
origin: uk.co.nichesolutions/antlr4-runtime

protected ATNState getReachableTarget(Transition trans, int t) {
  if (trans.matches(t, Character.MIN_VALUE, Character.MAX_VALUE)) {
    return trans.target;
  }
  return null;
}
origin: uk.co.nichesolutions/antlr4-runtime

protected ATNState getReachableTarget(Transition trans, int ttype) {
  if (trans.matches(ttype, 0, atn.maxTokenType)) {
    return trans.target;
  }
  return null;
}
origin: com.impetus.fabric/fabric-jdbc-driver-shaded

protected ATNState getReachableTarget(Transition trans, int ttype) {
  if (trans.matches(ttype, 0, atn.maxTokenType)) {
    return trans.target;
  }
  return null;
}
origin: io.virtdata/virtdata-lib-realer

protected ATNState getReachableTarget(Transition trans, int ttype) {
  if (trans.matches(ttype, 0, atn.maxTokenType)) {
    return trans.target;
  }
  return null;
}
origin: io.virtdata/virtdata-lib-realer

protected ATNState getReachableTarget(Transition trans, int t) {
  if (trans.matches(t, Lexer.MIN_CHAR_VALUE, Lexer.MAX_CHAR_VALUE)) {
    return trans.target;
  }
  return null;
}
origin: org.antlr/antlr4-runtime

if (t.matches(Token.EOF, 0, 1)) {
  return new ATNConfig(config, t.target);
origin: org.antlr/antlr4-runtime

case Transition.SET:
case Transition.NOT_SET:
  if (!transition.matches(_input.LA(1), Token.MIN_USER_TOKEN_TYPE, 65535)) {
    recoverInline();
origin: org.antlr/antlr4-runtime

case Transition.SET:
  if (treatEofAsEpsilon) {
    if (t.matches(CharStream.EOF, Lexer.MIN_CHAR_VALUE, Lexer.MAX_CHAR_VALUE)) {
      c = new LexerATNConfig(config, t.target);
      break;
origin: com.tunnelvisionlabs/antlr4-runtime

@Nullable
protected ATNState getReachableTarget(Transition trans, int t) {
  if (trans.matches(t, Lexer.MIN_CHAR_VALUE, Lexer.MAX_CHAR_VALUE)) {
    return trans.target;
  }
  return null;
}
origin: com.tunnelvisionlabs/antlr4-runtime

@Nullable
protected ATNState getReachableTarget(@NotNull ATNConfig source, @NotNull Transition trans, int ttype) {
  if (trans.matches(ttype, 0, atn.maxTokenType)) {
    return trans.target;
  }
  return null;
}
origin: com.impetus.fabric/fabric-jdbc-driver-shaded

case Transition.SET:
case Transition.NOT_SET:
  if (!transition.matches(_input.LA(1), Token.MIN_USER_TOKEN_TYPE, 65535)) {
    _errHandler.recoverInline(this);
origin: uk.co.nichesolutions/antlr4-runtime

if (t.matches(Token.EOF, 0, 1)) {
  return new ATNConfig(config, t.target);
origin: com.impetus.fabric/fabric-jdbc-driver-shaded

if (t.matches(Token.EOF, 0, 1)) {
  return new ATNConfig(config, t.target);
origin: io.virtdata/virtdata-lib-realer

if (t.matches(Token.EOF, 0, 1)) {
  return new ATNConfig(config, t.target);
origin: com.tunnelvisionlabs/antlr4-runtime

case Transition.SET:
case Transition.NOT_SET:
  if (!transition.matches(_input.LA(1), Token.MIN_USER_TOKEN_TYPE, 65535)) {
    recoverInline();
origin: com.tunnelvisionlabs/antlr4-runtime

@Nullable
protected ATNConfig getEpsilonTarget(@NotNull ATNConfig config, @NotNull Transition t, boolean collectPredicates, boolean inContext, PredictionContextCache contextCache, boolean treatEofAsEpsilon) {
  switch (t.getSerializationType()) {
  case Transition.RULE:
    return ruleTransition(config, (RuleTransition)t, contextCache);
  case Transition.PRECEDENCE:
    return precedenceTransition(config, (PrecedencePredicateTransition)t, collectPredicates, inContext);
  case Transition.PREDICATE:
    return predTransition(config, (PredicateTransition)t, collectPredicates, inContext);
  case Transition.ACTION:
    return actionTransition(config, (ActionTransition)t);
  case Transition.EPSILON:
    return config.transform(t.target, false);
  case Transition.ATOM:
  case Transition.RANGE:
  case Transition.SET:
    // EOF transitions act like epsilon transitions after the first EOF
    // transition is traversed
    if (treatEofAsEpsilon) {
      if (t.matches(Token.EOF, 0, 1)) {
        return config.transform(t.target, false);
      }
    }
    return null;
  default:
    return null;
  }
}
origin: io.virtdata/virtdata-lib-realer

case Transition.SET:
  if (treatEofAsEpsilon) {
    if (t.matches(CharStream.EOF, Lexer.MIN_CHAR_VALUE, Lexer.MAX_CHAR_VALUE)) {
      c = new LexerATNConfig(config, t.target);
      break;
org.antlr.v4.runtime.atnTransitionmatches

Popular methods of Transition

  • isEpsilon
    Determines if the transition is an "epsilon" transition.The default implementation returns false.
  • label
  • getSerializationType

Popular in Java

  • Parsing JSON documents to java classes using gson
  • compareTo (BigDecimal)
  • getSharedPreferences (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • URLConnection (java.net)
    The abstract class URLConnection is the superclass of all classes that represent a communications li
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • ImageIO (javax.imageio)
  • JButton (javax.swing)
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