Class AbstractConfig<T extends AbstractConfig<T>>

    • Method Detail

      • setClassNameCSS

        🡅  🡇     🗕  🗗  🗖
        public AbstractConfig<TsetClassNameCSS​(byte whichOne,
                                                 java.lang.String className)
        Code:
        Exact Method Body:
         checkWhichOne(whichOne);
         ClassNameCSSException.check(className);
         this.classNames[whichOne] = className;
         return this;
        
      • getClassName

        🡅  🡇     🗕  🗗  🗖
        public java.lang.String getClassName​(byte whichOne)
        Code:
        Exact Method Body:
         checkWhichOne(whichOne);  return this.classNames[whichOne];
        
      • getUtilized

        🡅  🡇     🗕  🗗  🗖
        public boolean getUtilized​(byte whichOne)
        Code:
        Exact Method Body:
         checkWhichOne(whichOne);  return this.utilize[whichOne];
        
      • generateHiLiterHelper

        🡅  🡇     🗕  🗗  🗖
        protected Ret2<TagNode[],​TagNode[]> generateHiLiterHelper()
        Code:
        Exact Method Body:
         final String    cAttr       = this.upperOrLower_ClassAttrName ? "CLASS" : "class";
         final boolean   useQuotes   = (this.quotes != null);
         final String    q           = useQuotes ? ("" + this.quotes.quote) : "";
        
         final TagNode CLOSE_SPAN = this.upperOrLower_TagName
             ? HTMLTags.hasTag("SPAN", TC.ClosingTags)
             : HTMLTags.hasTag("span", TC.ClosingTags);
        
         final TagNode CLOSE_BOLD = this.upperOrLower_TagName
             ? HTMLTags.hasTag("B", TC.ClosingTags)
             : HTMLTags.hasTag("b", TC.ClosingTags);
        
         final TagNode[] openers = new TagNode[this.CONFIG_ARR_LEN];
         final TagNode[] closers = new TagNode[this.CONFIG_ARR_LEN];
        
         for (int i=1; i < this.CONFIG_ARR_LEN; i++)
         {
             openers[i] = this.utilize[i]
                 ? TAG(cAttr, q, this.classNames[i], this.spansOrBolds[i])
                 : null;
        
             closers[i] = this.utilize[i]
                 ? (spansOrBolds[i] ? CLOSE_SPAN : CLOSE_BOLD)
                 : null;
         }
        
         return new Ret2<>(openers, closers);
        
      • equals

        🡅  🡇     🗕  🗗  🗖
        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
        Code:
        Exact Method Body:
         if (! (other instanceof Torello.JavaDoc.SyntaxHiLite.AbstractConfig))
             return false;
        
         @SuppressWarnings("rawtypes")
         Torello.JavaDoc.SyntaxHiLite.AbstractConfig o =
             (Torello.JavaDoc.SyntaxHiLite.AbstractConfig) other;
        
         return
                 (this.CONFIG_ARR_LEN == o.CONFIG_ARR_LEN)
             &&  Objects.equals(this.captureTheClassDummy, o.captureTheClassDummy)
        
             &&  Arrays.equals(this.classNames,      o.classNames)
             &&  Arrays.equals(this.spansOrBolds,    o.spansOrBolds)
             &&  Arrays.equals(this.utilize,         o.utilize)
        
             // Tag-Case / Upper-Case or Lower-Case
             &&  (this.upperOrLower_TagName          == o.upperOrLower_TagName)
             &&  (this.upperOrLower_ClassAttrName    == o.upperOrLower_ClassAttrName)
             &&  Objects.equals(this.quotes, o.quotes);
        
      • hashCode

        🡅     🗕  🗗  🗖
        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
        Code:
        Exact Method Body:
         int ret = 0;
        
         for (int i=0; i < this.CONFIG_ARR_LEN; i += 3)
             ret += this.classNames[i].hashCode();
        
         for (int i=0; i < this.CONFIG_ARR_LEN; i += 3)
             ret += (this.spansOrBolds[i] ? 1 : 0) * 1;
        
         return ret;