public abstract class MacroExpansionExplorer extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
MacroExpansionExplorer.IMacroExpansionStep
Representation of a single expansion step or a complete expansion.
|
Constructor and Description |
---|
MacroExpansionExplorer() |
Modifier and Type | Method and Description |
---|---|
static MacroExpansionExplorer |
create(IASTTranslationUnit tu,
IASTFileLocation loc)
Creates a macro expansion explorer for a given file location in a translation unit.
|
static MacroExpansionExplorer |
create(IASTTranslationUnit tu,
org.eclipse.jface.text.IRegion loc)
Creates a macro expansion explorer for a given region in the outermost file of a
translation unit.
|
abstract MacroExpansionExplorer.IMacroExpansionStep |
getExpansionStep(int step)
Returns a description for the requested step within the expansion of the region of this
expansion explorer.
|
abstract int |
getExpansionStepCount()
Returns the total number of available steps for expanding the region of this expansion
explorer.
|
abstract MacroExpansionExplorer.IMacroExpansionStep |
getFullExpansion()
Returns the full expansion for the region of this expansion explorer.
|
public static MacroExpansionExplorer create(IASTTranslationUnit tu, IASTFileLocation loc)
public static MacroExpansionExplorer create(IASTTranslationUnit tu, org.eclipse.jface.text.IRegion loc)
public abstract MacroExpansionExplorer.IMacroExpansionStep getFullExpansion()
public abstract int getExpansionStepCount()
public abstract MacroExpansionExplorer.IMacroExpansionStep getExpansionStep(int step) throws IndexOutOfBoundsException
IndexOutOfBoundsException
- if step < 0 or step >= getExpansionStepCount().Copyright (c) IBM Corp. and others 2004, 2020. All Rights Reserved.