public interface ClassSource_Streamer
Call back type for class source processing.
Modifier and Type | Method and Description |
---|---|
boolean |
doProcess(java.lang.String className,
ClassSource_Aggregate.ScanPolicy scanPolicy)
Tell if a specified class is to be scanned.
|
boolean |
process(java.lang.String classSourceName,
java.lang.Object jandexClassInfo,
ClassSource_Aggregate.ScanPolicy scanPolicy)
Process the data for the specified class.
|
boolean |
process(java.lang.String classSourceName,
java.lang.String className,
java.io.InputStream inputStream,
ClassSource_Aggregate.ScanPolicy scanPolicy)
Process the data for the specified class.
|
boolean |
supportsJandex()
Tell if this streamer supports the processing of JANDEX class information.
|
boolean doProcess(java.lang.String className, ClassSource_Aggregate.ScanPolicy scanPolicy)
Tell if a specified class is to be scanned.
className
- The name of the class to test.scanPolicy
- The policy to test against.boolean process(java.lang.String classSourceName, java.lang.String className, java.io.InputStream inputStream, ClassSource_Aggregate.ScanPolicy scanPolicy) throws ClassSource_Exception
Process the data for the specified class.
classSourceName
- The name of the class source which contains the class.className
- The name of the class to process.inputStream
- The stream containing the class data.scanPolicy
- The policy active on the class.ClassSource_Exception
- Thrown if an error occurred while
testing the specified class.boolean supportsJandex()
Tell if this streamer supports the processing of JANDEX class information.
boolean process(java.lang.String classSourceName, java.lang.Object jandexClassInfo, ClassSource_Aggregate.ScanPolicy scanPolicy) throws ClassSource_Exception
Process the data for the specified class.
classSourceName
- The name of the class source which contains the class.className
- The name of the class to process.jandexClassInfo
- JANDEX class information for the class. Note: Type is Object
because we can't expose org.jboss.jandex.ClassInfo in SPI.scanPolicy
- The policy active on the class.ClassSource_Exception
- Thrown if an error occurred while
testing the specified class.