gov.llnl.babel.backend.writers
Interface LineRedirector

All Known Implementing Classes:
LanguageWriterForC, LanguageWriterForMatlab

public interface LineRedirector

Interface LineRedirector is implemented by language writers that support #line Preprocessor redirectives, or some similar mechanism for VPATH builds. (e.g. C and C++)


Method Summary
 int getLineCount()
          get the current line number being printed.
 void redirectBegin(java.lang.String path, int line)
          Mark a region where the debugger should be redirected to another file starting on a specific line
 void redirectEnd(java.lang.String path, int line)
          End the region where the debugger can just follow this file.
 

Method Detail

redirectBegin

public void redirectBegin(java.lang.String path,
                          int line)
Mark a region where the debugger should be redirected to another file starting on a specific line


redirectEnd

public void redirectEnd(java.lang.String path,
                        int line)
End the region where the debugger can just follow this file.


getLineCount

public int getLineCount()
get the current line number being printed.