Package jetbrains.mps.generator.runtime
Class TemplateUtil
- java.lang.Object
 - 
- jetbrains.mps.generator.runtime.TemplateUtil
 
 
- 
public class TemplateUtil extends Object
Evgeny Gryaznov, 10/28/10 
- 
- 
Constructor Summary
Constructors Constructor Description TemplateUtil() 
- 
Method Summary
 
 - 
 
- 
- 
Method Detail
- 
singletonList
public static Collection<SNode> singletonList(SNode node)
 
- 
asList
public static Collection<SNode> asList(SNode... nodes)
 
- 
asList
public static Collection<SNode> asList(Object... nodesOrCollectionOfNodes)
 
- 
asIterable
public static <T> Iterable<T> asIterable(T... objects)
 
- 
asCollection
public static <T> Collection<T> asCollection(T... objects)
 
- 
assertTemplateParametersCount
public static void assertTemplateParametersCount(SNodeReference template, int expected, int actual) throws IllegalArgumentException
- Throws:
 IllegalArgumentException- if actual number of arguments doesn't match expected
 
- 
createStrictlyBeforeRule
public static TemplateMappingPriorityRule createStrictlyBeforeRule(TemplateMappingConfigRef left, TemplateMappingConfigRef right)
 
- 
createStrictlyTogetherRule
public static TemplateMappingPriorityRule createStrictlyTogetherRule(TemplateMappingConfigRef left, TemplateMappingConfigRef right)
 
- 
createBeforeOrTogetherRule
public static TemplateMappingPriorityRule createBeforeOrTogetherRule(TemplateMappingConfigRef left, TemplateMappingConfigRef right)
 
- 
createAfterOrTogetherRule
public static TemplateMappingPriorityRule createAfterOrTogetherRule(TemplateMappingConfigRef left, TemplateMappingConfigRef right)
 
- 
createStrictlyAfterRule
public static TemplateMappingPriorityRule createStrictlyAfterRule(TemplateMappingConfigRef left, TemplateMappingConfigRef right)
 
- 
createRefGlobal
public static TemplateMappingConfigRef createRefGlobal()
 
- 
createRefLocal
public static TemplateMappingConfigRef createRefLocal()
 
- 
createRefSet
public static TemplateMappingConfigRef createRefSet(TemplateMappingConfigRef... elements)
 
- 
createRefNormal
public static TemplateMappingConfigRef createRefNormal(String modelUID, String nodeUID, String mapConfigName)
 
- 
createRefExternal
public static TemplateMappingConfigRef createRefExternal(String moduleReference, TemplateMappingConfigRef inner)
 
 - 
 
 -