String equals

This commit is contained in:
Jared committed 2016-08-22 12:31:42 +02:00
1 parent fdeaf3b163
commit 23cc4f1236
2 files changed
+12 -12

No files matched your search

@@ -6,17 +6,17 @@
package stanhebben.zenscript.util;
import java.util.Iterator;
import org.objectweb.asm.ClassWriter;
import org.objectweb.asm.Opcodes;
import org.objectweb.asm.Type;
import stanhebben.zenscript.type.natives.IJavaMethod;
import stanhebben.zenscript.type.natives.JavaMethod;
import static stanhebben.zenscript.util.ZenTypeUtil.EMPTY_REGISTRY;
import static stanhebben.zenscript.util.ZenTypeUtil.internal;
import static stanhebben.zenscript.util.ZenTypeUtil.signature;
import stanhebben.zenscript.value.IAny;
import java.util.Iterator;
import static stanhebben.zenscript.util.ZenTypeUtil.*;
/**
*
* @author Stan
@@ -396,12 +396,12 @@ public class AnyClassWriter {
definition.defineHashCode(outputHashCode);
outputHashCode.end();
/*
* MethodOutput outputEquals = new MethodOutput( writer,
* Opcodes.ACC_PUBLIC, "equals", "(Ljava/lang/Object;)Z", null,
* null); outputEquals.enableDebug(); outputEquals.start();
* definition.defineEquals(outputEquals); outputEquals.end();
*/
MethodOutput outputEquals = new MethodOutput( writer,
Opcodes.ACC_PUBLIC, "equals", "(Ljava/lang/Object;)Z", null,
null); outputEquals.enableDebug(); outputEquals.start();
definition.defineEquals(outputEquals); outputEquals.end();
writer.visitEnd();
return writer.toByteArray();
@@ -194,8 +194,8 @@ public class StringUtil {
if ((oldstr.charAt(0) != '"' || oldstr.charAt(oldstr.length() - 1) != '"')
&& (oldstr.charAt(0) != '\'' || oldstr.charAt(oldstr.length() - 1) != '\'')) {
// TODO: error
// throw new TweakerExecuteException("Not a valid string constant: "
// + oldstr);
// throw new TweakerExecuteException("Not a valid string constant: "
// + oldstr);
}
oldstr = oldstr.substring(1, oldstr.length() - 1);