Class ProcessorOptions


  • public class ProcessorOptions
    extends java.lang.Object
    Class in charge of containing, parsing and processing all processor options, from the simpler booleans to the more complicated mapper.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      boolean anonymousClassWarning
      Whether the processor should issue warnings when compiling code anonymous classes which can't be checked for validity.
      javax.annotation.processing.ProcessingEnvironment env
      The environment the processor is acting in.
      ftbsc.lll.mapper.utils.Mapper mapper
      The Mapper used to convert classes and variables to their obfuscated equivalent.
      boolean noServiceProvider
      Whether the processor should skip the generation of the service provider.
      boolean obfuscateInjectorMetadata
      Whether injector metadata (what is returned by the functions of IInjector) is to use obfuscated names instead of its normal names.
      static java.util.Set<java.lang.String> SUPPORTED
      A Set of options currently supported by the processor.
    • Constructor Summary

      Constructors 
      Constructor Description
      ProcessorOptions​(javax.annotation.processing.ProcessingEnvironment env)
      The public constructor, parses and stores all given arguments.
    • Method Summary

      • Methods inherited from class java.lang.Object

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

      • SUPPORTED

        public static final java.util.Set<java.lang.String> SUPPORTED
        A Set of options currently supported by the processor.
      • env

        public final javax.annotation.processing.ProcessingEnvironment env
        The environment the processor is acting in.
      • mapper

        public final ftbsc.lll.mapper.utils.Mapper mapper
        The Mapper used to convert classes and variables to their obfuscated equivalent. Will be null when no mapper is in use.
      • anonymousClassWarning

        public final boolean anonymousClassWarning
        Whether the processor should issue warnings when compiling code anonymous classes which can't be checked for validity.
      • obfuscateInjectorMetadata

        public final boolean obfuscateInjectorMetadata
        Whether injector metadata (what is returned by the functions of IInjector) is to use obfuscated names instead of its normal names.
      • noServiceProvider

        public final boolean noServiceProvider
        Whether the processor should skip the generation of the service provider.
    • Constructor Detail

      • ProcessorOptions

        public ProcessorOptions​(javax.annotation.processing.ProcessingEnvironment env)
        The public constructor, parses and stores all given arguments.
        Parameters:
        env - the environment the processor is working in