Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * OfficeFloor - http://www.officefloor.net
   * Copyright (C) 2005-2011 Daniel Sagenschneider
   *
   * This program is free software: you can redistribute it and/or modify
   * it under the terms of the GNU General Public License as published by
   * the Free Software Foundation, either version 3 of the License, or
   * (at your option) any later version.
   *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
 package net.officefloor.plugin.work.clazz;
 
 
Meta-data of a java.lang.reflect.Method on a FlowInterface.

Author(s):
Daniel Sagenschneider
 
 public class FlowMethodMetaData {

Type declaring the java.lang.reflect.Method of this flow.
 
 	private final Class<?> flowType;

 
 	private final Method method;

 
 	private final int flowIndex;

Flag indicating if there is a parameter for the net.officefloor.frame.internal.structure.Flow.
 
 	private final boolean isParameter;

Flag indicating if to return the net.officefloor.frame.api.execute.FlowFuture.
 
 	private final boolean isReturnFlowFuture;

Initiate.

Parameters:
flowType Type declaring the java.lang.reflect.Method of this flow.
method java.lang.reflect.Method.
flowIndex Index of the net.officefloor.frame.internal.structure.Flow to invoke for this java.lang.reflect.Method.
isParameter true if a parameter for the net.officefloor.frame.internal.structure.Flow.
isReturnFlowFuture true if to return the net.officefloor.frame.api.execute.FlowFuture.
 
 	public FlowMethodMetaData(Class<?> flowTypeMethod methodint flowIndex,
 			boolean isParameterboolean isReturnFlowFuture) {
 		this. = flowType;
 		this. = method;
 		this. = flowIndex;
 		this. = isParameter;
 		this. = isReturnFlowFuture;
 	}

Obtains the Type declaring the java.lang.reflect.Method of this flow.

Returns:
Type declaring the java.lang.reflect.Method of this flow.
 
 	public Class<?> getFlowType() {
 		return this.;
 	}

 
 	public Method getMethod() {
 		return this.;
 	}

	public int getFlowIndex() {
		return this.;
	}

Flags if a parameter for the net.officefloor.frame.internal.structure.Flow.

Returns:
true if a parameter for the net.officefloor.frame.internal.structure.Flow.
	public boolean isParameter() {
		return this.;
	}

	public boolean isReturnFlowFuture() {
		return this.;
	}
New to GrepCode? Check out our FAQ X