Class NamedGem

  • All Implemented Interfaces:
    org.mapstruct.tools.gem.Gem

    public class NamedGem
    extends java.lang.Object
    implements org.mapstruct.tools.gem.Gem
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static interface  NamedGem.Builder<T>
      A builder that can be implemented by the user to define custom logic e.g.
      private static class  NamedGem.BuilderImpl  
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean isValid  
      private javax.lang.model.element.AnnotationMirror mirror  
      private org.mapstruct.tools.gem.GemValue<java.lang.String> value  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> T build​(javax.lang.model.element.AnnotationMirror mirror, NamedGem.Builder<T> builder)  
      static <T> T build​(javax.lang.model.element.Element element, NamedGem.Builder<T> builder)  
      static NamedGem instanceOn​(javax.lang.model.element.AnnotationMirror mirror)  
      static NamedGem instanceOn​(javax.lang.model.element.Element element)  
      boolean isValid()  
      javax.lang.model.element.AnnotationMirror mirror()  
      org.mapstruct.tools.gem.GemValue<java.lang.String> value()
      accessor
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • value

        private final org.mapstruct.tools.gem.GemValue<java.lang.String> value
      • isValid

        private final boolean isValid
      • mirror

        private final javax.lang.model.element.AnnotationMirror mirror
    • Method Detail

      • value

        public org.mapstruct.tools.gem.GemValue<java.lang.String> value()
        accessor
        Returns:
        the GemValue for value
      • mirror

        public javax.lang.model.element.AnnotationMirror mirror()
        Specified by:
        mirror in interface org.mapstruct.tools.gem.Gem
      • isValid

        public boolean isValid()
        Specified by:
        isValid in interface org.mapstruct.tools.gem.Gem
      • instanceOn

        public static NamedGem instanceOn​(javax.lang.model.element.Element element)
      • instanceOn

        public static NamedGem instanceOn​(javax.lang.model.element.AnnotationMirror mirror)
      • build

        public static <T> T build​(javax.lang.model.element.Element element,
                                  NamedGem.Builder<T> builder)
      • build

        public static <T> T build​(javax.lang.model.element.AnnotationMirror mirror,
                                  NamedGem.Builder<T> builder)