variable_definitions.rules.diff
rules/convert/variable_definitions.rules 2014-04-26 09:31:56 +0000 | ||
---|---|---|
1010 | 1010 |
|
1011 | 1011 |
<!-- normal case --> |
1012 | 1012 |
<action>methodType = java.method_call</action> |
1013 |
<action>methodTxt = "setPrecision"</action> |
|
1013 |
<action>methodTxt = "setLazyPrecision"</action>
|
|
1014 | 1014 |
|
1015 | 1015 |
<!-- importing shared variables which have an override for |
1016 | 1016 |
precision, uses a seperate method to allow for resetting |
... | ... | |
1029 | 1029 |
|
1030 | 1030 |
<!-- for an array case, use a static helper that sets precision |
1031 | 1031 |
for all elements in one call --> |
1032 |
<rule>arrayVar != null and arrayVar >= 0
|
|
1032 |
<rule>arrayVar != null and arrayVar != 0
|
|
1033 | 1033 |
<action>methodType = java.static_method_call</action> |
1034 |
<action>methodTxt = "decimal.setPrecision"</action> |
|
1034 |
<action>methodTxt = "decimal.setLazyPrecision"</action>
|
|
1035 | 1035 |
</rule> |
1036 | 1036 |
|
1037 | 1037 |
<action> |