Class ProductionStringFactory<TOKEN>

  • All Implemented Interfaces:
    ProductionFactory<java.lang.String,​TOKEN>

    public class ProductionStringFactory<TOKEN>
    extends java.lang.Object
    implements ProductionFactory<java.lang.String,​TOKEN>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected com.google.common.base.Function<TOKEN,​java.lang.String> token2String  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.String card​(boolean many, boolean optional)  
      java.lang.String createForAlternativeChildren​(boolean many, boolean optional, java.lang.Iterable<java.lang.String> children)  
      java.lang.String createForSequentialChildren​(boolean many, boolean optional, java.lang.Iterable<java.lang.String> children)  
      java.lang.String createForToken​(boolean many, boolean optional, TOKEN token)  
      java.lang.String createForUnordertedChildren​(boolean many, boolean optional, java.lang.Iterable<java.lang.String> children)  
      • Methods inherited from class java.lang.Object

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

      • token2String

        protected com.google.common.base.Function<TOKEN,​java.lang.String> token2String
    • Constructor Detail

      • ProductionStringFactory

        public ProductionStringFactory()
      • ProductionStringFactory

        public ProductionStringFactory​(com.google.common.base.Function<TOKEN,​java.lang.String> token2String)
    • Method Detail

      • card

        protected java.lang.String card​(boolean many,
                                        boolean optional)
      • createForAlternativeChildren

        public java.lang.String createForAlternativeChildren​(boolean many,
                                                             boolean optional,
                                                             java.lang.Iterable<java.lang.String> children)
        Specified by:
        createForAlternativeChildren in interface ProductionFactory<java.lang.String,​TOKEN>
      • createForSequentialChildren

        public java.lang.String createForSequentialChildren​(boolean many,
                                                            boolean optional,
                                                            java.lang.Iterable<java.lang.String> children)
        Specified by:
        createForSequentialChildren in interface ProductionFactory<java.lang.String,​TOKEN>
      • createForUnordertedChildren

        public java.lang.String createForUnordertedChildren​(boolean many,
                                                            boolean optional,
                                                            java.lang.Iterable<java.lang.String> children)
        Specified by:
        createForUnordertedChildren in interface ProductionFactory<java.lang.String,​TOKEN>