Class TypeOperation
- java.lang.Object
-
- org.ocpsoft.rewrite.config.DefaultOperationBuilder
-
- org.jboss.windup.config.operation.GraphOperation
-
- org.jboss.windup.config.operation.iteration.AbstractIterationOperation<org.jboss.windup.graph.model.WindupVertexFrame>
-
- org.jboss.windup.config.operation.graph.TypeOperation
-
- All Implemented Interfaces:
org.ocpsoft.rewrite.config.Operation,org.ocpsoft.rewrite.config.OperationBuilder
public class TypeOperation extends AbstractIterationOperation<org.jboss.windup.graph.model.WindupVertexFrame>
Adds the given type to aWindupVertexFramein the graph.- Author:
- Lincoln Baxter, III
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GraphOperationaddType(Class<? extends org.jboss.windup.graph.model.WindupVertexFrame> newType)Add type to the variable being iterated with the default name.static GraphOperationaddType(String variableName, Class<? extends org.jboss.windup.graph.model.WindupVertexFrame> newType)voidperform(GraphRewrite event, org.ocpsoft.rewrite.context.EvaluationContext context, org.jboss.windup.graph.model.WindupVertexFrame payload)-
Methods inherited from class org.jboss.windup.config.operation.iteration.AbstractIterationOperation
camelCase, checkVariableName, getVariableName, hasVariableNameSet, perform, resolvePayload, resolveVariable, setVariableName, toString
-
Methods inherited from class org.jboss.windup.config.operation.GraphOperation
perform
-
-
-
-
Method Detail
-
addType
public static GraphOperation addType(String variableName, Class<? extends org.jboss.windup.graph.model.WindupVertexFrame> newType)
-
addType
public static GraphOperation addType(Class<? extends org.jboss.windup.graph.model.WindupVertexFrame> newType)
Add type to the variable being iterated with the default name.- Parameters:
newType- Type to be added- Returns:
-
perform
public void perform(GraphRewrite event, org.ocpsoft.rewrite.context.EvaluationContext context, org.jboss.windup.graph.model.WindupVertexFrame payload)
- Specified by:
performin classAbstractIterationOperation<org.jboss.windup.graph.model.WindupVertexFrame>
-
-