Class ProviderContextImpl

    • Constructor Detail

      • ProviderContextImpl

        public ProviderContextImpl()
    • Method Detail

      • getContextDerivedData

        public ContextDerivedData getContextDerivedData()
        Description copied from interface: IQueryContext
        For example, retained size derived data.
        Returns:
        the derived data
      • getPrimaryFile

        public File getPrimaryFile()
        Description copied from interface: IQueryContext
        The main file for the snapshot
        Returns:
        the dump
      • getPrefix

        public String getPrefix()
        Description copied from interface: IQueryContext
        The prefix for files generated from snapshot
        Returns:
        the prefix
      • parse

        public Object parse​(Class<?> type,
                            Argument.Advice advice,
                            String[] args,
                            ParsePosition pos)
                     throws SnapshotException
        Description copied from interface: IQueryContext
        Consume the special data. For example using the ArgumentParser for data from a query wizard.
        Parameters:
        type - The Java type of the destination argument.
        advice - Further details about the argument.
        args - The source to be converted
        pos - Used to index through the array of Strings.
        Returns:
        the result of parsing the data suitable given the type and advice
        Throws:
        SnapshotException - If there is a problem in the parsing.
      • parses

        public boolean parses​(Class<?> type,
                              Argument.Advice advice)
        Description copied from interface: IQueryContext
        Is special parsing required to get an object of the required type?
        Parameters:
        type - The Java type of the argument.
        advice - Further details about the argument.
        Returns:
        true if special parsing is needed, for example for a heap object or class object in the heap.