Coder Social home page Coder Social logo

staruml-java's People

Contributors

niklauslee avatar rtfsc8 avatar tekreme73 avatar wangy0573 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

staruml-java's Issues

Need two constructor with different parameters

public class Pizza {

    /**
     * Default constructor
     */
    public Pizza() {
    }
    /**
     * @param _price
     * @param shape
     */
    public void Pizza(double _price, IShape shape) {
        // TODO implement here
    }

}

I am trying two generate two constructor with different parameters(overloading) . So it should understand that if operation name is same, means it is a constructor, so instead of public void Pizza(double _price, IShape shape) , i should generate public Pizza(double _price, IShape shape) in java.

Inheritance of abstract methods

The methods inherited by an abstract class with abastract methods appears as "abstract" inside the specialized class. The inherited methods should have the @OverRide annotation instead
immagine
immagine2

Model as testing example.

I bought the license for v3 and I can't make the Java transformation UML to Code. Is there any testing model example for use in v3 that allow to generate code from this model?
Thanks

implementation class doesn't have interface methods

Hello,
when I create interface with method (eg configure()), than class which implements this interface doesn't have methods which are defined in interface.

Is this bug, or am I missing something?

Thanks

Java code Parse error on "... int RSV_BITMASK = 0b100;"

Java source code tomcat_8_5_3

Debug error message:

  1. .config/StarUML/extensions/user/staruml.java/code-analyzer.js:167

[Java] Failed to parse - /tomcat85/java/org/apache/tomcat/websocket/PerMessageDeflate.java

__dirname.performFirstPhase.options._files.forEach.file @ .config/StarUML/extensions/user/staruml.java/code-analyzer.js:167
performFirstPhase @ .config/StarUML/extensions/user/staruml.java/code-analyzer.js:159
analyze @ .config/StarUML/extensions/user/staruml.java/code-analyzer.js:136
analyze @ .config/StarUML/extensions/user/staruml.java/code-analyzer.js:1166
_handleReverse @ .config/StarUML/extensions/user/staruml.java/main.js:100
execute @ app.asar/src/engine/command-manager.js:93
ipcRenderer.on.args @ app.asar/src/app-context.js:673
emitThree @ events.js:116
emit @ events.js:197
  1. .config/StarUML/extensions/user/staruml.java/code-analyzer.js:168
Error: Parse error on line 42:
... int RSV_BITMASK = 0b100;    private st
-----------------------^
Expecting 'SEMI', 'COMMA', got 'Identifier'
    at Parser.parseError (.config/StarUML/extensions/user/staruml.java/grammar/java7.js:1617:15)
    at Parser.parse (.config/StarUML/extensions/user/staruml.java/grammar/java7.js:1675:22)
    at Object.exports.parse (.config/StarUML/extensions/user/staruml.java/grammar/java7.js:2438:50)
    at __dirname.performFirstPhase.options._files.forEach.file (.config/StarUML/extensions/user/staruml.java/code-analyzer.js:162:25)
    at Array.forEach (native)
    at JavaCodeAnalyzer.performFirstPhase (.config/StarUML/extensions/user/staruml.java/code-analyzer.js:159:17)
    at JavaCodeAnalyzer.analyze (.config/StarUML/extensions/user/staruml.java/code-analyzer.js:136:10)
    at Object.analyze (.config/StarUML/extensions/user/staruml.java/code-analyzer.js:1166:16)
    at _handleReverse (.config/StarUML/extensions/user/staruml.java/main.js:100:20)
    at CommandManager.execute (app.asar/src/engine/command-manager.js:93:22)

Thks

Java 8

Can you please add support to Java 8 (I'm having some trouble because files with lambda expression are not reverse engineered) ?

No variables and methods are generated after the code is reversed in Windows10

I read the commit msg: "No variables and methods are generated after the code is reversed in windows10"
I'm using windows 10 and got this problem but it is fixed if I click on each reversed class and try to add new attribute >> the existing attributes appeared surprisingly!! also when I tried to add an operation, then, the already defined methods appeared.. so the "reverse code" works but it has a small problem of viewing the variables and functions.. Please try to help us and fix it because it is very time consuming to do what I did to each class to make the variables and methods appear ..
image

image

I wish I helped with this msg. Thanks

  • Nuha

Problem to generete java code from diagram

hi,

i have problem generate from diagram to code.

1..* and 0..1
directed Association
Composition

it is because i have test version ?
or it is because extention dosen't work 100%?

abstract method generated 2 times.

I added interface IShape :

public interface IShape {

    /**
     * @return
     */
    public abstract double getArea();

}

then added a class Rectangle immplements IShape :
I copied the abstract method getArear() into the class Rectangle from IShape and unchecked the isAbstract box.

public class Rectangle implements IShape {

    /**
     * @return
     */
    public double getArea() {
        // TODO implement here
        return 0.0d;
    }

    /**
     * @return
     */
    public abstract double getArea();

So it should not generate code with 2 methods public double getArea() and public abstract double getArea(); in java.

Issue with Association Class

When I create an association class between to classes and I generate the Java code, the attributes of the other two classes are not added as an instance variable. Other UML tools do add these reference variables.

Array reverse

T[] myArray is not reverse into T with multiplicity *

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.