You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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( )
{
}
The text was updated successfully, but these errors were encountered:
If I want to create a class with a function, that shoud be overloaded, e.g:
It only creates a overloadMe function without Parameters:
The text was updated successfully, but these errors were encountered: