Package com.facebook.buck.features.lua
Class CxxLuaExtensionDescriptionArg
- java.lang.Object
-
- com.facebook.buck.features.lua.CxxLuaExtensionDescriptionArg
-
- All Implemented Interfaces:
BuildRuleArg
,ConstructorArg
,DataTransferObject
,HasDeclaredDeps
,HasDefaultPlatform
,HasTests
,HasDefaultFlavors
,CxxConstructorArg
,HasSystemFrameworkAndLibraries
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class CxxLuaExtensionDescriptionArg extends Object
Immutable implementation ofCxxLuaExtensionDescription.AbstractCxxLuaExtensionDescriptionArg
.Use the builder to create immutable instances:
CxxLuaExtensionDescriptionArg.builder()
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CxxLuaExtensionDescriptionArg.Builder
Builds instances of typeCxxLuaExtensionDescriptionArg
.
-
Field Summary
-
Fields inherited from interface com.facebook.buck.core.description.arg.BuildRuleArg
DEFAULT_TARGET_PLATFORM_PARAM_NAME
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CxxLuaExtensionDescriptionArg.Builder
builder()
Creates a builder forCxxLuaExtensionDescriptionArg
.boolean
equals(Object another)
This instance is equal to all instances ofCxxLuaExtensionDescriptionArg
that have equal attribute values.Optional<String>
getBaseModule()
com.google.common.collect.ImmutableList<UnconfiguredBuildTarget>
getCompatibleWith()
A list ofconfig_setting
a target is compatible with.com.google.common.collect.ImmutableList<StringWithMacros>
getCompilerFlags()
CxxDeps
getCxxDeps()
Optional<Linker.CxxRuntimeType>
getCxxRuntimeType()
com.google.common.collect.ImmutableSortedSet<Flavor>
getDefaultFlavors()
Optional<Flavor>
getDefaultPlatform()
com.google.common.collect.ImmutableMap<String,Flavor>
getDefaults()
Optional<UnconfiguredBuildTarget>
getDefaultTargetPlatform()
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.com.google.common.collect.ImmutableSortedSet<BuildTarget>
getDeps()
Optional<String>
getExecutableName()
com.google.common.collect.ImmutableSortedSet<FrameworkPath>
getFrameworks()
Optional<String>
getHeaderNamespace()
SourceSortedSet
getHeaders()
com.google.common.collect.ImmutableSortedSet<String>
getIncludeDirectories()
A list of include directories to be added to the compile command for compiling this cxx target.com.google.common.collect.ImmutableSortedSet<String>
getLabels()
com.google.common.collect.ImmutableMap<CxxSource.Type,com.google.common.collect.ImmutableList<StringWithMacros>>
getLangCompilerFlags()
com.google.common.collect.ImmutableMap<CxxSource.Type,PatternMatchedCollection<com.google.common.collect.ImmutableList<StringWithMacros>>>
getLangPlatformCompilerFlags()
com.google.common.collect.ImmutableMap<CxxSource.Type,PatternMatchedCollection<com.google.common.collect.ImmutableList<StringWithMacros>>>
getLangPlatformPreprocessorFlags()
com.google.common.collect.ImmutableMap<CxxSource.Type,com.google.common.collect.ImmutableList<StringWithMacros>>
getLangPreprocessorFlags()
com.google.common.collect.ImmutableSortedSet<FrameworkPath>
getLibraries()
com.google.common.collect.ImmutableSet<SourcePath>
getLicenses()
com.google.common.collect.ImmutableList<String>
getLinkerExtraOutputs()
com.google.common.collect.ImmutableList<StringWithMacros>
getLinkerFlags()
String
getName()
Each rule has a namePatternMatchedCollection<com.google.common.collect.ImmutableList<StringWithMacros>>
getPlatformCompilerFlags()
PatternMatchedCollection<com.google.common.collect.ImmutableSortedSet<BuildTarget>>
getPlatformDeps()
PatternMatchedCollection<SourceSortedSet>
getPlatformHeaders()
PatternMatchedCollection<com.google.common.collect.ImmutableList<StringWithMacros>>
getPlatformLinkerFlags()
PatternMatchedCollection<com.google.common.collect.ImmutableList<StringWithMacros>>
getPlatformPreprocessorFlags()
PatternMatchedCollection<com.google.common.collect.ImmutableSortedSet<SourceWithFlags>>
getPlatformSrcs()
com.google.common.collect.ImmutableList<StringWithMacros>
getPostLinkerFlags()
PatternMatchedCollection<com.google.common.collect.ImmutableList<StringWithMacros>>
getPostPlatformLinkerFlags()
Optional<SourcePath>
getPrecompiledHeader()
Optional<SourcePath>
getPrefixHeader()
com.google.common.collect.ImmutableList<StringWithMacros>
getPreprocessorFlags()
CxxDeps
getPrivateCxxDeps()
com.google.common.collect.ImmutableSortedSet<SourcePath>
getRawHeaders()
Raw headers are headers which are used as they are (via compilation flags).com.google.common.collect.ImmutableSortedSet<SourceWithFlags>
getSrcs()
com.google.common.collect.ImmutableSortedSet<BuildTarget>
getTests()
int
hashCode()
Computes a hash code from attributes:baseModule
,compilerFlags
,cxxDeps
,cxxRuntimeType
,defaultFlavors
,defaults
,executableName
,headerNamespace
,headers
,includeDirectories
,langCompilerFlags
,langPlatformCompilerFlags
,langPlatformPreprocessorFlags
,langPreprocessorFlags
,linkerExtraOutputs
,linkerFlags
,platformCompilerFlags
,platformDeps
,platformHeaders
,platformLinkerFlags
,platformPreprocessorFlags
,platformSrcs
,postLinkerFlags
,postPlatformLinkerFlags
,precompiledHeader
,prefixHeader
,preprocessorFlags
,privateCxxDeps
,rawHeaders
,srcs
,compatibleWith
,defaultTargetPlatform
,labels
,licenses
,name
,deps
,defaultPlatform
,tests
,frameworks
,libraries
.String
toString()
Prints the immutable valueCxxLuaExtensionDescriptionArg
with attribute values.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.facebook.buck.core.description.arg.BuildRuleArg
labelsContainsAnyOf
-
Methods inherited from interface com.facebook.buck.cxx.CxxConstructorArg
checkDuplicateSources, checkHeadersUsage
-
-
-
-
Method Detail
-
getBaseModule
public Optional<String> getBaseModule()
- Returns:
- The value of the
baseModule
attribute
-
getCompilerFlags
public com.google.common.collect.ImmutableList<StringWithMacros> getCompilerFlags()
- Specified by:
getCompilerFlags
in interfaceCxxConstructorArg
- Returns:
- The value of the
compilerFlags
attribute
-
getCxxDeps
public CxxDeps getCxxDeps()
- Specified by:
getCxxDeps
in interfaceCxxConstructorArg
- Returns:
- The computed-at-construction value of the
cxxDeps
attribute
-
getCxxRuntimeType
public Optional<Linker.CxxRuntimeType> getCxxRuntimeType()
- Specified by:
getCxxRuntimeType
in interfaceCxxConstructorArg
- Returns:
- The value of the
cxxRuntimeType
attribute
-
getDefaultFlavors
public com.google.common.collect.ImmutableSortedSet<Flavor> getDefaultFlavors()
- Specified by:
getDefaultFlavors
in interfaceCxxConstructorArg
- Specified by:
getDefaultFlavors
in interfaceHasDefaultFlavors
- Returns:
- The computed-at-construction value of the
defaultFlavors
attribute
-
getDefaults
public com.google.common.collect.ImmutableMap<String,Flavor> getDefaults()
- Specified by:
getDefaults
in interfaceCxxConstructorArg
- Returns:
- The value of the
defaults
attribute
-
getExecutableName
public Optional<String> getExecutableName()
- Specified by:
getExecutableName
in interfaceCxxConstructorArg
- Returns:
- The value of the
executableName
attribute
-
getHeaderNamespace
public Optional<String> getHeaderNamespace()
- Specified by:
getHeaderNamespace
in interfaceCxxConstructorArg
- Returns:
- The value of the
headerNamespace
attribute
-
getHeaders
public SourceSortedSet getHeaders()
- Specified by:
getHeaders
in interfaceCxxConstructorArg
- Returns:
- The value of the
headers
attribute
-
getIncludeDirectories
public com.google.common.collect.ImmutableSortedSet<String> getIncludeDirectories()
Description copied from interface:CxxConstructorArg
A list of include directories to be added to the compile command for compiling this cxx target.- Specified by:
getIncludeDirectories
in interfaceCxxConstructorArg
- Returns:
- The value of the
includeDirectories
attribute
-
getLangCompilerFlags
public com.google.common.collect.ImmutableMap<CxxSource.Type,com.google.common.collect.ImmutableList<StringWithMacros>> getLangCompilerFlags()
- Specified by:
getLangCompilerFlags
in interfaceCxxConstructorArg
- Returns:
- The value of the
langCompilerFlags
attribute
-
getLangPlatformCompilerFlags
public com.google.common.collect.ImmutableMap<CxxSource.Type,PatternMatchedCollection<com.google.common.collect.ImmutableList<StringWithMacros>>> getLangPlatformCompilerFlags()
- Specified by:
getLangPlatformCompilerFlags
in interfaceCxxConstructorArg
- Returns:
- The value of the
langPlatformCompilerFlags
attribute
-
getLangPlatformPreprocessorFlags
public com.google.common.collect.ImmutableMap<CxxSource.Type,PatternMatchedCollection<com.google.common.collect.ImmutableList<StringWithMacros>>> getLangPlatformPreprocessorFlags()
- Specified by:
getLangPlatformPreprocessorFlags
in interfaceCxxConstructorArg
- Returns:
- The value of the
langPlatformPreprocessorFlags
attribute
-
getLangPreprocessorFlags
public com.google.common.collect.ImmutableMap<CxxSource.Type,com.google.common.collect.ImmutableList<StringWithMacros>> getLangPreprocessorFlags()
- Specified by:
getLangPreprocessorFlags
in interfaceCxxConstructorArg
- Returns:
- The value of the
langPreprocessorFlags
attribute
-
getLinkerExtraOutputs
public com.google.common.collect.ImmutableList<String> getLinkerExtraOutputs()
- Specified by:
getLinkerExtraOutputs
in interfaceCxxConstructorArg
- Returns:
- The value of the
linkerExtraOutputs
attribute
-
getLinkerFlags
public com.google.common.collect.ImmutableList<StringWithMacros> getLinkerFlags()
- Specified by:
getLinkerFlags
in interfaceCxxConstructorArg
- Returns:
- The value of the
linkerFlags
attribute
-
getPlatformCompilerFlags
public PatternMatchedCollection<com.google.common.collect.ImmutableList<StringWithMacros>> getPlatformCompilerFlags()
- Specified by:
getPlatformCompilerFlags
in interfaceCxxConstructorArg
- Returns:
- The value of the
platformCompilerFlags
attribute
-
getPlatformDeps
public PatternMatchedCollection<com.google.common.collect.ImmutableSortedSet<BuildTarget>> getPlatformDeps()
- Specified by:
getPlatformDeps
in interfaceCxxConstructorArg
- Returns:
- The value of the
platformDeps
attribute
-
getPlatformHeaders
public PatternMatchedCollection<SourceSortedSet> getPlatformHeaders()
- Specified by:
getPlatformHeaders
in interfaceCxxConstructorArg
- Returns:
- The value of the
platformHeaders
attribute
-
getPlatformLinkerFlags
public PatternMatchedCollection<com.google.common.collect.ImmutableList<StringWithMacros>> getPlatformLinkerFlags()
- Specified by:
getPlatformLinkerFlags
in interfaceCxxConstructorArg
- Returns:
- The value of the
platformLinkerFlags
attribute
-
getPlatformPreprocessorFlags
public PatternMatchedCollection<com.google.common.collect.ImmutableList<StringWithMacros>> getPlatformPreprocessorFlags()
- Specified by:
getPlatformPreprocessorFlags
in interfaceCxxConstructorArg
- Returns:
- The value of the
platformPreprocessorFlags
attribute
-
getPlatformSrcs
public PatternMatchedCollection<com.google.common.collect.ImmutableSortedSet<SourceWithFlags>> getPlatformSrcs()
- Specified by:
getPlatformSrcs
in interfaceCxxConstructorArg
- Returns:
- The value of the
platformSrcs
attribute
-
getPostLinkerFlags
public com.google.common.collect.ImmutableList<StringWithMacros> getPostLinkerFlags()
- Specified by:
getPostLinkerFlags
in interfaceCxxConstructorArg
- Returns:
- The value of the
postLinkerFlags
attribute
-
getPostPlatformLinkerFlags
public PatternMatchedCollection<com.google.common.collect.ImmutableList<StringWithMacros>> getPostPlatformLinkerFlags()
- Specified by:
getPostPlatformLinkerFlags
in interfaceCxxConstructorArg
- Returns:
- The value of the
postPlatformLinkerFlags
attribute
-
getPrecompiledHeader
public Optional<SourcePath> getPrecompiledHeader()
- Specified by:
getPrecompiledHeader
in interfaceCxxConstructorArg
- Returns:
- The value of the
precompiledHeader
attribute
-
getPrefixHeader
public Optional<SourcePath> getPrefixHeader()
- Specified by:
getPrefixHeader
in interfaceCxxConstructorArg
- Returns:
- The value of the
prefixHeader
attribute
-
getPreprocessorFlags
public com.google.common.collect.ImmutableList<StringWithMacros> getPreprocessorFlags()
- Specified by:
getPreprocessorFlags
in interfaceCxxConstructorArg
- Returns:
- The value of the
preprocessorFlags
attribute
-
getPrivateCxxDeps
public CxxDeps getPrivateCxxDeps()
- Specified by:
getPrivateCxxDeps
in interfaceCxxConstructorArg
- Returns:
- The computed-at-construction value of the
privateCxxDeps
attribute
-
getRawHeaders
public com.google.common.collect.ImmutableSortedSet<SourcePath> getRawHeaders()
Description copied from interface:CxxConstructorArg
Raw headers are headers which are used as they are (via compilation flags). Buck doesn't copy them or create symlinks for them. They are public (since managed by compilation flags).- Specified by:
getRawHeaders
in interfaceCxxConstructorArg
- Returns:
- The value of the
rawHeaders
attribute
-
getSrcs
public com.google.common.collect.ImmutableSortedSet<SourceWithFlags> getSrcs()
- Specified by:
getSrcs
in interfaceCxxConstructorArg
- Returns:
- The value of the
srcs
attribute
-
getCompatibleWith
public com.google.common.collect.ImmutableList<UnconfiguredBuildTarget> getCompatibleWith()
Description copied from interface:BuildRuleArg
A list ofconfig_setting
a target is compatible with.- Specified by:
getCompatibleWith
in interfaceBuildRuleArg
- 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 interfaceBuildRuleArg
- Returns:
- The value of the
defaultTargetPlatform
attribute
-
getLabels
public com.google.common.collect.ImmutableSortedSet<String> getLabels()
- Specified by:
getLabels
in interfaceBuildRuleArg
- Returns:
- The value of the
labels
attribute
-
getLicenses
public com.google.common.collect.ImmutableSet<SourcePath> getLicenses()
- Specified by:
getLicenses
in interfaceBuildRuleArg
- Returns:
- The value of the
licenses
attribute
-
getName
public String getName()
Description copied from interface:ConstructorArg
Each rule has a name- Specified by:
getName
in interfaceConstructorArg
- Returns:
- The value of the
name
attribute
-
getDeps
public com.google.common.collect.ImmutableSortedSet<BuildTarget> getDeps()
- Specified by:
getDeps
in interfaceHasDeclaredDeps
- Returns:
- The value of the
deps
attribute
-
getDefaultPlatform
public Optional<Flavor> getDefaultPlatform()
- Specified by:
getDefaultPlatform
in interfaceHasDefaultPlatform
- Returns:
- The value of the
defaultPlatform
attribute
-
getTests
public com.google.common.collect.ImmutableSortedSet<BuildTarget> getTests()
-
getFrameworks
public com.google.common.collect.ImmutableSortedSet<FrameworkPath> getFrameworks()
- Specified by:
getFrameworks
in interfaceHasSystemFrameworkAndLibraries
- Returns:
- The value of the
frameworks
attribute
-
getLibraries
public com.google.common.collect.ImmutableSortedSet<FrameworkPath> getLibraries()
- Specified by:
getLibraries
in interfaceHasSystemFrameworkAndLibraries
- Returns:
- The value of the
libraries
attribute
-
equals
public boolean equals(@Nullable Object another)
This instance is equal to all instances ofCxxLuaExtensionDescriptionArg
that have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:baseModule
,compilerFlags
,cxxDeps
,cxxRuntimeType
,defaultFlavors
,defaults
,executableName
,headerNamespace
,headers
,includeDirectories
,langCompilerFlags
,langPlatformCompilerFlags
,langPlatformPreprocessorFlags
,langPreprocessorFlags
,linkerExtraOutputs
,linkerFlags
,platformCompilerFlags
,platformDeps
,platformHeaders
,platformLinkerFlags
,platformPreprocessorFlags
,platformSrcs
,postLinkerFlags
,postPlatformLinkerFlags
,precompiledHeader
,prefixHeader
,preprocessorFlags
,privateCxxDeps
,rawHeaders
,srcs
,compatibleWith
,defaultTargetPlatform
,labels
,licenses
,name
,deps
,defaultPlatform
,tests
,frameworks
,libraries
.
-
toString
public String toString()
Prints the immutable valueCxxLuaExtensionDescriptionArg
with attribute values.
-
builder
public static CxxLuaExtensionDescriptionArg.Builder builder()
Creates a builder forCxxLuaExtensionDescriptionArg
.- Returns:
- A new CxxLuaExtensionDescriptionArg builder
-
-