Class Literal.Matcher

java.lang.Object
org.openrewrite.trait.SimpleTraitMatcher<Literal>
org.openrewrite.java.trait.Literal.Matcher
All Implemented Interfaces:
org.openrewrite.trait.TraitMatcher<Literal>
Enclosing class:
Literal

public static class Literal.Matcher extends org.openrewrite.trait.SimpleTraitMatcher<Literal>
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    mapper(com.fasterxml.jackson.databind.ObjectMapper mapper)
     
    protected @Nullable Literal
    test(org.openrewrite.Cursor cursor)
     

    Methods inherited from class org.openrewrite.trait.SimpleTraitMatcher

    asVisitor, get, higher, lower

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.openrewrite.trait.TraitMatcher

    asVisitor, get, lower, require, require
  • Constructor Details

    • Matcher

      public Matcher()
  • Method Details

    • mapper

      public Literal.Matcher mapper(com.fasterxml.jackson.databind.ObjectMapper mapper)
      Parameters:
      mapper - A customized mapper, which should be rare, but possibly when you want a custom type factory.
      Returns:
      This matcher with a customized mapper set.
    • test

      protected @Nullable Literal test(org.openrewrite.Cursor cursor)
      Specified by:
      test in class org.openrewrite.trait.SimpleTraitMatcher<Literal>