-
- All Superinterfaces:
Task<BirthmarkType>
- All Known Implementing Classes:
AbstractExtractor
,KGramBasedBirthmarkExtractor
,VisitorBirthmarkExtractor
public interface Extractor extends Task<BirthmarkType>
Extracting birthmarks from the given DataSource.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default <T> Birthmarks<T>
extract(DataSource source)
Extract birthmarks from the given DataSource as Birthmarks which is the container class for the
s.Birthmark
<T> Either<Exception,Birthmark<T>>
extractEach(Entry entry)
extract the birhtmark from the given entry.default <T> Stream<Either<Exception,Birthmark<T>>>
extractStream(DataSource source)
Extract Birthmarks from the given DataSource as StreamBirthmarkType
type()
returns the type of the birthmark extracting by this extractor.<T> PochiClassVisitor<T>
visitor(org.objectweb.asm.ClassVisitor visitor)
create and return the visitor for creating the birthmarks from the class file.-
Methods inherited from interface jp.cafebabe.birthmarks.Task
configuration, stripEither, stripOptional
-
-
-
-
Method Detail
-
type
BirthmarkType type()
returns the type of the birthmark extracting by this extractor.- Specified by:
type
in interfaceTask<BirthmarkType>
- Returns:
-
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
s.Birthmark
- 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
-
-