|
Eclipse CDT Pre-release 3.0 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Models differences between languages. The interace is not supposed to be implemented directly.
Rather than that clients may subclass AbstractLanguage
.
Field Summary | |
---|---|
static int |
AST_SKIP_ALL_HEADERS
Deprecated. use ITranslationUnit.AST_SKIP_ALL_HEADERS |
static int |
AST_SKIP_IF_NO_BUILD_INFO
Deprecated. use ITranslationUnit.AST_SKIP_IF_NO_BUILD_INFO |
static int |
AST_SKIP_INDEXED_HEADERS
Deprecated. use ITranslationUnit.AST_SKIP_INDEXED_HEADERS |
static int |
AST_USE_INDEX
Deprecated. has no effect. |
static String |
KEY
|
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 . |
IASTTranslationUnit |
getASTTranslationUnit(ITranslationUnit file,
org.eclipse.cdt.core.dom.ICodeReaderFactory codeReaderFactory,
int style)
Deprecated. use ITranslationUnit.getAST(...) . |
IASTTranslationUnit |
getASTTranslationUnit(ITranslationUnit file,
int style)
Deprecated. use ITranslationUnit.getAST() . |
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. |
String |
getId()
Return the language id for this language. |
String |
getName()
|
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. |
Field Detail |
public static final String KEY
public static final int AST_USE_INDEX
public static final int AST_SKIP_ALL_HEADERS
ITranslationUnit.AST_SKIP_ALL_HEADERS
public static final int AST_SKIP_INDEXED_HEADERS
ITranslationUnit.AST_SKIP_INDEXED_HEADERS
public static final int AST_SKIP_IF_NO_BUILD_INFO
ITranslationUnit.AST_SKIP_IF_NO_BUILD_INFO
Method Detail |
public String getId()
public String getName()
public IASTTranslationUnit getASTTranslationUnit(ITranslationUnit file, int style) throws CoreException
ITranslationUnit.getAST()
.
CoreException
public IASTTranslationUnit getASTTranslationUnit(ITranslationUnit file, org.eclipse.cdt.core.dom.ICodeReaderFactory codeReaderFactory, int style) throws CoreException
ITranslationUnit.getAST(...)
.
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
reader
- scanInfo
- fileCreator
- index
- log
- offset
-
CoreException
public IASTName[] getSelectedNames(IASTTranslationUnit ast, int start, int length)
start
- length
-
public IContributedModelBuilder createModelBuilder(ITranslationUnit tu)
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
reader
.
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
|
Eclipse CDT Pre-release 3.0 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |