Utility methods for the DRY rule classes
Type Params | Return Type | Name and description |
---|---|---|
|
static boolean |
areTheSameConstantOrLiteralLists(org.codehaus.groovy.ast.expr.ListExpression listExpression1, org.codehaus.groovy.ast.expr.ListExpression listExpression2) @return true only if both ListExpressions have the same set of constant or literal values, in the same order. |
|
static boolean |
areTheSameConstantOrLiteralMapEntryExpression(org.codehaus.groovy.ast.expr.MapEntryExpression mapEntryExpression1, org.codehaus.groovy.ast.expr.MapEntryExpression mapEntryExpression2) @return true only if both MapEntryExpressions have the same constant or literal key and value |
|
static boolean |
areTheSameConstantOrLiteralMaps(org.codehaus.groovy.ast.expr.MapExpression mapExpression1, org.codehaus.groovy.ast.expr.MapExpression mapExpression2) @return true only if both MapExpressions have the same set of constant or literal keys and values, in the same order. |
|
static boolean |
haveTheSameConstantOrLiteralValue(org.codehaus.groovy.ast.expr.Expression expression1, org.codehaus.groovy.ast.expr.Expression expression2) @return true only if both Expressions have the same constant or literal value |
|
static boolean |
haveTheSameConstantPropertyExpression(org.codehaus.groovy.ast.expr.Expression expression1, org.codehaus.groovy.ast.expr.Expression expression2) @return true only if both Expressions have the same constant property expression (e.g., Object.Property) |
|
static boolean |
haveTheSameConstantValue(org.codehaus.groovy.ast.expr.Expression expression1, org.codehaus.groovy.ast.expr.Expression expression2) @return true only if both Expressions have the same constant or literal values |
|
static boolean |
haveTheSameListLiteralValue(org.codehaus.groovy.ast.expr.Expression expression1, org.codehaus.groovy.ast.expr.Expression expression2) @return true only if both Expressions are ListExpressions and both have the same set of constant or literal values, in the same order. |
|
static boolean |
haveTheSameMapLiteralValue(org.codehaus.groovy.ast.expr.Expression expression1, org.codehaus.groovy.ast.expr.Expression expression2) @return true only if both Expressions are MapExpressions and both have the same set of constant or literal keys and values, in the same order. |