|
Eclipse CDT Pre-release 3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectPlatformObject
org.eclipse.cdt.core.model.AbstractLanguage
org.eclipse.cdt.core.model.AssemblyLanguage
public class AssemblyLanguage
Built-in language for assembly files.
Field Summary | |
---|---|
static AssemblyLanguage |
DEFAULT_INSTANCE
|
Fields inherited from interface org.eclipse.cdt.core.model.ILanguage |
---|
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 Summary | |
---|---|
AssemblyLanguage()
|
Method Summary | |
---|---|
IContributedModelBuilder |
createModelBuilder(ITranslationUnit tu)
Used to override the default model building behavior for a translation unit. |
IASTTranslationUnit |
getASTTranslationUnit(org.eclipse.cdt.core.parser.CodeReader reader,
org.eclipse.cdt.core.parser.IScannerInfo scanInfo,
org.eclipse.cdt.core.dom.ICodeReaderFactory fileCreator,
org.eclipse.cdt.core.index.IIndex index,
org.eclipse.cdt.core.parser.IParserLogService log)
Construct an AST for the source code provided by reader . |
IASTCompletionNode |
getCompletionNode(org.eclipse.cdt.core.parser.CodeReader reader,
org.eclipse.cdt.core.parser.IScannerInfo scanInfo,
org.eclipse.cdt.core.dom.ICodeReaderFactory fileCreator,
org.eclipse.cdt.core.index.IIndex index,
org.eclipse.cdt.core.parser.IParserLogService log,
int offset)
Return the AST completion node for the given offset. |
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)
Gather the list of IASTNames that appear the selection with the given start offset and length in the given ITranslationUnit. |
void |
setInitializationData(IConfigurationElement config,
String propertyName,
Object data)
|
Methods inherited from class org.eclipse.cdt.core.model.AbstractLanguage |
---|
getASTTranslationUnit, getName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final AssemblyLanguage DEFAULT_INSTANCE
Constructor Detail |
---|
public AssemblyLanguage()
Method Detail |
---|
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 builderpublic IASTTranslationUnit getASTTranslationUnit(org.eclipse.cdt.core.parser.CodeReader reader, org.eclipse.cdt.core.parser.IScannerInfo scanInfo, org.eclipse.cdt.core.dom.ICodeReaderFactory fileCreator, org.eclipse.cdt.core.index.IIndex index, org.eclipse.cdt.core.parser.IParserLogService log) throws CoreException
ILanguage
reader
.
Fully equivalent to
getASTTranslationUnit(reader, scanInfo, fileCreator, index, 0, log)
getASTTranslationUnit
in interface ILanguage
reader
- source code to be parsed.scanInfo
- provides include paths and defined symbols.fileCreator
- factory that provides CodeReaders for files included
by the source code being parsed.index
- (optional) index to use to provide support for ambiguity
resolution.log
- logger
CoreException
public IASTCompletionNode getCompletionNode(org.eclipse.cdt.core.parser.CodeReader reader, org.eclipse.cdt.core.parser.IScannerInfo scanInfo, org.eclipse.cdt.core.dom.ICodeReaderFactory fileCreator, org.eclipse.cdt.core.index.IIndex index, org.eclipse.cdt.core.parser.IParserLogService log, int offset) throws CoreException
ILanguage
getCompletionNode
in interface ILanguage
CoreException
public String getId()
ILanguage
getId
in interface ILanguage
public IASTName[] getSelectedNames(IASTTranslationUnit ast, int start, int length)
ILanguage
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(IConfigurationElement config, String propertyName, Object data) throws CoreException
CoreException
public int getLinkageID()
ILanguage
getLinkageID
in interface ILanguage
ILinkage
|
Eclipse CDT Pre-release 3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |