Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frascati
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
114
Issues
114
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
frascati
frascati
Commits
81b6b67b
Commit
81b6b67b
authored
Jan 18, 2017
by
seinturi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor: rename TypeGeneratorItf into SourceCodeGeneratorItf.
parent
5f79869a
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
24 additions
and
24 deletions
+24
-24
tinfi/module/adlparser-scaadl/src/main/java/org/ow2/frascati/tinfi/emf/EMFParserSupportImpl.java
...java/org/ow2/frascati/tinfi/emf/EMFParserSupportImpl.java
+2
-2
tinfi/module/opt-comp/core/src/main/java/org/ow2/frascati/tinfi/opt/comp/FCCompCtrlSourceCodeGenerator.java
...rascati/tinfi/opt/comp/FCCompCtrlSourceCodeGenerator.java
+3
-3
tinfi/module/opt-oo/core/src/main/java/org/ow2/frascati/tinfi/opt/oo/ClientInterfaceClassGenerator.java
.../frascati/tinfi/opt/oo/ClientInterfaceClassGenerator.java
+3
-3
tinfi/module/opt-oo/core/src/main/java/org/ow2/frascati/tinfi/opt/oo/FCOOCtrlSourceCodeGenerator.java
...w2/frascati/tinfi/opt/oo/FCOOCtrlSourceCodeGenerator.java
+3
-3
tinfi/module/opt-oo/core/src/main/java/org/ow2/frascati/tinfi/opt/oo/ServiceReferenceClassGenerator.java
...frascati/tinfi/opt/oo/ServiceReferenceClassGenerator.java
+2
-2
tinfi/module/opt-oo/core/src/main/java/org/ow2/frascati/tinfi/opt/oo/light/FCOOCtrlSourceCodeGenerator.java
...scati/tinfi/opt/oo/light/FCOOCtrlSourceCodeGenerator.java
+2
-2
tinfi/module/opt-oo/core/src/main/java/org/ow2/frascati/tinfi/opt/oo/light/InitializerOOCtrlClassGenerator.java
...i/tinfi/opt/oo/light/InitializerOOCtrlClassGenerator.java
+2
-2
tinfi/module/opt-oo/core/src/main/java/org/ow2/frascati/tinfi/opt/oo/light/SCAContentControllerClassGenerator.java
...infi/opt/oo/light/SCAContentControllerClassGenerator.java
+3
-3
tinfi/module/opt-oo/core/src/main/java/org/ow2/frascati/tinfi/tinfilet/EmptySubClassGenerator.java
...g/ow2/frascati/tinfi/tinfilet/EmptySubClassGenerator.java
+2
-2
tinfi/module/opt-oo/core/src/main/java/org/ow2/frascati/tinfi/tinfilet/TinfiParserSupportImpl.java
...g/ow2/frascati/tinfi/tinfilet/TinfiParserSupportImpl.java
+2
-2
No files found.
tinfi/module/adlparser-scaadl/src/main/java/org/ow2/frascati/tinfi/emf/EMFParserSupportImpl.java
View file @
81b6b67b
...
...
@@ -66,7 +66,7 @@ import org.objectweb.fractal.api.type.InterfaceType;
import
org.objectweb.fractal.api.type.TypeFactory
;
import
org.objectweb.fractal.julia.type.BasicComponentType
;
import
org.objectweb.fractal.julia.type.BasicInterfaceType
;
import
org.objectweb.fractal.juliac.api.
Typ
eGeneratorItf
;
import
org.objectweb.fractal.juliac.api.
SourceCod
eGeneratorItf
;
import
org.objectweb.fractal.juliac.commons.lang.StringHelper
;
import
org.objectweb.fractal.juliac.conf.JuliacConfig
;
import
org.objectweb.fractal.juliac.desc.AbstractADLSupportImpl
;
...
...
@@ -125,7 +125,7 @@ public class EMFParserSupportImpl extends AbstractADLSupportImpl<Composite> {
}
@Override
protected
Typ
eGeneratorItf
getComponentDescFactoryClassGenerator
(
protected
SourceCod
eGeneratorItf
getComponentDescFactoryClassGenerator
(
ComponentDesc
cdesc
,
String
targetname
)
{
return
new
ComponentDescFactoryClassGenerator
(
jc
,
cdesc
,
targetname
);
...
...
tinfi/module/opt-comp/core/src/main/java/org/ow2/frascati/tinfi/opt/comp/FCCompCtrlSourceCodeGenerator.java
View file @
81b6b67b
...
...
@@ -32,7 +32,7 @@ import org.objectweb.fractal.api.type.InterfaceType;
import
org.objectweb.fractal.julia.type.BasicInterfaceType
;
import
org.objectweb.fractal.juliac.api.JuliacModuleItf
;
import
org.objectweb.fractal.juliac.api.MembraneLoaderItf
;
import
org.objectweb.fractal.juliac.api.
Typ
eGeneratorItf
;
import
org.objectweb.fractal.juliac.api.
SourceCod
eGeneratorItf
;
import
org.objectweb.fractal.juliac.commons.lang.ClassHelper
;
import
org.objectweb.fractal.juliac.commons.lang.annotation.AnnotationHelper
;
import
org.objectweb.fractal.juliac.conf.JuliacConfig
;
...
...
@@ -172,7 +172,7 @@ extends org.objectweb.fractal.juliac.opt.comp.FCCompCtrlSourceCodeGenerator {
* could be used. This allows reusing pre-generated implementations
* for Julia control interfaces.
*/
Typ
eGeneratorItf
cg
=
SourceCod
eGeneratorItf
cg
=
new
InterfaceImplementationClassGenerator
(
jc
,
it
,
null
,
false
);
jc
.
generateSourceCode
(
cg
);
}
...
...
@@ -183,7 +183,7 @@ extends org.objectweb.fractal.juliac.opt.comp.FCCompCtrlSourceCodeGenerator {
*/
// Server (input) interface implementation
Typ
eGeneratorItf
cg
=
SourceCod
eGeneratorItf
cg
=
new
ServerInterfaceClassGenerator
(
jc
,
it
,
null
,
false
);
jc
.
generateSourceCode
(
cg
);
...
...
tinfi/module/opt-oo/core/src/main/java/org/ow2/frascati/tinfi/opt/oo/ClientInterfaceClassGenerator.java
View file @
81b6b67b
...
...
@@ -30,7 +30,7 @@ import java.lang.reflect.Modifier;
import
org.oasisopen.sca.ServiceReference
;
import
org.objectweb.fractal.api.type.InterfaceType
;
import
org.objectweb.fractal.juliac.Juliac
;
import
org.objectweb.fractal.juliac.api.
Typ
eGeneratorItf
;
import
org.objectweb.fractal.juliac.api.
SourceCod
eGeneratorItf
;
import
org.objectweb.fractal.juliac.commons.lang.ClassHelper
;
import
org.objectweb.fractal.juliac.desc.MembraneDesc
;
import
org.objectweb.fractal.juliac.visit.BlockSourceCodeVisitor
;
...
...
@@ -69,7 +69,7 @@ extends ServerInterfaceClassGenerator {
* The generated client interface extends the class implementing the
* server interface of the same type.
*/
Typ
eGeneratorItf
cg
=
SourceCod
eGeneratorItf
cg
=
new
ServerInterfaceClassGenerator
(
jc
,
it
,
membraneDesc
,
mergeable
);
String
name
=
cg
.
getTargetTypeName
();
...
...
@@ -113,7 +113,7 @@ extends ServerInterfaceClassGenerator {
Modifier
.
PUBLIC
,
null
,
ServiceReference
.
class
.
getName
()+
'<'
+
it
.
getFcItfSignature
()+
'>'
,
"getServiceReference"
,
null
,
null
);
Typ
eGeneratorItf
cg
=
SourceCod
eGeneratorItf
cg
=
new
ServiceReferenceClassGenerator
(
jc
,
it
,
membraneDesc
,
mergeable
);
String
srclname
=
cg
.
getTargetTypeName
();
mv
.
visit
(
" return new "
);
...
...
tinfi/module/opt-oo/core/src/main/java/org/ow2/frascati/tinfi/opt/oo/FCOOCtrlSourceCodeGenerator.java
View file @
81b6b67b
...
...
@@ -29,7 +29,7 @@ import java.lang.annotation.Annotation;
import
org.oasisopen.sca.annotation.Callback
;
import
org.objectweb.fractal.api.type.InterfaceType
;
import
org.objectweb.fractal.julia.type.BasicInterfaceType
;
import
org.objectweb.fractal.juliac.api.
Typ
eGeneratorItf
;
import
org.objectweb.fractal.juliac.api.
SourceCod
eGeneratorItf
;
import
org.objectweb.fractal.juliac.commons.lang.ClassHelper
;
import
org.objectweb.fractal.juliac.commons.lang.annotation.AnnotationHelper
;
import
org.objectweb.fractal.juliac.conf.JuliacConfig
;
...
...
@@ -157,7 +157,7 @@ extends org.objectweb.fractal.juliac.opt.oo.FCOOCtrlSourceCodeGenerator {
* could be used. This allows reusing pre-generated implementations
* for Julia control interfaces.
*/
Typ
eGeneratorItf
cg
=
SourceCod
eGeneratorItf
cg
=
new
InterfaceImplementationClassGenerator
(
jc
,
it
,
null
,
false
);
jc
.
generateSourceCode
(
cg
);
}
...
...
@@ -168,7 +168,7 @@ extends org.objectweb.fractal.juliac.opt.oo.FCOOCtrlSourceCodeGenerator {
*/
// Server (input) interface implementation
Typ
eGeneratorItf
cg
=
SourceCod
eGeneratorItf
cg
=
new
ServerInterfaceClassGenerator
(
jc
,
it
,
null
,
false
);
jc
.
generateSourceCode
(
cg
);
...
...
tinfi/module/opt-oo/core/src/main/java/org/ow2/frascati/tinfi/opt/oo/ServiceReferenceClassGenerator.java
View file @
81b6b67b
...
...
@@ -35,7 +35,7 @@ import org.objectweb.fractal.julia.ComponentInterface;
import
org.objectweb.fractal.julia.type.BasicInterfaceType
;
import
org.objectweb.fractal.juliac.Juliac
;
import
org.objectweb.fractal.juliac.UClass
;
import
org.objectweb.fractal.juliac.api.
Typ
eGeneratorItf
;
import
org.objectweb.fractal.juliac.api.
SourceCod
eGeneratorItf
;
import
org.objectweb.fractal.juliac.commons.lang.ClassHelper
;
import
org.objectweb.fractal.juliac.commons.lang.annotation.AnnotationHelper
;
import
org.objectweb.fractal.juliac.commons.lang.reflect.AnnotatedElementHelper
;
...
...
@@ -231,7 +231,7 @@ extends AbstractProxyClassGenerator {
InterfaceType
cbit
=
new
BasicInterfaceType
(
"callback"
,
callbackClass
.
getName
(),
false
,
false
,
false
);
Typ
eGeneratorItf
cg
=
SourceCod
eGeneratorItf
cg
=
new
CallBackInterfaceClassGenerator
(
jc
,
cbit
,
null
,
mergeable
);
String
cbitfclname
=
cg
.
getTargetTypeName
();
...
...
tinfi/module/opt-oo/core/src/main/java/org/ow2/frascati/tinfi/opt/oo/light/FCOOCtrlSourceCodeGenerator.java
View file @
81b6b67b
...
...
@@ -27,7 +27,7 @@ import java.io.IOException;
import
java.util.List
;
import
org.objectweb.fractal.api.type.ComponentType
;
import
org.objectweb.fractal.juliac.api.
Typ
eGeneratorItf
;
import
org.objectweb.fractal.juliac.api.
SourceCod
eGeneratorItf
;
import
org.objectweb.fractal.juliac.desc.ControllerDesc
;
import
org.objectweb.fractal.juliac.desc.MembraneDesc
;
import
org.ow2.frascati.tinfi.control.content.IllegalContentClassMetaData
;
...
...
@@ -96,7 +96,7 @@ extends org.ow2.frascati.tinfi.opt.oo.FCOOCtrlSourceCodeGenerator {
}
try
{
Typ
eGeneratorItf
cg
=
SourceCod
eGeneratorItf
cg
=
SCAContentControllerClassGenerator
.
get
(
jc
,
contentClassName
);
jc
.
generateSourceCode
(
cg
);
}
...
...
tinfi/module/opt-oo/core/src/main/java/org/ow2/frascati/tinfi/opt/oo/light/InitializerOOCtrlClassGenerator.java
View file @
81b6b67b
...
...
@@ -32,7 +32,7 @@ import org.objectweb.fractal.julia.InitializationContext;
import
org.objectweb.fractal.julia.factory.ChainedInstantiationException
;
import
org.objectweb.fractal.julia.loader.Initializable
;
import
org.objectweb.fractal.julia.loader.Tree
;
import
org.objectweb.fractal.juliac.api.
Typ
eGeneratorItf
;
import
org.objectweb.fractal.juliac.api.
SourceCod
eGeneratorItf
;
import
org.objectweb.fractal.juliac.desc.ControllerDesc
;
import
org.objectweb.fractal.juliac.helper.TreeHelper
;
import
org.objectweb.fractal.juliac.visit.BlockSourceCodeVisitor
;
...
...
@@ -78,7 +78,7 @@ extends org.ow2.frascati.tinfi.opt.oo.InitializerOOCtrlClassGenerator {
if
(
SCAExtendedContentController
.
class
.
isAssignableFrom
(
cl
)
)
{
// SCA Content Controller
String
contentClassName
=
(
String
)
contentDesc
;
Typ
eGeneratorItf
cg
=
null
;
SourceCod
eGeneratorItf
cg
=
null
;
try
{
cg
=
SCAContentControllerClassGenerator
.
get
(
jc
,
contentClassName
);
}
...
...
tinfi/module/opt-oo/core/src/main/java/org/ow2/frascati/tinfi/opt/oo/light/SCAContentControllerClassGenerator.java
View file @
81b6b67b
...
...
@@ -52,7 +52,7 @@ import org.objectweb.fractal.api.type.InterfaceType;
import
org.objectweb.fractal.fraclet.types.Contingency
;
import
org.objectweb.fractal.julia.InitializationContext
;
import
org.objectweb.fractal.juliac.Juliac
;
import
org.objectweb.fractal.juliac.api.
Typ
eGeneratorItf
;
import
org.objectweb.fractal.juliac.api.
SourceCod
eGeneratorItf
;
import
org.objectweb.fractal.juliac.commons.ipf.CompositeInjectionPointHashMap
;
import
org.objectweb.fractal.juliac.commons.ipf.InjectionPoint
;
import
org.objectweb.fractal.juliac.commons.ipf.InjectionPointFieldImpl
;
...
...
@@ -104,13 +104,13 @@ extends ClassGenerator {
* @throws IllegalArgumentException if the scope is not supported
* @since 1.4.5
*/
public
static
Typ
eGeneratorItf
get
(
Juliac
jc
,
String
contentClassName
)
public
static
SourceCod
eGeneratorItf
get
(
Juliac
jc
,
String
contentClassName
)
throws
IllegalContentClassMetaData
{
Class
<?>
cl
=
jc
.
loadClass
(
contentClassName
);
ContentClassMetaData
ccmd
=
ContentClassMetaData
.
get
(
cl
);
Typ
eGeneratorItf
scacccg
=
null
;
SourceCod
eGeneratorItf
scacccg
=
null
;
String
scope
=
ccmd
.
scope
==
null
?
null
:
ccmd
.
scope
.
toUpperCase
();
if
(
scope
==
null
||
scope
.
equals
(
"STATELESS"
)
)
{
scacccg
=
...
...
tinfi/module/opt-oo/core/src/main/java/org/ow2/frascati/tinfi/tinfilet/EmptySubClassGenerator.java
View file @
81b6b67b
...
...
@@ -27,7 +27,7 @@ import java.io.IOException;
import
java.lang.reflect.Modifier
;
import
java.util.Date
;
import
org.objectweb.fractal.juliac.api.
Typ
eGeneratorItf
;
import
org.objectweb.fractal.juliac.api.
SourceCod
eGeneratorItf
;
import
org.objectweb.fractal.juliac.visit.ClassSourceCodeVisitor
;
import
org.objectweb.fractal.juliac.visit.FileSourceCodeVisitor
;
...
...
@@ -38,7 +38,7 @@ import org.objectweb.fractal.juliac.visit.FileSourceCodeVisitor;
* @author Lionel Seinturier <Lionel.Seinturier@univ-lille1.fr>
* @since 1.3.1
*/
public
class
EmptySubClassGenerator
implements
Typ
eGeneratorItf
{
public
class
EmptySubClassGenerator
implements
SourceCod
eGeneratorItf
{
/**
* @param targetname the fully-qualified name of the class to be generated
...
...
tinfi/module/opt-oo/core/src/main/java/org/ow2/frascati/tinfi/tinfilet/TinfiParserSupportImpl.java
View file @
81b6b67b
...
...
@@ -44,7 +44,7 @@ import org.objectweb.fractal.juliac.UClass;
import
org.objectweb.fractal.juliac.api.ADLParserSupportItf
;
import
org.objectweb.fractal.juliac.api.MembraneLoaderItf
;
import
org.objectweb.fractal.juliac.api.RuntimeClassNotFoundException
;
import
org.objectweb.fractal.juliac.api.
Typ
eGeneratorItf
;
import
org.objectweb.fractal.juliac.api.
SourceCod
eGeneratorItf
;
import
org.objectweb.fractal.juliac.commons.lang.ClassHelper
;
import
org.objectweb.fractal.juliac.commons.lang.reflect.FieldHelper
;
import
org.objectweb.fractal.juliac.conf.JuliacConfig
;
...
...
@@ -361,7 +361,7 @@ public class TinfiParserSupportImpl implements ADLParserSupportItf {
*/
String
compFactClassName
=
adl
+
FACTORY_SUFFIX
;
String
superClassName
=
icg
.
getTargetTypeName
();
Typ
eGeneratorItf
cg
=
SourceCod
eGeneratorItf
cg
=
new
EmptySubClassGenerator
(
compFactClassName
,
superClassName
);
jc
.
generateSourceCode
(
cg
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment