Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overloading Functions #16

Open
BiggA94 opened this issue May 3, 2016 · 0 comments
Open

Overloading Functions #16

BiggA94 opened this issue May 3, 2016 · 0 comments

Comments

@BiggA94
Copy link

BiggA94 commented May 3, 2016

If I want to create a class with a function, that shoud be overloaded, e.g:

ClassModel model = new ClassModel("de.uks.dpss16.sdmlibtest");

Clazz testClass = model.createClazz("ClassWithOverloadedFunctions");
testClass.createMethod("overloadMe");
testClass.createMethod("overloadMe", new Parameter(DataType.STRING).with("stringParam1"));
testClass.createMethod("overloadMe", new Parameter(DataType.STRING).with("stringParam1"),
                new Parameter(DataType.STRING).with("stringParam2"));
testClass.createMethod("overloadMe", new Parameter(DataType.INT).with("intParam1"));

model.generate();

It only creates a overloadMe function without Parameters:

public void overloadMe(  )
{

}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant