Class PlainTextLanguage

  • All Implemented Interfaces:
    Comparable<Language>, Language

    @Experimental
    public final class PlainTextLanguage
    extends BaseLanguageModule
    A dummy language implementation whose parser produces a single node. This is provided for cases where a non-null language is required, but the parser is not useful. This is useful eg to mock rules when no other language is on the classpath. This language is not exposed by LanguageRegistry and can only be used explicitly with getInstance().
    Since:
    6.48.0
    Author:
    Clément Fournier
    • Method Detail

      • getInstance

        public static Language getInstance()
        Returns the singleton instance of this language.