Class SyntheticTerminalDetector


  • public class SyntheticTerminalDetector
    extends java.lang.Object
    Helper to identify synthetic terminal rules. This implementation answers true for any terminal rule that has a body in the form terminal MY_TERMINAL: 'synthetic:MY_TERMINAL';.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isSyntheticTerminalRule​(org.eclipse.xtext.TerminalRule rule)
      Answers true if the given terminal rule is synthetic.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SyntheticTerminalDetector

        public SyntheticTerminalDetector()
    • Method Detail

      • isSyntheticTerminalRule

        public boolean isSyntheticTerminalRule​(org.eclipse.xtext.TerminalRule rule)
        Answers true if the given terminal rule is synthetic. That is, the tokens for this rule will not be produced by the generated Antlr lexer but manually in a custom token source.