Interface Extractor

    • Method Detail

      • extractStream

        default <T> Stream<Either<Exception,​Birthmark<T>>> extractStream​(DataSource source)
        Extract Birthmarks from the given DataSource as Stream
        Type Parameters:
        T - element type of the extracted birthmark
        Parameters:
        source - extraction source
        Returns:
        extracted birthmarks
      • extract

        default <T> Birthmarks<T> extract​(DataSource source)
        Extract birthmarks from the given DataSource as Birthmarks which is the container class for the Birthmarks.
        Type Parameters:
        T - element type of the extracted birthmarks
        Parameters:
        source - extraction source
        Returns:
        extracted birthmarks
      • visitor

        <T> PochiClassVisitor<T> visitor​(org.objectweb.asm.ClassVisitor visitor)
        create and return the visitor for creating the birthmarks from the class file.
        Type Parameters:
        T - element type of the extracted birthmarks
        Parameters:
        visitor - parent visitor
        Returns:
        created visitor
      • extractEach

        <T> Either<Exception,​Birthmark<T>> extractEach​(Entry entry)
        extract the birhtmark from the given entry.
        Type Parameters:
        T - element type of the extracted birthmarks
        Parameters:
        entry - extracting source entry of DataSource
        Returns:
        extracted birthmark from the given entry or some extraction error