public static enum CxxSource.Type extends Enum<CxxSource.Type>
Enum Constant and Description |
---|
ASM |
ASM_WITH_CPP |
ASSEMBLER |
ASSEMBLER_WITH_CPP |
C |
C_CPP_OUTPUT |
CUDA |
CUDA_CPP_OUTPUT |
CXX |
CXX_CPP_OUTPUT |
CXX_THINLINK |
HIP |
HIP_CPP_OUTPUT |
OBJC |
OBJC_CPP_OUTPUT |
OBJCXX |
OBJCXX_CPP_OUTPUT |
PCM |
Modifier and Type | Method and Description |
---|---|
static Optional<CxxSource.Type> |
fromExtension(String extension) |
static Optional<CxxSource.Type> |
fromLanguage(String language)
Returns existing type based on the language string
|
com.google.common.collect.ImmutableSet<String> |
getExtensions() |
String |
getLanguage() |
Optional<String> |
getPrecompiledHeaderLanguage()
"Language" type to pass to the compiler in order to generate a precompiled header.
|
String |
getPreprocessedLanguage() |
boolean |
isAssembly() |
boolean |
isPreprocessable() |
static CxxSource.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CxxSource.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CxxSource.Type C
public static final CxxSource.Type CXX
public static final CxxSource.Type CXX_THINLINK
public static final CxxSource.Type OBJC
public static final CxxSource.Type OBJCXX
public static final CxxSource.Type CUDA
public static final CxxSource.Type HIP
public static final CxxSource.Type C_CPP_OUTPUT
public static final CxxSource.Type CXX_CPP_OUTPUT
public static final CxxSource.Type OBJC_CPP_OUTPUT
public static final CxxSource.Type OBJCXX_CPP_OUTPUT
public static final CxxSource.Type CUDA_CPP_OUTPUT
public static final CxxSource.Type HIP_CPP_OUTPUT
public static final CxxSource.Type ASSEMBLER_WITH_CPP
public static final CxxSource.Type ASSEMBLER
public static final CxxSource.Type ASM_WITH_CPP
public static final CxxSource.Type ASM
public static final CxxSource.Type PCM
public static CxxSource.Type[] values()
for (CxxSource.Type c : CxxSource.Type.values()) System.out.println(c);
public static CxxSource.Type valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static Optional<CxxSource.Type> fromExtension(String extension)
public static Optional<CxxSource.Type> fromLanguage(String language)
language
- the language string used to look up the Typepublic String getLanguage()
public String getPreprocessedLanguage()
public Optional<String> getPrecompiledHeaderLanguage()
Will be absent
for source types which do not support precompiled headers.
public boolean isPreprocessable()
public com.google.common.collect.ImmutableSet<String> getExtensions()
public boolean isAssembly()