Class SwitchExpressionReconstructor
- java.lang.Object
-
- com.tonic.analysis.source.ast.transform.SwitchExpressionReconstructor
-
- All Implemented Interfaces:
ASTTransform
public class SwitchExpressionReconstructor extends Object implements ASTTransform
Reconstructs switch expressions (Java 14) from the classic statement form javac lowers them to.
-
-
Constructor Summary
Constructors Constructor Description SwitchExpressionReconstructor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()booleantransform(BlockStmt block)Transforms the given block statement in place.
-
-
-
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
-
-