use of org.lara.language.specification.dsl.types.GenericType in project lara-framework by specs-feup.
the class LanguageSpecificationSideBar method getActions.
private List<Action> getActions(JoinPointClass joinPoint) {
switch(sortingMethod) {
case ALPHABETICALLY:
return getAlphabetical(joinPoint, jp -> jp.getActions());
case HIERARCHICALLY:
List<Action> actions = new ArrayList<>();
getHierarchical(joinPoint, actions, jp -> jp.getActionsSelf(), jp -> new Action(new GenericType(SEPARATOR_TYPE, false), jp.getName()));
return actions;
default:
throw new NotImplementedException(sortingMethod);
}
}
use of org.lara.language.specification.dsl.types.GenericType in project lara-framework by specs-feup.
the class LanguageSpecificationSideBar method getAttributes.
private List<Attribute> getAttributes(JoinPointClass joinPoint) {
switch(sortingMethod) {
case ALPHABETICALLY:
return getAlphabetical(joinPoint, jp -> jp.getAttributes());
case HIERARCHICALLY:
List<Attribute> attributes = new ArrayList<>();
getHierarchical(joinPoint, attributes, jp -> jp.getAttributesSelf(), jp -> new Attribute(new GenericType(SEPARATOR_TYPE, false), jp.getName()));
return attributes;
default:
throw new NotImplementedException(sortingMethod);
}
}
Aggregations