Search in sources :

Example 6 with Property

use of org.yakindu.base.types.Property in project statecharts by Yakindu.

the class AbstractTypeSystem method getPropertyExtensions.

@Override
public List<Property> getPropertyExtensions(Type type) {
    List<Property> result = new ArrayList<>();
    result.addAll(extensionPropertyRegistry.get(type));
    List<Type> superTypes = getSuperTypes(type);
    for (Type superType : superTypes) {
        result.addAll(extensionPropertyRegistry.get(superType));
    }
    return result;
}
Also used : PrimitiveType(org.yakindu.base.types.PrimitiveType) Type(org.yakindu.base.types.Type) ArrayList(java.util.ArrayList) Property(org.yakindu.base.types.Property)

Aggregations

Property (org.yakindu.base.types.Property)6 ArrayList (java.util.ArrayList)1 EObject (org.eclipse.emf.ecore.EObject)1 Check (org.eclipse.xtext.validation.Check)1 Test (org.junit.Test)1 ArgumentExpression (org.yakindu.base.expressions.expressions.ArgumentExpression)1 AssignmentExpression (org.yakindu.base.expressions.expressions.AssignmentExpression)1 ElementReferenceExpression (org.yakindu.base.expressions.expressions.ElementReferenceExpression)1 Expression (org.yakindu.base.expressions.expressions.Expression)1 FeatureCall (org.yakindu.base.expressions.expressions.FeatureCall)1 PostFixUnaryExpression (org.yakindu.base.expressions.expressions.PostFixUnaryExpression)1 PrimitiveType (org.yakindu.base.types.PrimitiveType)1 Type (org.yakindu.base.types.Type)1 GeneratorModel (org.yakindu.sct.model.sgen.GeneratorModel)1 PropertyDefinition (org.yakindu.sct.model.sgen.PropertyDefinition)1 Scope (org.yakindu.sct.model.sgraph.Scope)1 Statechart (org.yakindu.sct.model.sgraph.Statechart)1 InterfaceScope (org.yakindu.sct.model.stext.stext.InterfaceScope)1 RefactoringTest (org.yakindu.sct.refactoring.refactor.RefactoringTest)1