Kaynağa Gözat

changed visibility of private methods to protected

dominikjetzen@gmail.com 12 yıl önce
ebeveyn
işleme
7c279020e3

+ 9 - 9
plugins/org.yakindu.sct.generator.cpp/src/org/yakindu/sct/generator/cpp/StatemachineHeader.xtend

@@ -86,7 +86,7 @@ class StatemachineHeader extends Statemachine {
 		#endif /* «module().define»_H_ */
 	'''
 	
-	def private getInterfaceExtensions(ExecutionFlow flow) {
+	def protected getInterfaceExtensions(ExecutionFlow flow) {
 
 		var String interfaces = "";
 
@@ -99,14 +99,14 @@ class StatemachineHeader extends Statemachine {
 		return interfaces;
 	}
 	
-	def private createScope(Scope scope) {
+	def protected createScope(Scope scope) {
 		switch scope {
 			InterfaceScope: scope.createScope()
 			InternalScope: scope.createPublicScope
 		}
 	}
 	
-	def private createScope(InterfaceScope scope)
+	def protected createScope(InterfaceScope scope)
 	'''
 		«scope.createInterface()»
 «««		«scope.createListenerInterface(entry)»
@@ -121,7 +121,7 @@ class StatemachineHeader extends Statemachine {
 		«ENDIF»
 	'''
 	
-	def private createInterface(StatechartScope scope)
+	def protected createInterface(StatechartScope scope)
 	'''
 		//! Inner class for «scope.interfaceName» interface scope.
 		class «scope.interfaceName» {
@@ -139,7 +139,7 @@ class StatemachineHeader extends Statemachine {
 		};
 	'''
 	
-	def private createPublicScope(InternalScope scope) {
+	def protected createPublicScope(InternalScope scope) {
 		'''
 		«IF scope.hasOperations()»
 			class «internalOperationCallbackName» {
@@ -166,12 +166,12 @@ class StatemachineHeader extends Statemachine {
 		'''
 	}
 	
-	def private signature(OperationDefinition it)
+	def protected signature(OperationDefinition it)
 	'''
 		«type.targetLanguageName» «name.asEscapedIdentifier»(«FOR parameter : parameters SEPARATOR ', '»«parameter.type.targetLanguageName» «parameter.identifier»«ENDFOR»)
 	'''
 	
-	def private identifier(Parameter parameter) {
+	def protected identifier(Parameter parameter) {
 		if (parameter.name.isCKeyword()) {
 			return parameter.name + "Arg"
 		}
@@ -202,7 +202,7 @@ class StatemachineHeader extends Statemachine {
 		«ENDFOR»
 	'''
 	
-	def private publicFunctionPrototypes(ExecutionFlow it) '''
+	def protected publicFunctionPrototypes(ExecutionFlow it) '''
 		«IStatemachineFunctions»
 		
 		«IF timed»
@@ -210,7 +210,7 @@ class StatemachineHeader extends Statemachine {
 		«ENDIF»
 	'''
 	
-	def private IStatemachineFunctions() '''
+	def protected IStatemachineFunctions() '''
 		void init();
 		
 		void enter();

+ 1 - 1
plugins/org.yakindu.sct.generator.cpp/src/org/yakindu/sct/generator/cpp/TimedStatemachineInterface.xtend

@@ -27,7 +27,7 @@ class TimedStatemachineInterface {
 		fsa.generateFile(timedStatemachineInterface.h, flow.content(entry) )
 	}
 	
-	def private content(ExecutionFlow it, GeneratorEntry entry) {
+	def protected content(ExecutionFlow it, GeneratorEntry entry) {
 		'''
 		«entry.licenseText»
 		

+ 1 - 1
plugins/org.yakindu.sct.generator.cpp/src/org/yakindu/sct/generator/cpp/TimerInterface.xtend

@@ -27,7 +27,7 @@ class TimerInterface {
 		fsa.generateFile(timerInterface.h, flow.content(entry) )
 	}
 	
-	def private content(ExecutionFlow it, GeneratorEntry entry) {
+	def protected content(ExecutionFlow it, GeneratorEntry entry) {
 		'''
 		«entry.licenseText»