@Override public VariableReference plus(Variable v) throws ScriptException { if (v == null) throw new ScriptException(composeMessage("Binary '+' operand cannot be null")); String urlSide = encodedURL; if (v.hasURLPathValue()) urlSide += "/" + v.getURLPathValue(); String argSide = encodedArgs; if (v.hasQueryArgumentValue()) { if (argSide == null) argSide = v.getQueryArgumentValue(); else argSide += "&" + v.getQueryArgumentValue(); } return new VariableURL(urlSide, argSide); }
@Override public VariableReference exclamationEquals(Variable v) throws ScriptException { if (v == null) throw new ScriptException(composeMessage("Binary '!=' operand cannot be null")); return new VariableBoolean(!getStringValue().equals(v.getStringValue())); }