src/main/java/me/senseiwells/arucas/values/classes/ArucasWrapperCreator.java
private boolean addMethod(Method method) {
		final boolean isStatic = Modifier.isStatic(method.getModifiers());
		MethodHandle handle = this.getMethodHandle(this.clazz, method, isStatic, false);
		if (handle == null) {
			throw invalidWrapperMethod(this.clazz, method, "Failed to get method handle");
		}

		Class<?>[] parameters = method.getParameterTypes();
		final int parameterLength = parameters.length - (isStatic ? 1 : 0);

		ArucasMethodHandle methodHandle = new ArucasMethodHandle(handle, getMethodReturnType(this.clazz, method));
		WrapperMemberFunction function = WrapperMemberFunction.of(this.classDefinition, method.getName(), parameterLength, methodHandle, isStatic);

		if (isStatic) {
			this.classDefinition.addStaticMethod(function);
		}
		else {
			this.classDefinition.addMethod(function);
		}

		return true;
	}
/**
	 * Returns true if this method was added.
	 */
Returns true if this method was added.
Returns true if this method was added .
private boolean addMethod(Method method) {
		final boolean isStatic = Modifier.isStatic(method.getModifiers());
		MethodHandle handle = this.getMethodHandle(this.clazz, method, isStatic, false);
		if (handle == null) {
			throw invalidWrapperMethod(this.clazz, method, "Failed to get method handle");
		}
		Class<?>[] parameters = method.getParameterTypes();
		final int parameterLength = parameters.length - (isStatic ? 1 : 0);
		ArucasMethodHandle methodHandle = new ArucasMethodHandle(handle, getMethodReturnType(this.clazz, method));
		WrapperMemberFunction function = WrapperMemberFunction.of(this.classDefinition, method.getName(), parameterLength, methodHandle, isStatic);
		if (isStatic) {
			this.classDefinition.addStaticMethod(function);
		}
		else {
			this.classDefinition.addMethod(function);
		}
		return true;
	}
private boolean addMethod ( Method method ) { final boolean isStatic = Modifier . isStatic ( method . getModifiers ( ) ) ; MethodHandle handle = this . getMethodHandle ( this . clazz , method , isStatic , false ) ; if ( handle == null ) { throw invalidWrapperMethod ( this . clazz , method , "Failed to get method handle" ) ; } Class < ? > [ ] parameters = method . getParameterTypes ( ) ; final int parameterLength = parameters . length - ( isStatic ? 1 : 0 ) ; ArucasMethodHandle methodHandle = new ArucasMethodHandle ( handle , getMethodReturnType ( this . clazz , method ) ) ; WrapperMemberFunction function = WrapperMemberFunction . of ( this . classDefinition , method . getName ( ) , parameterLength , methodHandle , isStatic ) ; if ( isStatic ) { this . classDefinition . addStaticMethod ( function ) ; } else { this . classDefinition . addMethod ( function ) ; } return true ; }
Returns true if this method was added.
Returns true if this method was added .