public class Recipe extends Object
| Constructor and Description |
|---|
Recipe() |
| Modifier and Type | Method and Description |
|---|---|
void |
addSnippet(Snippet snippet)
Add a code snippet.
|
Recipe |
applicableTo(Class<?> type)
Add a type for which this recipe is applicable.
|
Set<String> |
getApplicableTypes()
The set of fully-qualified names of types to which this recipe is applicable.
|
String |
getDescription() |
List<Snippet> |
getSnippets()
Code snippets for the recipe.
|
String |
getTitle() |
void |
setDescription(String description) |
void |
setTitle(String title) |
Recipe |
withDescription(String description) |
public String getTitle()
public void setTitle(String title)
title - - The recipe titlepublic Recipe withDescription(String description)
description - - A description to associate with the recipepublic String getDescription()
public void setDescription(String description)
description - - Description to assign to the recipepublic void addSnippet(Snippet snippet)
snippet - The code snippet to add.public List<Snippet> getSnippets()
public Recipe applicableTo(Class<?> type)
type - The type for which this recipe is applicable.Copyright © 2021. All rights reserved.