T - The type of the task this extension represents.public abstract class AbstractByteBuddyTaskExtension<T extends AbstractByteBuddyTask>
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractByteBuddyTaskExtension()
Creates a new abstract Byte Buddy task extension.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
configure(T task)
Applies this extension's properties.
|
protected abstract void |
doConfigure(T task)
Applies any extension-specific properties.
|
net.bytebuddy.build.EntryPoint |
getEntryPoint()
Returns the entry point to use.
|
java.lang.String |
getSuffix()
Returns the suffix to use for rebased methods or the empty string if a random suffix should be used.
|
int |
getThreads()
Returns the number of threads to use for transforming or
0 if the transformation should be applied in the main thread. |
java.util.List<Transformation> |
getTransformations()
Returns the transformations to apply.
|
boolean |
isExtendedParsing()
Returns
true if extended parsing should be used. |
boolean |
isFailFast()
Returns
true if a warning should be issued for an empty type set. |
boolean |
isFailOnLiveInitializer()
Returns
true if the transformation should fail if a live initializer is used. |
boolean |
isWarnOnEmptyTypeSet()
Returns
true if a warning should be issued for an empty type set. |
void |
setEntryPoint(net.bytebuddy.build.EntryPoint entryPoint)
Sets the entry point to use.
|
void |
setExtendedParsing(boolean extendedParsing)
Determines if extended parsing should be used.
|
void |
setFailFast(boolean failFast)
Determines if a warning should be issued for an empty type set.
|
void |
setFailOnLiveInitializer(boolean failOnLiveInitializer)
Determines if the transformation should fail if a live initializer is used.
|
void |
setSuffix(java.lang.String suffix)
Sets the suffix to use for rebased methods or the empty string if a random suffix should be used.
|
void |
setThreads(int threads)
Sets the number of threads to use for transforming or
0 if the transformation should be applied in the main thread. |
void |
setWarnOnEmptyTypeSet(boolean warnOnEmptyTypeSet)
Returns
true if a warning should be issued for an empty type set. |
void |
transformation(groovy.lang.Closure<Transformation> closure)
Adds an additional transformation.
|
protected AbstractByteBuddyTaskExtension()
public java.util.List<Transformation> getTransformations()
public void transformation(groovy.lang.Closure<Transformation> closure)
closure - The closure to configure the transformation.public net.bytebuddy.build.EntryPoint getEntryPoint()
public void setEntryPoint(net.bytebuddy.build.EntryPoint entryPoint)
entryPoint - The entry point to use.public java.lang.String getSuffix()
public void setSuffix(java.lang.String suffix)
suffix - The suffix to use for rebased methods or the empty string if a random suffix should be used.public boolean isFailOnLiveInitializer()
true if the transformation should fail if a live initializer is used.true if the transformation should fail if a live initializer is used.public void setFailOnLiveInitializer(boolean failOnLiveInitializer)
failOnLiveInitializer - true if the transformation should fail if a live initializer is used.public boolean isWarnOnEmptyTypeSet()
true if a warning should be issued for an empty type set.true if a warning should be issued for an empty type set.public void setWarnOnEmptyTypeSet(boolean warnOnEmptyTypeSet)
true if a warning should be issued for an empty type set.warnOnEmptyTypeSet - true if a warning should be issued for an empty type set.public boolean isFailFast()
true if a warning should be issued for an empty type set.true if a warning should be issued for an empty type set.public void setFailFast(boolean failFast)
failFast - true if a warning should be issued for an empty type set.public boolean isExtendedParsing()
true if extended parsing should be used.true if extended parsing should be used.public void setExtendedParsing(boolean extendedParsing)
extendedParsing - true if extended parsing should be used.public int getThreads()
0 if the transformation should be applied in the main thread.0 if the transformation should be applied in the main thread.public void setThreads(int threads)
0 if the transformation should be applied in the main thread.threads - The number of threads to use for transforming or 0 if the transformation should be applied in the main thread.protected abstract void doConfigure(T task)
task - The task to configure.protected void configure(T task)
task - The task to configure.