Class PrebuiltOcamlLibraryDescriptionArg

    • Method Detail

      • getLibDir

        public String getLibDir()
        Returns:
        The value of the libDir attribute
      • getIncludeDir

        public String getIncludeDir()
        Returns:
        The value of the includeDir attribute
      • getLibName

        public String getLibName()
        Returns:
        The value of the libName attribute
      • getNativeLib

        public String getNativeLib()
        Returns:
        The value of the nativeLib attribute
      • getBytecodeLib

        public String getBytecodeLib()
        Returns:
        The value of the bytecodeLib attribute
      • getCLibs

        public com.google.common.collect.ImmutableList<String> getCLibs()
        Returns:
        The value of the cLibs attribute
      • getNativeCLibs

        public com.google.common.collect.ImmutableList<String> getNativeCLibs()
        Returns:
        The value of the nativeCLibs attribute
      • getBytecodeCLibs

        public com.google.common.collect.ImmutableList<String> getBytecodeCLibs()
        Returns:
        The value of the bytecodeCLibs attribute
      • getBytecodeOnly

        public boolean getBytecodeOnly()
        Returns:
        The value of the bytecodeOnly attribute
      • getPlatformDeps

        public PatternMatchedCollection<com.google.common.collect.ImmutableSortedSet<BuildTarget>> getPlatformDeps()
        Returns:
        The value of the platformDeps attribute
      • getCompatibleWith

        public com.google.common.collect.ImmutableList<UnconfiguredBuildTarget> getCompatibleWith()
        Description copied from interface: BuildRuleArg
        A list of config_setting a target is compatible with.
        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.

        Returns:
        The value of the defaultTargetPlatform attribute
      • getLabels

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

        public com.google.common.collect.ImmutableSet<SourcePath> getLicenses()
        Returns:
        The value of the licenses attribute
      • getName

        public String getName()
        Description copied from interface: ConstructorArg
        Each rule has a name
        Returns:
        The value of the name attribute
      • getDeps

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

        public boolean equals​(@Nullable
                              Object another)
        This instance is equal to all instances of PrebuiltOcamlLibraryDescriptionArg 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: libDir, includeDir, libName, nativeLib, bytecodeLib, cLibs, nativeCLibs, bytecodeCLibs, bytecodeOnly, platformDeps, compatibleWith, defaultTargetPlatform, labels, licenses, name, deps.
        Overrides:
        hashCode in class Object
        Returns:
        hashCode value
      • toString

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