Enum CxxSource.Type

    • Method Detail

      • values

        public static CxxSource.Type[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (CxxSource.Type c : CxxSource.Type.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static CxxSource.Type valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • fromLanguage

        public static Optional<CxxSource.Type> fromLanguage​(String language)
        Returns existing type based on the language string
        Parameters:
        language - the language string used to look up the Type
        Returns:
        Type if any type matches with the input string. Otherwise empty
      • getLanguage

        public String getLanguage()
      • getPreprocessedLanguage

        public String getPreprocessedLanguage()
      • getPrecompiledHeaderLanguage

        public Optional<String> getPrecompiledHeaderLanguage()
        "Language" type to pass to the compiler in order to generate a precompiled header.

        Will be absent for source types which do not support precompiled headers.

      • isPreprocessable

        public boolean isPreprocessable()
      • getExtensions

        public com.google.common.collect.ImmutableSet<String> getExtensions()
      • isAssembly

        public boolean isAssembly()