Class ProductionStringFactory<TOKEN>
- java.lang.Object
-
- org.eclipse.xtext.util.formallang.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
-
Constructor Summary
Constructors Constructor Description ProductionStringFactory()ProductionStringFactory(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.Stringcard(boolean many, boolean optional)java.lang.StringcreateForAlternativeChildren(boolean many, boolean optional, java.lang.Iterable<java.lang.String> children)java.lang.StringcreateForSequentialChildren(boolean many, boolean optional, java.lang.Iterable<java.lang.String> children)java.lang.StringcreateForToken(boolean many, boolean optional, TOKEN token)java.lang.StringcreateForUnordertedChildren(boolean many, boolean optional, java.lang.Iterable<java.lang.String> children)
-
-
-
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:
createForAlternativeChildrenin interfaceProductionFactory<java.lang.String,TOKEN>
-
createForSequentialChildren
public java.lang.String createForSequentialChildren(boolean many, boolean optional, java.lang.Iterable<java.lang.String> children)- Specified by:
createForSequentialChildrenin interfaceProductionFactory<java.lang.String,TOKEN>
-
createForToken
public java.lang.String createForToken(boolean many, boolean optional, TOKEN token)- Specified by:
createForTokenin interfaceProductionFactory<java.lang.String,TOKEN>
-
createForUnordertedChildren
public java.lang.String createForUnordertedChildren(boolean many, boolean optional, java.lang.Iterable<java.lang.String> children)- Specified by:
createForUnordertedChildrenin interfaceProductionFactory<java.lang.String,TOKEN>
-
-