Class SMAPRoot


  • public class SMAPRoot
    extends java.lang.Object
    The root of the SMAP attribute
    • Field Detail

      • MIXIN_STRATUM

        @NotNull
        public static final java.lang.String MIXIN_STRATUM
        See Also:
        Constant Field Values
    • Constructor Detail

      • SMAPRoot

        public SMAPRoot​(@NotNull
                        java.lang.String generatedFileName,
                        @NotNull
                        java.lang.String defaultStratum)
    • Method Detail

      • parseSMAP

        @NotNull
        @Contract(pure=true,
                  value="!null -> new; null -> fail")
        public static SMAPRoot parseSMAP​(@NotNull
                                         java.lang.String contents)
      • appendStratum

        public void appendStratum​(@NotNull
                                  java.lang.String stratum,
                                  @NotNull
                                  FileSection fileSection,
                                  @NotNull
                                  LineSection lineSection,
                                  @Nullable
                                  java.lang.String vendorId)
      • applyTo

        @NotNull
        @Contract(mutates="param1, param2",
                  pure=false,
                  value="!null, !null -> this; null, _ -> fail; _, null -> fail")
        @Deprecated
        @ScheduledForRemoval
        public SMAPRoot applyTo​(@NotNull
                                org.objectweb.asm.tree.ClassNode node,
                                @NotNull
                                java.lang.StringBuilder builder)
        Deprecated.
      • applyTo

        @NotNull
        @Contract(mutates="param1, param2",
                  pure=false,
                  value="!null, !null, !null -> this; null, _, _ -> fail; _, null, _ -> fail; _, _, null -> fail")
        public SMAPRoot applyTo​(@NotNull
                                org.objectweb.asm.tree.ClassNode node,
                                @NotNull
                                java.lang.StringBuilder builder,
                                @NotNull
                                MixinLoggingFacade logger)
      • getLineSection

        @Nullable
        @Contract(pure=true)
        public LineSection getLineSection​(@NotNull
                                          java.lang.String stratum)
      • pushContents

        @NotNull
        @Contract(mutates="param1",
                  pure=false,
                  value="!null -> param1; null -> fail")
        public java.lang.StringBuilder pushContents​(@NotNull
                                                    java.lang.StringBuilder sharedBuilder)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object