GithubHelp home page GithubHelp logo

moosetechnology / famejava Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 1.12 MB

Fame is a concise meta-meta-model, and this project holds its Java implementation. This is a fork of the original implementation by Adrian Kuhn and Toon Verwaest.

Java 99.97% HTML 0.03%
moose meta-model java pharo

famejava's Introduction

Fame-Java

Fame is a concise meta-meta-model. This is a fork of the original Fame meta-meta-model implementation by Adrian Kuhn and Toon Verwaest.

This is an implementation of Fame in Java that supports traits concept used in the last Famix

User

To generate the java classes of a Moose meta-model:

  1. generate (in Pharo) a .mse file describing the meta-model. command: 'some-file-name.mse' asFileReference writeStreamDo: [:stream | MooseModel metamodel exportOn: stream]
  2. add the .mse file under the "resources" folder.
  3. under "src/metamodel.codegen" create a new "target" following the template of other Codegen class.
  4. execute the "target" to generate the code under the folder gen.

License: GNU LESSER GENERAL PUBLIC LICENSE

famejava's People

Contributors

badetitou avatar chisandrei avatar gabriel-darbord avatar girba avatar nicolasanquetil avatar

Stargazers

 avatar

Watchers

 avatar  avatar

famejava's Issues

export of metamodel to Java

When exporting metamodel to Java, the inheritance between traits is not exported:

Trait << #FamixTType
	traits: {FamixTNamedEntity + FamixTReferenceable + FamixTSourceEntity + TEntityMetaLevelDependency};

gives:

public interface TType  {

whereas it should be:

public interface TType  extends  TNamedEntity, TReferenceable, TSourceEntity, TEntityMetaLevelDependency {

Handle submetamodels with inheritance

if we have 2 meta-models mm1 and mm2, mm1 is sub-meta-model of mm2 (ie. mm2 uses entities of mm1).

there is an mm1Entity and an mm2Entity and they don't inherit one from the other

If both generators are based on FamixBasicInfrastructureGenerator, then there are also two SourcedEntity, NamedEntity, Comment, ...

when we translate that to Java, we have "incompatible types", eg two NamedEntity.java that are equals but in separate packages and incompatible ...

Default value for Properties

We need to add the support of default value for properties.
It implies modifying the Fame Meta-model, the .mse importer, and the code generator.

This feature exists in Fame Pharo

Importer does not understand the property `users` on FM3Trait

When exporting the Java metamodel with:

'famixJava.mse' asFileReference writeStreamDo: [:stream | FamixJavaModel metamodel exportOn: stream]

We have the property users under trait elements.
The importer does not understand that property and raises an error.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.