Package org.eclipse.cdt.core.dom.parser
Class CLanguageKeywords
- java.lang.Object
-
- org.eclipse.cdt.core.dom.parser.CLanguageKeywords
-
- All Implemented Interfaces:
ICLanguageKeywords
public class CLanguageKeywords extends java.lang.Object implements ICLanguageKeywords
This class allows provides a reusable implementation of ICLanguageKeywords for use by ILanguage implementations.- Since:
- 5.1
-
-
Constructor Summary
Constructors Constructor Description CLanguageKeywords(ParserLanguage language, IScannerExtensionConfiguration config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String[]getBuiltinTypes()Returns the built-in type names defined for this language.java.lang.String[]getKeywords()Returns the keywords defined for this language, excluding built-in types.java.lang.String[]getPreprocessorKeywords()Returns the preprocessor keywords (directives) defined for this language.
-
-
-
Constructor Detail
-
CLanguageKeywords
public CLanguageKeywords(ParserLanguage language, IScannerExtensionConfiguration config)
- Throws:
java.lang.NullPointerException- if either parameter is null
-
-
Method Detail
-
getKeywords
public java.lang.String[] getKeywords()
Description copied from interface:ICLanguageKeywordsReturns the keywords defined for this language, excluding built-in types.- Specified by:
getKeywordsin interfaceICLanguageKeywords- Returns:
- an array of keywords, never
null
-
getBuiltinTypes
public java.lang.String[] getBuiltinTypes()
Description copied from interface:ICLanguageKeywordsReturns the built-in type names defined for this language.- Specified by:
getBuiltinTypesin interfaceICLanguageKeywords- Returns:
- an array of names, never
null
-
getPreprocessorKeywords
public java.lang.String[] getPreprocessorKeywords()
Description copied from interface:ICLanguageKeywordsReturns the preprocessor keywords (directives) defined for this language.- Specified by:
getPreprocessorKeywordsin interfaceICLanguageKeywords- Returns:
- an array of keywords, never
null
-
-