public class EvaluatorUtils
extends java.lang.Object
| Constructor and Description |
|---|
EvaluatorUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getDefaultValue(java.lang.String type)
Return the default value for the provided type.
|
static void |
setEmptyBodies(com.github.javaparser.ast.CompilationUnit unit)
Changes all method bodies of the
CompilationUnit for empty bodies. |
public static void setEmptyBodies(com.github.javaparser.ast.CompilationUnit unit)
CompilationUnit for empty bodies.
Each method that returns any value is changed to return the default value.unit - The CompilationUnit that contains the methodspublic static java.lang.String getDefaultValue(java.lang.String type)
type - The type to check the default value