booster / com.didiglobal.booster.transform.util

Package com.didiglobal.booster.transform.util

提供了通用的字节码操作相关的实用类和扩展属性及方法

Types

AbstractSupervisor

An abstraction of Supervisor

abstract class AbstractSupervisor<T> : Supervisor

ArgumentsParser

Represents a parser of java method argument list

class ArgumentsParser

ClassDescriptorSupervisor

A supervisor for class descriptor observing

open class ClassDescriptorSupervisor : AbstractSupervisor<String>

ClassFilter

typealias ClassFilter = (Class<*>) -> Boolean

ClassNameSupervisor

A supervisor for class name observing

class ClassNameSupervisor : AbstractSupervisor<String>

Collector

typealias Collector<T> = Collector<T>

Collectors

sealed class Collectors

ComponentHandler

class ComponentHandler : DefaultHandler

CompositeCollector

Represents a composite collector

class CompositeCollector : Collector<List<*>>

NameCollector

class NameCollector : Collector<String>

RegexCollector

class RegexCollector : Collector<String>

ServiceSupervisor

A supervisor for service (SPI) observing

class ServiceSupervisor : AbstractSupervisor<Pair<String, Collection<String>>>

TransformerClassLoader

class TransformerClassLoader : URLClassLoader

TransformHelper

Utility class for JAR or class file transforming

open class TransformHelper

Extensions for External Classes

java.io.File

java.io.InputStream

java.util.zip.ZipFile

java.util.zip.ZipInputStream

kotlin.String

Properties

ATTR_NAME

const val ATTR_NAME: String

Functions

collect

fun <R> TransformContext.collect(collector: Collector<R>): List<R>
fun AbstractTransformContext.collect(): List<*>