use of org.whole.lang.model.IEntity in project whole by wholeplatform.
the class OrPart method getModelSpecificChildren.
protected List<IEntity> getModelSpecificChildren() {
Or entity = getModelEntity();
List<IEntity> list = new ArrayList<IEntity>(2);
list.add(entity.getPredicate1());
list.add(entity.getPredicate2());
return list;
}
use of org.whole.lang.model.IEntity in project whole by wholeplatform.
the class ProductionPart method getModelSpecificChildren.
protected List<IEntity> getModelSpecificChildren() {
Production production = getModelEntity();
List<IEntity> list = new ArrayList<IEntity>(3);
list.add(production.getName());
list.add(production.getRule());
list.add(production.getTemplate());
return list;
}
use of org.whole.lang.model.IEntity in project whole by wholeplatform.
the class RepeatPart method getModelSpecificChildren.
protected List<IEntity> getModelSpecificChildren() {
Repeat entity = getModelEntity();
List<IEntity> list = new ArrayList<IEntity>(4);
list.add(entity.getLowerBound());
list.add(entity.getUpperBound());
list.add(entity.getSeparator());
list.add(entity.getRule());
return list;
}
use of org.whole.lang.model.IEntity in project whole by wholeplatform.
the class GrammarsUIInterpreterVisitor method createConfigurations.
public static Map<String, IEntity> createConfigurations(IEntity grammarBased) {
FeatureDescriptorEnum fdEnum = grammarBased.wGetLanguageKit().getFeatureDescriptorEnum();
Map<String, IEntity> configurations = new HashMap<String, IEntity>();
ScannerIterator<IEntity> i = IteratorFactory.childScannerIterator();
i.reset(grammarBased);
for (IEntity configuration : i) {
IEntity name = configuration.wGet(fdEnum.valueOf("name"));
configurations.put(name.wStringValue(), configuration);
}
return configurations;
}
use of org.whole.lang.model.IEntity in project whole by wholeplatform.
the class SplitPart method getModelSpecificChildren.
protected List<IEntity> getModelSpecificChildren() {
Split entity = getModelEntity();
List<IEntity> list = new ArrayList<IEntity>(2);
list.add(entity.getSplitter());
list.add(entity.getRule());
return list;
}
Aggregations