Class GwtBinaryDescriptionArg

    • Method Detail

      • getModules

        public com.google.common.collect.ImmutableSortedSet<String> getModules()
        Returns:
        The value of the modules attribute
      • getModuleDeps

        public com.google.common.collect.ImmutableSortedSet<BuildTarget> getModuleDeps()
        Returns:
        The value of the moduleDeps attribute
      • getVmArgs

        public com.google.common.collect.ImmutableList<String> getVmArgs()
        In practice, these may be values such as -Xmx512m.
      • getStyle

        public Optional<com.facebook.buck.features.gwt.GwtBinary.Style> getStyle()
        This will be passed to the GWT Compiler's -style flag.
      • getDraftCompile

        public Optional<Boolean> getDraftCompile()
        If true, the GWT Compiler's -draftCompile flag will be set.
      • getOptimize

        public Optional<Integer> getOptimize()
        This will be passed to the GWT Compiler's -optimize flag.
      • getLocalWorkers

        public Optional<Integer> getLocalWorkers()
        This will be passed to the GWT Compiler's -localWorkers flag.
      • getStrict

        public Optional<Boolean> getStrict()
        If true, the GWT Compiler's -strict flag will be set.
      • getExperimentalArgs

        public com.google.common.collect.ImmutableList<String> getExperimentalArgs()
        In practice, these may be values such as -XenableClosureCompiler, -XdisableClassMetadata, -XdisableCastChecking, or -XfragmentMerge.
      • getCompatibleWith

        public com.google.common.collect.ImmutableList<UnconfiguredBuildTarget> getCompatibleWith()
        Description copied from interface: BuildRuleArg
        A list of config_setting a target is compatible with.
        Specified by:
        getCompatibleWith in interface BuildRuleArg
        Returns:
        The value of the compatibleWith attribute
      • getDefaultTargetPlatform

        public Optional<UnconfiguredBuildTarget> getDefaultTargetPlatform()
        Description copied from interface: BuildRuleArg
        The name of build target default "new" platform: it is used when a platform is not specified either globally or in a target which used this target as a dependency.

        The value is a build target, but we specify it as string, because this function is not actually called, but the attr is fetched by name from the raw (unconfigured) target node.

        Specified by:
        getDefaultTargetPlatform in interface BuildRuleArg
        Returns:
        The value of the defaultTargetPlatform attribute
      • getLabels

        public com.google.common.collect.ImmutableSortedSet<String> getLabels()
        Specified by:
        getLabels in interface BuildRuleArg
        Returns:
        The value of the labels attribute
      • getLicenses

        public com.google.common.collect.ImmutableSet<SourcePath> getLicenses()
        Specified by:
        getLicenses in interface BuildRuleArg
        Returns:
        The value of the licenses attribute
      • getDeps

        public com.google.common.collect.ImmutableSortedSet<BuildTarget> getDeps()
        Specified by:
        getDeps in interface HasDeclaredDeps
        Returns:
        The value of the deps attribute
      • equals

        public boolean equals​(@Nullable
                              Object another)
        This instance is equal to all instances of GwtBinaryDescriptionArg that have equal attribute values.
        Overrides:
        equals in class Object
        Returns:
        true if this is equal to another instance
      • hashCode

        public int hashCode()
        Computes a hash code from attributes: modules, moduleDeps, vmArgs, style, draftCompile, optimize, localWorkers, strict, experimentalArgs, compatibleWith, defaultTargetPlatform, labels, licenses, name, deps.
        Overrides:
        hashCode in class Object
        Returns:
        hashCode value
      • toString

        public String toString()
        Prints the immutable value GwtBinaryDescriptionArg with attribute values.
        Overrides:
        toString in class Object
        Returns:
        A string representation of the value