Class 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 a WindupVertexFrame in the graph.
    Author:
    Lincoln Baxter, III
    • 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:
        perform in class AbstractIterationOperation<org.jboss.windup.graph.model.WindupVertexFrame>