All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.gkutiel.flip.plugin.Method Maven / Gradle / Ivy

There is a newer version: 5-RELEASE
Show newest version
package com.github.gkutiel.flip.plugin;

import java.util.List;

import javax.lang.model.element.Name;
import javax.lang.model.type.TypeKind;
import javax.lang.model.type.TypeMirror;

class Method {

	static class Param {
		final String type;
		final String name;

		public Param(final TypeMirror type, final Name name) {
			this.type = type.toString();
			this.name = name.toString();
		}
	}

	final String returnType;
	final String name;
	final List params;

	public Method(final TypeMirror returnType, final Name name, final List params) {
		this.returnType = returnType.getKind() == TypeKind.VOID ? null : returnType.toString();
		this.name = name.toString();
		this.params = params;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy