[ 1879395 ] Implement Process script JSR 223

- Implement G_, W_, A_ and P_ prefix for variables.
This commit is contained in:
Heng Sin Low 2008-01-28 17:35:35 +00:00
parent 346983a22a
commit 620261e2bb
2 changed files with 2 additions and 13 deletions

View File

@ -271,7 +271,7 @@ public class MRule extends X_AD_Rule
* @param m_windowNo
* @return converted key
*/
private static String convertKey (String key, int m_windowNo)
public static String convertKey (String key, int m_windowNo)
{
String k = m_windowNo + "|";
if (key.startsWith(k))

View File

@ -346,18 +346,7 @@ public class Scriptlet
*/
private String convertKey (String key)
{
String k = m_windowNo + "|";
if (key.startsWith(k))
{
String retValue = "$" + key.substring(k.length());
retValue = Util.replace(retValue, "|", "$");
return retValue;
}
else
{
String retValue = Util.replace(key, "#", "$$");
return retValue;
}
return MRule.convertKey(key, m_windowNo);
} // convertKey
/**