pdfOptimizer 3.0.1 API
iText.Pdfoptimizer.Report.Location.LocationStack Class Reference

The class allows to build custom analogue of the stacktrace which does not use reflection. More...

Public Member Functions

virtual void  EnterLocation (String location)
  Add a new location into location stack. More...
 
virtual void  LeaveLocation ()
  Removes top-level location from location stack. More...
 
virtual String  GetCurrentLocation ()
  Gets string representation for top-level location which is consider as actual location. More...
 
virtual String  GetFullStack ()
  Gets string representation full location stack. More...
 

Detailed Description

The class allows to build custom analogue of the stacktrace which does not use reflection.

The class allows to build custom analogue of the stacktrace which does not use reflection. The goal is to support fast and light-weighted mechanism of identifying the root of any messages appeared during optimization process.

Member Function Documentation

◆ EnterLocation()

virtual void iText.Pdfoptimizer.Report.Location.LocationStack.EnterLocation ( String  location )
inlinevirtual

Add a new location into location stack.

Parameters
location is a string representation of the new location

◆ GetCurrentLocation()

virtual String iText.Pdfoptimizer.Report.Location.LocationStack.GetCurrentLocation ( )
inlinevirtual

Gets string representation for top-level location which is consider as actual location.

Returns
string representation for top-level location

◆ GetFullStack()

virtual String iText.Pdfoptimizer.Report.Location.LocationStack.GetFullStack ( )
inlinevirtual

Gets string representation full location stack.

Returns
string representation for location stack

◆ LeaveLocation()

virtual void iText.Pdfoptimizer.Report.Location.LocationStack.LeaveLocation ( )
inlinevirtual

Removes top-level location from location stack.