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, getName
public static final AssemblyLanguage DEFAULT_INSTANCE
public static AssemblyLanguage getDefault()
public IContributedModelBuilder createModelBuilder(ITranslationUnit tu)
ILanguage
createModelBuilder
in interface ILanguage
tu
- the ITranslationUnit
to be parsed (non-null
)IModelBuilder
, which parses the given translation unit and
returns the ICElement
s 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 ILanguage
org.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 ILanguage
org.eclipse.core.runtime.CoreException
public String getId()
ILanguage
public IASTName[] getSelectedNames(IASTTranslationUnit ast, int start, int length)
getSelectedNames
in interface ILanguage
public char[] getLineCommentCharacters()
IAsmLanguage
getLineCommentCharacters
in interface IAsmLanguage
public char getLineSeparatorCharacter()
IAsmLanguage
'\0'
means that no line separator character is defined.getLineSeparatorCharacter
in interface IAsmLanguage
'\0'
public String[] getDirectiveKeywords()
IAsmLanguage
getDirectiveKeywords
in interface IAsmLanguage
public String[] getPreprocessorKeywords()
IAsmLanguage
getPreprocessorKeywords
in interface IAsmLanguage
public 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.IExecutableExtension
org.eclipse.core.runtime.CoreException
public int getLinkageID()
ILanguage
getLinkageID
in interface ILanguage
ILinkage
Copyright (c) IBM Corp. and others 2004, 2020. All Rights Reserved.