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

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

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

origin: org.antlr/antlr4-runtime

  ActionTransition a = new ActionTransition(target, arg1, arg2, arg3 != 0);
  return a;
case Transition.SET : return new SetTransition(target, sets.get(arg1));
origin: com.impetus.fabric/fabric-jdbc-driver-shaded

buf.append("-").append(a.toString()).append("->").append(getStateString(t.target)).append('\n');
origin: org.antlr/antlr4-runtime

int actionIndex = ((ActionTransition)transition).actionIndex;
LexerCustomAction lexerAction = new LexerCustomAction(ruleIndex, actionIndex);
state.setTransition(i, new ActionTransition(transition.target, ruleIndex, legacyLexerActions.size(), false));
legacyLexerActions.add(lexerAction);
origin: io.virtdata/virtdata-lib-realer

buf.append("-").append(a.toString()).append("->").append(getStateString(t.target)).append('\n');
origin: org.antlr/antlr4

/** Build what amounts to an epsilon transition with an action.
 *  The action goes into ATN though it is ignored during prediction
 *  if {@link ActionTransition#actionIndex actionIndex}{@code <0}.
 */
@Override
public Handle action(ActionAST action) {
  //System.out.println("action: "+action);
  ATNState left = newState(action);
  ATNState right = newState(action);
  ActionTransition a = new ActionTransition(right, currentRule.index);
  left.addTransition(a);
  action.atnState = left;
  return new Handle(left, right);
}
origin: org.antlr/antlr4

buf.append("-").append(a.toString()).append("->").append(getStateString(t.target)).append('\n');
origin: uk.co.nichesolutions/antlr4

/** Build what amounts to an epsilon transition with an action.
 *  The action goes into ATN though it is ignored during prediction
 *  if {@link ActionTransition#actionIndex actionIndex}{@code <0}.
 */
@Override
public Handle action(ActionAST action) {
  //System.out.println("action: "+action);
  ATNState left = newState(action);
  ATNState right = newState(action);
  ActionTransition a = new ActionTransition(right, currentRule.index);
  left.addTransition(a);
  action.atnState = left;
  return new Handle(left, right);
}
origin: com.tunnelvisionlabs/antlr4

buf.append("-").append(a.toString()).append("->").append(getStateString(t.target)).append('\n');
origin: io.virtdata/virtdata-lib-realer

/** Build what amounts to an epsilon transition with an action.
 *  The action goes into ATN though it is ignored during prediction
 *  if {@link ActionTransition#actionIndex actionIndex}{@code <0}.
 */
@Override
public Handle action(ActionAST action) {
  //System.out.println("action: "+action);
  ATNState left = newState(action);
  ATNState right = newState(action);
  ActionTransition a = new ActionTransition(right, currentRule.index);
  left.addTransition(a);
  action.atnState = left;
  return new Handle(left, right);
}
origin: uk.co.nichesolutions/antlr4

buf.append("-").append(a.toString()).append("->").append(getStateString(t.target)).append('\n');
origin: com.impetus.fabric/fabric-jdbc-driver-shaded

/** Build what amounts to an epsilon transition with an action.
 *  The action goes into ATN though it is ignored during prediction
 *  if {@link ActionTransition#actionIndex actionIndex}{@code <0}.
 */
@Override
public Handle action(ActionAST action) {
  //System.out.println("action: "+action);
  ATNState left = newState(action);
  ATNState right = newState(action);
  ActionTransition a = new ActionTransition(right, currentRule.index);
  left.addTransition(a);
  action.atnState = left;
  return new Handle(left, right);
}
origin: org.antlr/antlr4

protected Handle action(GrammarAST node, LexerAction lexerAction) {
  ATNState left = newState(node);
  ATNState right = newState(node);
  boolean isCtxDependent = false;
  int lexerActionIndex = getLexerActionIndex(lexerAction);
  ActionTransition a =
    new ActionTransition(right, currentRule.index, lexerActionIndex, isCtxDependent);
  left.addTransition(a);
  node.atnState = left;
  Handle h = new Handle(left, right);
  return h;
}
origin: com.impetus.fabric/fabric-jdbc-driver-shaded

