Class CatalanUnpairedBracketsRule


  • public class CatalanUnpairedBracketsRule
    extends org.languagetool.rules.GenericUnpairedBracketsRule
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.util.List<java.lang.String> CA_END_SYMBOLS  
      private static java.util.List<java.lang.String> CA_START_SYMBOLS  
      private static java.util.regex.Pattern NUMBER  
      private static java.util.regex.Pattern VALID_BEFORE_CLOSING_PARENTHESIS  
      • Fields inherited from class org.languagetool.rules.Rule

        messages
    • Constructor Summary

      Constructors 
      Constructor Description
      CatalanUnpairedBracketsRule​(java.util.ResourceBundle messages, org.languagetool.Language language)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getId()  
      protected boolean isNoException​(java.lang.String tokenStr, org.languagetool.AnalyzedTokenReadings[] tokens, int i, int j, boolean precSpace, boolean follSpace, org.languagetool.rules.UnsyncStack<org.languagetool.rules.SymbolLocator> symbolStack)  
      • Methods inherited from class org.languagetool.rules.GenericUnpairedBracketsRule

        getDescription, match, minToCheckParagraph
      • Methods inherited from class org.languagetool.rules.TextLevelRule

        estimateContextForSureMatch, match, match
      • Methods inherited from class org.languagetool.rules.Rule

        addExamplePair, getAntiPatterns, getCategory, getConfigureText, getCorrectExamples, getDefaultValue, getErrorTriggeringExamples, getIncorrectExamples, getLocQualityIssueType, getMaxConfigurableValue, getMinConfigurableValue, getSentenceWithImmunization, getUrl, hasConfigurableValue, isDefaultOff, isDefaultTempOff, isDictionaryBasedSpellingRule, isOfficeDefaultOff, isOfficeDefaultOn, makeAntiPatterns, setCategory, setCorrectExamples, setDefaultOff, setDefaultOn, setDefaultTempOff, setErrorTriggeringExamples, setIncorrectExamples, setLocQualityIssueType, setOfficeDefaultOff, setOfficeDefaultOn, setUrl, supportsLanguage, toRuleMatchArray, useInOffice
      • Methods inherited from class java.lang.Object

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

      • CA_START_SYMBOLS

        private static final java.util.List<java.lang.String> CA_START_SYMBOLS
      • CA_END_SYMBOLS

        private static final java.util.List<java.lang.String> CA_END_SYMBOLS
      • VALID_BEFORE_CLOSING_PARENTHESIS

        private static final java.util.regex.Pattern VALID_BEFORE_CLOSING_PARENTHESIS
      • NUMBER

        private static final java.util.regex.Pattern NUMBER
    • Constructor Detail

      • CatalanUnpairedBracketsRule

        public CatalanUnpairedBracketsRule​(java.util.ResourceBundle messages,
                                           org.languagetool.Language language)
    • Method Detail

      • getId

        public java.lang.String getId()
        Overrides:
        getId in class org.languagetool.rules.GenericUnpairedBracketsRule
      • isNoException

        protected boolean isNoException​(java.lang.String tokenStr,
                                        org.languagetool.AnalyzedTokenReadings[] tokens,
                                        int i,
                                        int j,
                                        boolean precSpace,
                                        boolean follSpace,
                                        org.languagetool.rules.UnsyncStack<org.languagetool.rules.SymbolLocator> symbolStack)
        Overrides:
        isNoException in class org.languagetool.rules.GenericUnpairedBracketsRule