Class AbsTransformFlow
- java.lang.Object
-
- com.ss.android.ugc.bytex.common.flow.AbsTransformFlow
-
- All Implemented Interfaces:
TransformFlow,java.lang.Iterable<TransformFlow>
- Direct Known Subclasses:
MainTransformFlow
public abstract class AbsTransformFlow extends java.lang.Object implements TransformFlow
-
-
Field Summary
Fields Modifier and Type Field Description protected TransformContextcontextprotected TransformEnginetransformEngine
-
Constructor Summary
Constructors Constructor Description AbsTransformFlow(TransformEngine transformEngine)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Default Methods Deprecated Methods Modifier and Type Method Description protected abstract AbsTransformFlowafterTransform(TransformEngine transformEngine)protected java.io.FileandroidJar()protected abstract AbsTransformFlowbeforeTransform(TransformEngine transformEngine)protected voidbeginRun()Deprecated.voidendRun()Deprecated.java.io.FilegetGraphCache()返回TransformFlow的Graph缓存文件路径,增量编译需要读取和写入使用 Returns the path of the Graph cache file of TransformFlow,witch is used by incremental compilationTransformFlowgetNextTransformFlow()TransformFlowgetPreTransformFlow()default booleanisLifecycleAware()java.util.Iterator<TransformFlow>iterator()protected voidmarkRunningState(TransformContext.State state)default voidregisterTransformFlowListener(TransformFlowListener listener)protected voidrunning()Deprecated.voidsetNextTransformFlow(TransformFlow transformFlow)internal onlyvoidsetPreTransformFlow(TransformFlow transformFlow)internal onlyprotected AbsTransformFlowtransform(FileProcessor... processors)protected AbsTransformFlowtransform(TransformEngine transformEngine, boolean isLast, FileProcessor... processors)protected AbsTransformFlowtraverse(FileProcessor... processors)protected AbsTransformFlowtraverseAndroidJarOnly(FileProcessor... processors)protected AbsTransformFlowtraverseArtifactOnly(FileProcessor... processors)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.ss.android.ugc.bytex.common.flow.TransformFlow
getClassGraph, getPriority, name, prepare, run
-
-
-
-
Field Detail
-
transformEngine
protected final TransformEngine transformEngine
-
context
protected final TransformContext context
-
-
Constructor Detail
-
AbsTransformFlow
public AbsTransformFlow(TransformEngine transformEngine)
-
-
Method Detail
-
beginRun
@Deprecated protected void beginRun()
Deprecated.use $markRunningState(TransformContext.State)instead
-
running
@Deprecated protected void running()
Deprecated.use $markRunningState(TransformContext.State)instead
-
endRun
@Deprecated public void endRun()
Deprecated.use $markRunningState(TransformContext.State)instead
-
markRunningState
protected void markRunningState(TransformContext.State state)
-
getGraphCache
public java.io.File getGraphCache()
Description copied from interface:TransformFlow返回TransformFlow的Graph缓存文件路径,增量编译需要读取和写入使用 Returns the path of the Graph cache file of TransformFlow,witch is used by incremental compilation- Specified by:
getGraphCachein interfaceTransformFlow
-
traverse
protected AbsTransformFlow traverse(FileProcessor... processors) throws java.io.IOException, java.lang.InterruptedException
- Throws:
java.io.IOExceptionjava.lang.InterruptedException
-
traverseArtifactOnly
protected AbsTransformFlow traverseArtifactOnly(FileProcessor... processors) throws java.io.IOException, java.lang.InterruptedException
- Throws:
java.io.IOExceptionjava.lang.InterruptedException
-
traverseAndroidJarOnly
protected AbsTransformFlow traverseAndroidJarOnly(FileProcessor... processors) throws java.io.IOException, java.lang.InterruptedException
- Throws:
java.io.IOExceptionjava.lang.InterruptedException
-
androidJar
protected java.io.File androidJar() throws java.io.FileNotFoundException- Throws:
java.io.FileNotFoundException
-
transform
protected AbsTransformFlow transform(FileProcessor... processors) throws java.io.IOException, java.lang.InterruptedException
- Throws:
java.io.IOExceptionjava.lang.InterruptedException
-
beforeTransform
protected abstract AbsTransformFlow beforeTransform(TransformEngine transformEngine) throws java.io.IOException
- Throws:
java.io.IOException
-
transform
protected AbsTransformFlow transform(TransformEngine transformEngine, boolean isLast, FileProcessor... processors) throws java.io.IOException
- Throws:
java.io.IOException
-
afterTransform
protected abstract AbsTransformFlow afterTransform(TransformEngine transformEngine) throws java.io.IOException
- Throws:
java.io.IOException
-
setPreTransformFlow
public void setPreTransformFlow(TransformFlow transformFlow)
Description copied from interface:TransformFlowinternal only- Specified by:
setPreTransformFlowin interfaceTransformFlow
-
getPreTransformFlow
public TransformFlow getPreTransformFlow()
- Specified by:
getPreTransformFlowin interfaceTransformFlow
-
setNextTransformFlow
public void setNextTransformFlow(TransformFlow transformFlow)
Description copied from interface:TransformFlowinternal only- Specified by:
setNextTransformFlowin interfaceTransformFlow
-
getNextTransformFlow
public TransformFlow getNextTransformFlow()
- Specified by:
getNextTransformFlowin interfaceTransformFlow
-
iterator
@NotNull public java.util.Iterator<TransformFlow> iterator()
- Specified by:
iteratorin interfacejava.lang.Iterable<TransformFlow>
-
registerTransformFlowListener
public default void registerTransformFlowListener(TransformFlowListener listener) throws java.lang.UnsupportedOperationException
- Throws:
java.lang.UnsupportedOperationException
-
isLifecycleAware
public default boolean isLifecycleAware()
-
-