public class AssemblyLanguage extends AbstractLanguage implements IAsmLanguage, org.eclipse.core.runtime.IExecutableExtension
| Modifier and Type | Field and Description |
|---|---|
static AssemblyLanguage |
DEFAULT_INSTANCE |
OPTION_ADD_COMMENTS, OPTION_IS_SOURCE_UNIT, OPTION_NO_IMAGE_LOCATIONS, OPTION_PARSE_INACTIVE_CODE, OPTION_SKIP_FUNCTION_BODIES, OPTION_SKIP_TRIVIAL_EXPRESSIONS_IN_AGGREGATE_INITIALIZERS| Constructor and Description |
|---|
AssemblyLanguage() |
| Modifier and Type | Method and Description |
|---|---|
IContributedModelBuilder |
createModelBuilder(ITranslationUnit tu)
Used to override the default model building behavior for a translation unit.
|
IASTTranslationUnit |
getASTTranslationUnit(CodeReader reader,
IScannerInfo scanInfo,
ICodeReaderFactory fileCreator,
IIndex index,
IParserLogService log)
Deprecated.
|
IASTCompletionNode |
getCompletionNode(CodeReader reader,
IScannerInfo scanInfo,
ICodeReaderFactory fileCreator,
IIndex index,
IParserLogService log,
int offset)
Deprecated.
|
static AssemblyLanguage |
getDefault() |
String[] |
getDirectiveKeywords()
Get the set of assembler directives defined for this variant.
|
String |
getId()
Return the language id for this language.
|
char[] |
getLineCommentCharacters()
Get the set of valid line comment characters defined for this assembly variant.
|
char |
getLineSeparatorCharacter()
Get the line separator character defined for this assembly variant.
|
int |
getLinkageID()
Return the id of the linkage this language contributes to.
|
String[] |
getPreprocessorKeywords()
Get the preprocessor keywords (directives) defined for this variant.
|
IASTName[] |
getSelectedNames(IASTTranslationUnit ast,
int start,
int length) |
void |
setInitializationData(org.eclipse.core.runtime.IConfigurationElement config,
String propertyName,
Object data) |
getASTTranslationUnit, getASTTranslationUnit, getCompletionNode, getNamepublic static final AssemblyLanguage DEFAULT_INSTANCE
public static AssemblyLanguage getDefault()
public IContributedModelBuilder createModelBuilder(ITranslationUnit tu)
ILanguagecreateModelBuilder in interface ILanguagetu - the ITranslationUnit to be parsed (non-null)IModelBuilder, which parses the given translation unit and
returns the ICElements of its model, or null
to parse using the default CDT model builder@Deprecated public IASTTranslationUnit getASTTranslationUnit(CodeReader reader, IScannerInfo scanInfo, ICodeReaderFactory fileCreator, IIndex index, IParserLogService log) throws org.eclipse.core.runtime.CoreException
getASTTranslationUnit in interface ILanguageorg.eclipse.core.runtime.CoreException@Deprecated public IASTCompletionNode getCompletionNode(CodeReader reader, IScannerInfo scanInfo, ICodeReaderFactory fileCreator, IIndex index, IParserLogService log, int offset) throws org.eclipse.core.runtime.CoreException
getCompletionNode in interface ILanguageorg.eclipse.core.runtime.CoreExceptionpublic String getId()
ILanguagepublic IASTName[] getSelectedNames(IASTTranslationUnit ast, int start, int length)
getSelectedNames in interface ILanguagepublic char[] getLineCommentCharacters()
IAsmLanguagegetLineCommentCharacters in interface IAsmLanguagepublic char getLineSeparatorCharacter()
IAsmLanguage'\0' means that no line separator character is defined.getLineSeparatorCharacter in interface IAsmLanguage'\0'public String[] getDirectiveKeywords()
IAsmLanguagegetDirectiveKeywords in interface IAsmLanguagepublic String[] getPreprocessorKeywords()
IAsmLanguagegetPreprocessorKeywords in interface IAsmLanguagepublic void setInitializationData(org.eclipse.core.runtime.IConfigurationElement config,
String propertyName,
Object data)
throws org.eclipse.core.runtime.CoreException
setInitializationData in interface org.eclipse.core.runtime.IExecutableExtensionorg.eclipse.core.runtime.CoreExceptionpublic int getLinkageID()
ILanguagegetLinkageID in interface ILanguageILinkageCopyright (c) IBM Corp. and others 2004, 2020. All Rights Reserved.