public class RemapSources extends AbstractEditJarTask
| Constructor | Description |
|---|---|
RemapSources() |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
addsJavadocs() |
|
java.lang.String |
asRead(java.lang.String name,
java.lang.String text) |
Called as the .java files of the jar are read from the jar
|
void |
doStuffAfter() |
Do Stuff after the jar is Written
|
void |
doStuffBefore() |
Do Stuff before the jar is read
|
void |
doStuffMiddle(java.util.Map<java.lang.String,java.lang.String> sourceMap,
java.util.Map<java.lang.String,byte[]> resourceMap) |
Do Stuff after the jar is read, but before it is written.
|
static void |
injectJavadoc(java.util.List<java.lang.String> lines,
java.lang.String line,
java.util.function.Function<java.lang.String,java.lang.String> methodFunc,
java.util.function.Function<java.lang.String,java.lang.String> fieldFunc) |
Injects a javadoc into the given list of lines, if the given line is a
method or field declaration.
|
void |
setAddsJavadocs(boolean javadoc) |
|
void |
setFieldsCsv(DelayedFile fieldsCsv) |
|
void |
setMethodsCsv(DelayedFile methodsCsv) |
|
void |
setParamsCsv(DelayedFile paramsCsv) |
|
protected boolean |
storeJarInRam() |
Whether to store the contents of the jar in RAM.
|
doTask, setInJar, setOutJaraddValidator, appendParallelSafeAction, compareTo, configure, deleteAllActions, dependsOn, dependsOnTaskDidWork, doFirst, doFirst, doFirst, doLast, doLast, doLast, execute, finalizedBy, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExecuter, getExtensions, getFinalizedBy, getGroup, getIdentityPath, getImpliesSubProjects, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOnlyIf, getOutputs, getPath, getProject, getServices, getShouldRunAfter, getStandardOutputCapture, getState, getTaskActions, getTaskDependencies, getTemporaryDir, getTemporaryDirFactory, getValidators, hasProperty, hasTaskActions, injectIntoNewInstance, isEnabled, isHasCustomActions, leftShift, mustRunAfter, onlyIf, onlyIf, prependParallelSafeAction, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setExecuter, setFinalizedBy, setGroup, setImpliesSubProjects, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, toStringcacheClassHash, defaultCache, doesCache, setDoesCachenewInputDirectory, newInputFile, newOutputDirectory, newOutputFileclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitconfigure, deleteAllActions, dependsOn, dependsOnTaskDidWork, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getConvention, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getFinalizedBy, getGroup, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOutputs, getPath, getProject, getShouldRunAfter, getState, getTaskDependencies, getTemporaryDir, hasProperty, leftShift, mustRunAfter, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfterpublic static void injectJavadoc(java.util.List<java.lang.String> lines,
java.lang.String line,
java.util.function.Function<java.lang.String,java.lang.String> methodFunc,
java.util.function.Function<java.lang.String,java.lang.String> fieldFunc)
lines - The current file content (to be modified by this method)line - The line that was just read (will not be in the list)methodFunc - A function that takes a method SRG id and returns its javadocfieldFunc - A function that takes a field SRG id and returns its javadocpublic void doStuffBefore()
throws java.lang.Exception
AbstractEditJarTaskdoStuffBefore in class AbstractEditJarTaskjava.lang.Exception - for convenienceprotected boolean storeJarInRam()
AbstractEditJarTaskstoreJarInRam in class AbstractEditJarTaskpublic java.lang.String asRead(java.lang.String name,
java.lang.String text)
AbstractEditJarTaskasRead in class AbstractEditJarTaskname - name of the current entrytext - current contents of the entrypublic void setMethodsCsv(DelayedFile methodsCsv)
public void setFieldsCsv(DelayedFile fieldsCsv)
public void setParamsCsv(DelayedFile paramsCsv)
public boolean addsJavadocs()
public void setAddsJavadocs(boolean javadoc)
public void doStuffMiddle(java.util.Map<java.lang.String,java.lang.String> sourceMap,
java.util.Map<java.lang.String,byte[]> resourceMap)
AbstractEditJarTaskdoStuffMiddle in class AbstractEditJarTasksourceMap - name->contents for all java files in the jarresourceMap - name->contents for everything elsepublic void doStuffAfter()
AbstractEditJarTaskdoStuffAfter in class AbstractEditJarTask