Class MacroExpansionExplorer


  • public abstract class MacroExpansionExplorer
    extends java.lang.Object
    Allows to understand macro expansions step by step.
    Since:
    5.0
    • Constructor Detail

      • MacroExpansionExplorer

        public MacroExpansionExplorer()
    • Method Detail

      • create

        public 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.
      • getExpansionStepCount

        public abstract int getExpansionStepCount()
        Returns the total number of available steps for expanding the region of this expansion explorer.
      • getExpansionStep

        public abstract MacroExpansionExplorer.IMacroExpansionStep getExpansionStep​(int step)
                                                                             throws java.lang.IndexOutOfBoundsException
        Returns a description for the requested step within the expansion of the region of this expansion explorer.
        Throws:
        java.lang.IndexOutOfBoundsException - if step < 0 or step >= getExpansionStepCount().