Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Belle2017-03-06 14:56:04 +0000
committerJan Belle2017-03-06 14:56:04 +0000
commitce84f911687eb7a9a299ccfbd37f84afa43bef9d (patch)
treef9d4b008591f157453e8d5728bb9fbe41743239d /plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c
parent881e6359f7b07c1d6e8a27e9b81a06172819b3fd (diff)
downloadorg.eclipse.etrice-ce84f911687eb7a9a299ccfbd37f84afa43bef9d.tar.gz
org.eclipse.etrice-ce84f911687eb7a9a299ccfbd37f84afa43bef9d.tar.xz
org.eclipse.etrice-ce84f911687eb7a9a299ccfbd37f84afa43bef9d.zip
Prepared c generator and java generator for extension
Diffstat (limited to 'plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c')
-rw-r--r--plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/ActorClassGen.xtend16
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/ActorClassGen.xtend b/plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/ActorClassGen.xtend
index c4d14fa5e..471b0a7c2 100644
--- a/plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/ActorClassGen.xtend
+++ b/plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/ActorClassGen.xtend
@@ -34,13 +34,13 @@ import org.eclipse.etrice.generator.generic.RoomExtensions
class ActorClassGen extends GenericActorClassGenerator {
@Inject protected extension RoomExtensions
- @Inject extension CExtensions
- @Inject extension ProcedureHelpers
- @Inject extension StateMachineGen
+ @Inject protected extension CExtensions
+ @Inject protected extension ProcedureHelpers
+ @Inject protected extension StateMachineGen
@Inject protected ILanguageExtension langExt
- @Inject IGeneratorFileIo fileIO
- @Inject ILogger logger
+ @Inject protected IGeneratorFileIo fileIO
+ @Inject protected ILogger logger
def doGenerate(Root root) {
for (xpac: root.xpActorClasses) {
@@ -66,7 +66,7 @@ class ActorClassGen extends GenericActorClassGenerator {
}
}
- def private generateHeaderFile(Root root, ExpandedActorClass xpac) {
+ def protected generateHeaderFile(Root root, ExpandedActorClass xpac) {
val ac = xpac.actorClass
val eventPorts = ac.allEndPorts.filter(p|(p.protocol as ProtocolClass).commType==CommunicationType::EVENT_DRIVEN)
val sendPorts = ac.allEndPorts.filter(p|(p.protocol as ProtocolClass).commType==CommunicationType::DATA_DRIVEN && p.conjugated)
@@ -201,7 +201,7 @@ class ActorClassGen extends GenericActorClassGenerator {
'''
}
- def private generateUtilsFile(Root root, ExpandedActorClass xpac) {
+ def protected generateUtilsFile(Root root, ExpandedActorClass xpac) {
val ac = xpac.actorClass
val eventPorts = ac.allEndPorts.filter(p|(p.protocol as ProtocolClass).commType==CommunicationType::EVENT_DRIVEN)
val replEventPorts = eventPorts.filter[multiplicity!=1]
@@ -311,7 +311,7 @@ class ActorClassGen extends GenericActorClassGenerator {
'''«FOR a : op.arguments SEPARATOR ", "»«a.name»«ENDFOR»'''
}
- def private generateSourceFile(Root root, ExpandedActorClass xpac) {
+ def protected generateSourceFile(Root root, ExpandedActorClass xpac) {
val ac = xpac.actorClass
val async = ac.commType==ComponentCommunicationType::ASYNCHRONOUS
val eventDriven = ac.commType==ComponentCommunicationType::EVENT_DRIVEN

Back to the top