Package org.openrewrite.maven.ui
Class RecipeDescriptorTree
- java.lang.Object
-
- org.openrewrite.maven.ui.RecipeDescriptorTree
-
- All Implemented Interfaces:
Comparable<RecipeDescriptorTree>
public class RecipeDescriptorTree extends Object implements Comparable<RecipeDescriptorTree>
Used for traversing around the collection of available RecipeDescriptors in the environment.It's not the most "proper" tree in the world, since these hold both data for a "directory" of recipes as well as RecipeDescriptors themselves. But it's not the end of the world.
-
-
Constructor Summary
Constructors Constructor Description RecipeDescriptorTree()RecipeDescriptorTree(String displayName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RecipeDescriptorTreeaddChild(String displayName)RecipeDescriptorTreeaddChild(RecipeDescriptorTree child)voidaddPath(Iterable<org.openrewrite.config.RecipeDescriptor> path)voidaddPath(org.openrewrite.config.RecipeDescriptor path)intcompareTo(RecipeDescriptorTree o)List<RecipeDescriptorTree>getChildren()StringgetDisplayName()RecipeDescriptorTreegetParent()org.openrewrite.config.RecipeDescriptorgetRecipeDescriptor()voidsetRecipeDescriptor(org.openrewrite.config.RecipeDescriptor recipeDescriptor)
-
-
-
Constructor Detail
-
RecipeDescriptorTree
public RecipeDescriptorTree()
-
RecipeDescriptorTree
public RecipeDescriptorTree(String displayName)
-
-
Method Detail
-
getDisplayName
public String getDisplayName()
-
addChild
public RecipeDescriptorTree addChild(RecipeDescriptorTree child)
-
addChild
public RecipeDescriptorTree addChild(String displayName)
-
getChildren
public List<RecipeDescriptorTree> getChildren()
-
getParent
public RecipeDescriptorTree getParent()
-
getRecipeDescriptor
public org.openrewrite.config.RecipeDescriptor getRecipeDescriptor()
-
setRecipeDescriptor
public void setRecipeDescriptor(org.openrewrite.config.RecipeDescriptor recipeDescriptor)
-
addPath
public void addPath(org.openrewrite.config.RecipeDescriptor path)
-
addPath
public void addPath(Iterable<org.openrewrite.config.RecipeDescriptor> path)
-
compareTo
public int compareTo(RecipeDescriptorTree o)
- Specified by:
compareToin interfaceComparable<RecipeDescriptorTree>
-
-