protected Handle action(GrammarAST node, LexerAction lexerAction) {
  ATNState left = newState(node);
  ATNState right = newState(node);
  boolean isCtxDependent = false;
  int lexerActionIndex = getLexerActionIndex(lexerAction);
  ActionTransition a =
    new ActionTransition(right, currentRule.index, lexerActionIndex, isCtxDependent);
  left.addTransition(a);
  node.atnState = left;
  Handle h = new Handle(left, right);
  return h;
}
origin: io.virtdata/virtdata-lib-realer

protected Handle action(GrammarAST node, LexerAction lexerAction) {
  ATNState left = newState(node);
  ATNState right = newState(node);
  boolean isCtxDependent = false;
  int lexerActionIndex = getLexerActionIndex(lexerAction);
  ActionTransition a =
    new ActionTransition(right, currentRule.index, lexerActionIndex, isCtxDependent);
  left.addTransition(a);
  node.atnState = left;
  Handle h = new Handle(left, right);
  return h;
}
origin: com.tunnelvisionlabs/antlr4

protected Handle action(GrammarAST node, LexerAction lexerAction) {
  ATNState left = newState(node);
  ATNState right = newState(node);
  boolean isCtxDependent = false;
  int lexerActionIndex = getLexerActionIndex(lexerAction);
  ActionTransition a =
    new ActionTransition(right, currentRule.index, lexerActionIndex, isCtxDependent);
  left.addTransition(a);
  node.atnState = left;
  Handle h = new Handle(left, right);
  return h;
}
origin: uk.co.nichesolutions/antlr4

protected Handle action(GrammarAST node, LexerAction lexerAction) {
  ATNState left = newState(node);
  ATNState right = newState(node);
  boolean isCtxDependent = false;
  int lexerActionIndex = getLexerActionIndex(lexerAction);
  ActionTransition a =
    new ActionTransition(right, currentRule.index, lexerActionIndex, isCtxDependent);
  left.addTransition(a);
  node.atnState = left;
  Handle h = new Handle(left, right);
  return h;
}
origin: com.impetus.fabric/fabric-jdbc-driver-shaded

  ActionTransition a = new ActionTransition(target, arg1, arg2, arg3 != 0);
  return a;
case Transition.SET : return new SetTransition(target, sets.get(arg1));
origin: io.virtdata/virtdata-lib-realer

  ActionTransition a = new ActionTransition(target, arg1, arg2, arg3 != 0);
  return a;
case Transition.SET : return new SetTransition(target, sets.get(arg1));
origin: uk.co.nichesolutions/antlr4-runtime

  ActionTransition a = new ActionTransition(target, arg1, arg2, arg3 != 0);
  return a;
case Transition.SET : return new SetTransition(target, sets.get(arg1));
origin: com.tunnelvisionlabs/antlr4

/** Build what amounts to an epsilon transition with an action.
 *  The action goes into ATN though it is ignored during prediction
 *  if {@link ActionTransition#actionIndex actionIndex}{@code <0}.
 */
@NotNull
@Override
public Handle action(@NotNull ActionAST action) {
  //System.out.println("action: "+action);
  ATNState left = newState(action);
  ATNState right = newState(action);
  ActionTransition a = new ActionTransition(right, currentRule.index);
  left.addTransition(a);
  action.atnState = left;
  return new Handle(left, right);
}
org.antlr.v4.runtime.atnActionTransition

Most used methods

  • <init>
  • toString

Popular in Java

  • Reading from database using SQL prepared statement
  • getApplicationContext (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • findViewById (Activity)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • String (java.lang)
  • Permission (java.security)
    Legacy security code; do not use.
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • JPanel (javax.swing)
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Top Sublime Text plugins
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