use of org.osate.aadl2.PropertyConstant in project osate2 by osate.
the class AadlProject method getSupportedTypeConversions.
public static List<List<Classifier>> getSupportedTypeConversions(EObject lookupContext) {
PropertyConstant constant = getSupportedTypeConversions_PropertyConstant(lookupContext);
PropertyExpression resolved = CodeGenUtil.resolveNamedValue(constant.getConstantValue());
return ((ListValue) resolved).getOwnedListElements().stream().map(element1 -> {
PropertyExpression resolved1 = CodeGenUtil.resolveNamedValue(element1);
return ((ListValue) resolved1).getOwnedListElements().stream().map(element2 -> {
PropertyExpression resolved2 = CodeGenUtil.resolveNamedValue(element2);
return ((ClassifierValue) resolved2).getClassifier();
}).collect(Collectors.toList());
}).collect(Collectors.toList());
}
use of org.osate.aadl2.PropertyConstant in project osate2 by osate.
the class AadlProject method getMaxByteCount.
public static long getMaxByteCount(EObject lookupContext) {
PropertyConstant constant = getMaxByteCount_PropertyConstant(lookupContext);
PropertyExpression resolved = CodeGenUtil.resolveNamedValue(constant.getConstantValue());
return ((IntegerLiteral) resolved).getValue();
}
use of org.osate.aadl2.PropertyConstant in project osate2 by osate.
the class AadlProject method getMaxAadlinteger.
public static long getMaxAadlinteger(EObject lookupContext) {
PropertyConstant constant = getMaxAadlinteger_PropertyConstant(lookupContext);
PropertyExpression resolved = CodeGenUtil.resolveNamedValue(constant.getConstantValue());
return ((IntegerLiteral) resolved).getValue();
}
use of org.osate.aadl2.PropertyConstant in project osate2 by osate.
the class AadlProject method getMaxThreadLimit.
public static long getMaxThreadLimit(EObject lookupContext) {
PropertyConstant constant = getMaxThreadLimit_PropertyConstant(lookupContext);
PropertyExpression resolved = CodeGenUtil.resolveNamedValue(constant.getConstantValue());
return ((IntegerLiteral) resolved).getValue();
}
use of org.osate.aadl2.PropertyConstant in project osate2 by osate.
the class AadlProject method getMaxWordSpace.
public static long getMaxWordSpace(EObject lookupContext) {
PropertyConstant constant = getMaxWordSpace_PropertyConstant(lookupContext);
PropertyExpression resolved = CodeGenUtil.resolveNamedValue(constant.getConstantValue());
return ((IntegerLiteral) resolved).getValue();
}
Aggregations