use of org.lara.language.specification.dsl.Declaration in project lara-framework by specs-feup.
the class LanguageSpecificationSideBar method toHtml.
private static String toHtml(Parameter parameter) {
Declaration declaration = parameter.getDeclaration();
String defaultValue = parameter.getDefaultValue();
String toHtml = toHtml(declaration);
if (!defaultValue.isEmpty()) {
toHtml += " = " + defaultValue;
}
return toHtml;
}
use of org.lara.language.specification.dsl.Declaration in project lara-framework by specs-feup.
the class NodeFactory method toNode.
public static AttributeNode toNode(Attribute attribute) {
DeclarationNode declNode = toNode(attribute.getDeclaration());
AttributeNode attrNode = new AttributeNode(declNode);
attribute.getToolTip().ifPresent(attrNode::setToolTip);
for (Declaration parameter : attribute.getParameters()) {
DeclarationNode paramNode = toNode(parameter);
attrNode.addChild(paramNode);
}
return attrNode;
}
Aggregations