public ClassMethod addMethod(int accessFlags, String name, String returnType, String... parameters) { ClassMethod method = new ClassMethod(name, returnType, parameters, accessFlags, this); if (methods.contains(method)) { throw new DuplicateMemberException("Method already exists. Method: " + name + " Parameters:" + Arrays.toString(parameters) + " Return Type: " + returnType); } methods.add(method); return method; }
public ClassMethod addMethod(int accessFlags, String name, String returnType, String... parameters) { ClassMethod method = new ClassMethod(name, returnType, parameters, accessFlags, this); if (methods.contains(method)) { throw new DuplicateMemberException("Method already exists. Method: " + name + " Parameters:" + Arrays.toString(parameters) + " Return Type: " + returnType); } methods.add(method); return method; }
public ClassMethod addMethod(int accessFlags, String name, String returnType, String... parameters) { ClassMethod method = new ClassMethod(name, returnType, parameters, accessFlags, this); if (methods.contains(method)) { throw new DuplicateMemberException("Method already exists. Method: " + name + " Parameters:" + Arrays.toString(parameters) + " Return Type: " + returnType); } methods.add(method); return method; }
public ClassMethod addMethod(int accessFlags, String name, String returnType, String... parameters) { ClassMethod method = new ClassMethod(name, returnType, parameters, accessFlags, this); if (methods.contains(method)) { throw new DuplicateMemberException("Method already exists. Method: " + name + " Parameters:" + Arrays.toString(parameters) + " Return Type: " + returnType); } methods.add(method); return method; }
public ClassMethod addMethod(int accessFlags, String name, String returnType, String... parameters) { ClassMethod method = new ClassMethod(name, returnType, parameters, accessFlags, this); if (methods.contains(method)) { throw new DuplicateMemberException("Method already exists. Method: " + name + " Parameters:" + Arrays.toString(parameters) + " Return Type: " + returnType); } methods.add(method); return method; }
object.classPublicVar = 3; object.classPublicMethod = function ClassMethod()