Class Templates.Fragment

    • Field Detail

      • arity

        private final int arity
      • cachedToString

        private java.lang.String cachedToString
    • Constructor Detail

      • Fragment

        protected Fragment​(int arity)
        Parameters:
        arity - number of fragment parameters
    • Method Detail

      • arity

        public int arity()
      • toCharSequence

        java.lang.CharSequence toCharSequence()
      • toString

        public java.lang.String toString()
        Ability to pass captured fragment and evaluate it as a string. For non-captured fragments or fragments which expects parameters, plain toString returned.
        Overrides:
        toString in class java.lang.Object