org.eclipse.xtext.util.formallang
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>
- Author:
- Moritz Eysholdt - Initial contribution and API
Field Summary |
protected com.google.common.base.Function<TOKEN,java.lang.String> |
token2String
|
Method Summary |
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 |
token2String
protected com.google.common.base.Function<TOKEN,java.lang.String> token2String
ProductionStringFactory
public ProductionStringFactory()
ProductionStringFactory
public ProductionStringFactory(com.google.common.base.Function<TOKEN,java.lang.String> token2String)
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>
createForToken
public java.lang.String createForToken(boolean many,
boolean optional,
TOKEN token)
- Specified by:
createForToken
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>