|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cesta.trans.AbstractTransformation
org.cesta.trans.java.AbstractRewriteTransformation
org.cesta.trans.java.IfSwitchReplacement
public class IfSwitchReplacement
This transfromation replaces potentially vulnerable if constructions to semantically equivalent switch with randomized execution.
Parameters:
| Name | Type | Default | Description |
|---|---|---|---|
| includeMethods | String (regexp) | ".*" | method names, that should be included in transformation |
| excludeMethods | String (regexp) | "" | method names, that should not be included in transformatio |
Basic parameters are inherited from AbstractRewriteTransformation.
| Field Summary |
|---|
| Fields inherited from class org.cesta.trans.java.AbstractRewriteTransformation |
|---|
tokens, tree |
| Fields inherited from class org.cesta.trans.AbstractTransformation |
|---|
logger |
| Constructor Summary | |
|---|---|
IfSwitchReplacement()
|
|
| Method Summary | |
|---|---|
java.util.Map<java.lang.String,java.lang.Object> |
getDefaultParams()
Returns default parameters |
void |
transform(MappedFile filePair)
Transforms single file |
| Methods inherited from class org.cesta.trans.java.AbstractRewriteTransformation |
|---|
execute, prepareTreeNodeStream, registerTemplateGroupLoader |
| Methods inherited from class org.cesta.trans.AbstractTransformation |
|---|
addMappedFile, clearParams, getMappedFiles, getParam, getParam, getParamB, getParamB, getParams, getParamS, getParamS, setMappedFiles, setParam, setParams |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IfSwitchReplacement()
| Method Detail |
|---|
public void transform(MappedFile filePair)
throws TransformationException
transform in class AbstractRewriteTransformationfilePair - File pair (input/output) to transform
TransformationException - In case transformation failedpublic java.util.Map<java.lang.String,java.lang.Object> getDefaultParams()
getDefaultParams in class AbstractRewriteTransformation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||