Class VarargsReconstructor
- java.lang.Object
-
- com.tonic.analysis.source.ast.transform.VarargsReconstructor
-
- All Implemented Interfaces:
ASTTransform
public class VarargsReconstructor extends Object implements ASTTransform
Reconstructs varargs calls by collapsing an explicit trailing array argument back into individual arguments.
-
-
Constructor Summary
Constructors Constructor Description VarargsReconstructor(ClassFile classFile)Creates the transform.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()booleantransform(BlockStmt block)Transforms the given block statement in place.
-
-
-
Constructor Detail
-
VarargsReconstructor
public VarargsReconstructor(ClassFile classFile)
Creates the transform.- Parameters:
classFile- the class being decompiled, used to resolve callees declared in it before falling back to the JDK
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getNamein interfaceASTTransform- Returns:
- the name of this transform for logging/debugging
-
transform
public boolean transform(BlockStmt block)
Description copied from interface:ASTTransformTransforms the given block statement in place.- Specified by:
transformin interfaceASTTransform- Parameters:
block- the block to transform- Returns:
- true if any changes were made
-
-