staruml / staruml-java Goto Github PK
View Code? Open in Web Editor NEWJava extension for StarUML
License: MIT License
Java extension for StarUML
License: MIT License
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.
staruml 3.0.1 for mac
For the reverse code feature, I mean
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
not doc found
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
some codes shows error in android studio how to solve
Is there any plan to update it to Java 8+?
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 source code tomcat_8_5_3
Debug error message:
[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 |
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
besides, the main window will finally be empty with nothing to displayed(no views or other windows, just filled with blank)
Can you please add support to Java 8 (I'm having some trouble because files with lambda expression are not reverse engineered) ?
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 ..
I wish I helped with this msg. Thanks
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%?
When using the java reverse engineering, the referenced classes such as java.lang.Runnable, java.lang.Thread, java.utilMap, etc., were all place in the ROOT package, not in their actual packages.
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.
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.
Use this Plugin Cannot Reverse JDK1.7 Source Successfu. Have you Test?
java code extension install error
T[] myArray is not reverse into T with multiplicity *
The code generated by the generator has array types for any UMLAttribute or UMLAssociationEnd objects with multiplicity 1. This behavior is specified on the front page of this project but quite unintuitive.
This also happens in the C# generator.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.