congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
TerminalAST
Code IndexAdd Tabnine to your IDE (free)

How to use
TerminalAST
in
org.antlr.v4.tool.ast

Best Java code snippets using org.antlr.v4.tool.ast.TerminalAST (Showing top 20 results out of 315)

origin: org.antlr/antlr4

@Override
public TerminalAST dupNode() { return new TerminalAST(this); }
origin: org.antlr/antlr4

@Override
public void stringRef(TerminalAST ref) {
  strings.add(ref.getText());
}
@Override
origin: uk.co.nichesolutions/antlr4

@Override
public void stringRef(TerminalAST ref) {
  strings.add(ref.getText());
}
@Override
origin: uk.co.nichesolutions/antlr4

@Override
public TerminalAST dupNode() { return new TerminalAST(this); }
origin: com.tunnelvisionlabs/antlr4

@Override
public void stringRef(TerminalAST ref) {
  strings.add(ref.getText());
}
@Override
origin: com.tunnelvisionlabs/antlr4

@Override
public TerminalAST dupNode() { return new TerminalAST(this); }
origin: com.impetus.fabric/fabric-jdbc-driver-shaded

@Override
public void stringRef(TerminalAST ref) {
  strings.add(ref.getText());
}
@Override
origin: com.impetus.fabric/fabric-jdbc-driver-shaded

@Override
public TerminalAST dupNode() { return new TerminalAST(this); }
origin: io.virtdata/virtdata-lib-realer

@Override
public void stringRef(TerminalAST ref) {
  strings.add(ref.getText());
}
@Override
origin: io.virtdata/virtdata-lib-realer

@Override
public TerminalAST dupNode() { return new TerminalAST(this); }
origin: org.antlr/antlr4

@Override
public void stringRef(TerminalAST ref) {
  terminals.add(ref);
  strings.add(ref.getText());
  if ( currentRule!=null ) {
    currentRule.alt[currentOuterAltNumber].tokenRefs.map(ref.getText(), ref);
  }
}
origin: org.antlr/antlr4

@Override
/** Make sure even imaginary nodes know the input stream */
public Object create(int tokenType, String text) {
  GrammarAST t;
  if ( tokenType==ANTLRParser.RULE ) {
    // needed by TreeWizard to make RULE tree
    t = new RuleAST(new CommonToken(tokenType, text));
  }
  else if ( tokenType==ANTLRParser.STRING_LITERAL ) {
    // implicit lexer construction done with wizard; needs this node type
    // whereas grammar ANTLRParser.g can use token option to spec node type
    t = new TerminalAST(new CommonToken(tokenType, text));
  }
  else {
    t = (GrammarAST)super.create(tokenType, text);
  }
  t.token.setInputStream(input);
  return t;
}
origin: com.tunnelvisionlabs/antlr4

@Override
public void stringRef(TerminalAST ref) {
  terminals.add(ref);
  strings.add(ref.getText());
  if ( currentRule!=null ) {
    currentRule.alt[currentOuterAltNumber].tokenRefs.map(ref.getText(), ref);
  }
}
origin: io.virtdata/virtdata-lib-realer

@Override
/** Make sure even imaginary nodes know the input stream */
public Object create(int tokenType, String text) {
  GrammarAST t;
  if ( tokenType==ANTLRParser.RULE ) {
    // needed by TreeWizard to make RULE tree
    t = new RuleAST(new CommonToken(tokenType, text));
  }
  else if ( tokenType==ANTLRParser.STRING_LITERAL ) {
    // implicit lexer construction done with wizard; needs this node type
    // whereas grammar ANTLRParser.g can use token option to spec node type
    t = new TerminalAST(new CommonToken(tokenType, text));
  }
  else {
    t = (GrammarAST)super.create(tokenType, text);
  }
  t.token.setInputStream(input);
  return t;
}
origin: com.impetus.fabric/fabric-jdbc-driver-shaded

@Override
public void stringRef(TerminalAST ref) {
  terminals.add(ref);
  strings.add(ref.getText());
  if ( currentRule!=null ) {
    currentRule.alt[currentOuterAltNumber].tokenRefs.map(ref.getText(), ref);
  }
}
origin: uk.co.nichesolutions/antlr4

@Override
/** Make sure even imaginary nodes know the input stream */
public Object create(int tokenType, String text) {
  GrammarAST t;
  if ( tokenType==ANTLRParser.RULE ) {
    // needed by TreeWizard to make RULE tree
    t = new RuleAST(new CommonToken(tokenType, text));
  }
  else if ( tokenType==ANTLRParser.STRING_LITERAL ) {
    // implicit lexer construction done with wizard; needs this node type
    // whereas grammar ANTLRParser.g can use token option to spec node type
    t = new TerminalAST(new CommonToken(tokenType, text));
  }
  else {
    t = (GrammarAST)super.create(tokenType, text);
  }
  t.token.setInputStream(input);
  return t;
}
origin: uk.co.nichesolutions/antlr4

@Override
public void stringRef(TerminalAST ref) {
  terminals.add(ref);
  strings.add(ref.getText());
  if ( currentRule!=null ) {
    currentRule.alt[currentOuterAltNumber].tokenRefs.map(ref.getText(), ref);
  }
}
origin: com.impetus.fabric/fabric-jdbc-driver-shaded

@Override
/** Make sure even imaginary nodes know the input stream */
public Object create(int tokenType, String text) {
  GrammarAST t;
  if ( tokenType==ANTLRParser.RULE ) {
    // needed by TreeWizard to make RULE tree
    t = new RuleAST(new CommonToken(tokenType, text));
  }
  else if ( tokenType==ANTLRParser.STRING_LITERAL ) {
    // implicit lexer construction done with wizard; needs this node type
    // whereas grammar ANTLRParser.g can use token option to spec node type
    t = new TerminalAST(new CommonToken(tokenType, text));
  }
  else {
    t = (GrammarAST)super.create(tokenType, text);
  }
  t.token.setInputStream(input);
  return t;
}
origin: io.virtdata/virtdata-lib-realer

@Override
public void stringRef(TerminalAST ref) {
  terminals.add(ref);
  strings.add(ref.getText());
  if ( currentRule!=null ) {
    currentRule.alt[currentOuterAltNumber].tokenRefs.map(ref.getText(), ref);
  }
}
origin: com.tunnelvisionlabs/antlr4

@Override
/** Make sure even imaginary nodes know the input stream */
public GrammarAST create(int tokenType, String text) {
  GrammarAST t;
  if ( tokenType==ANTLRParser.RULE ) {
    // needed by TreeWizard to make RULE tree
    t = new RuleAST(new CommonToken(tokenType, text));
  }
  else if ( tokenType==ANTLRParser.STRING_LITERAL ) {
    // implicit lexer construction done with wizard; needs this node type
    // whereas grammar ANTLRParser.g can use token option to spec node type
    t = new TerminalAST(new CommonToken(tokenType, text));
  }
  else {
    t = (GrammarAST)super.create(tokenType, text);
  }
  t.token.setInputStream(input);
  return t;
}
org.antlr.v4.tool.astTerminalAST

Most used methods

  • <init>
  • getText

Popular in Java

  • Creating JSON documents from java classes using gson
  • scheduleAtFixedRate (Timer)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getExternalFilesDir (Context)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • JPanel (javax.swing)
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Top Vim 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