
org.snapscript.studio.agent.debug.VariableNameEncoder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of snap-agent Show documentation
Show all versions of snap-agent Show documentation
Dynamic scripting for the JVM
The newest version!
package org.snapscript.studio.agent.debug;
public class VariableNameEncoder {
private static final String DEFAULT_TOKEN = "__DOT__";
private final String token;
public VariableNameEncoder() {
this(DEFAULT_TOKEN);
}
public VariableNameEncoder(String token) {
this.token = token;
}
public String encode(String name) {
if(name != null) {
return name.replace(".", token);
}
return name;
}
public String decode(String name) {
if(name != null) {
return name.replace(token, ".");
}
return name;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy