Package org.openrewrite.marker
Interface Marker
-
- All Superinterfaces:
Tree
- All Known Implementing Classes:
BuildTool,DeclarativeNamedStyles,FileListing,Generated,GitProvenance,NamedStyles,Polyglot.ValueMarker,Range,RecipesThatMadeChanges,SearchResult
public interface Marker extends Tree
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default <P> booleanisAcceptable(TreeVisitor<?,P> v, P p)Checks the supplied argument to see if the supplied visitor and its context would be valid arguments to accept().-
Methods inherited from interface org.openrewrite.Tree
accept, getId, getJacksonPolymorphicTypeTag, isScope, print, print, print, print, printer, printTrimmed, printTrimmed, printTrimmed
-
-
-
-
Method Detail
-
isAcceptable
default <P> boolean isAcceptable(TreeVisitor<?,P> v, P p)
Description copied from interface:TreeChecks the supplied argument to see if the supplied visitor and its context would be valid arguments to accept(). Typically this involves checking that the visitor is of a type that operates on this kind of tree. e.g.: A Java Tree implementation would return true for JavaVisitors and false for MavenVisitors- Specified by:
isAcceptablein interfaceTree- Type Parameters:
P- the visitor's context argument- Returns:
- 'true' if the arguments to this function would be valid arguments to accept()
-
-