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.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)
-
-
-
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 interfaceProductionFactory<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 interfaceProductionFactory<java.lang.String,TOKEN>
-
createForToken
public java.lang.String createForToken(boolean many, boolean optional, TOKEN token)
- Specified by:
createForToken
in interfaceProductionFactory<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 interfaceProductionFactory<java.lang.String,TOKEN>
-
-