added copy and fixed cleaning of semicolons
This commit is contained in:
1 parent
e2c614c6de
commit
efb87c8497
7 files changed
+86
-17
No files matched your search
@@ -189,4 +189,17 @@ public abstract class Value implements Comparable<Value>, Cloneable
|
||||
if (stringVal.isEmpty()) return 0;
|
||||
return ("s"+stringVal).hashCode();
|
||||
}
|
||||
|
||||
public Value deepcopy()
|
||||
{
|
||||
try
|
||||
{
|
||||
return (Value)this.clone();
|
||||
}
|
||||
catch (CloneNotSupportedException e)
|
||||
{
|
||||
// should never happen
|
||||
throw new InternalExpressionException("Cannot make a copy of value: "+this);
|
||||
}
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user