private void doLDC(int index) { TypeData[] stackTypes = this.stackTypes; int tag = cpool.getTag(index); if (tag == ConstPool.CONST_String) stackTypes[stackTop++] = new TypeData.ClassName("java.lang.String"); else if (tag == ConstPool.CONST_Integer) stackTypes[stackTop++] = INTEGER; else if (tag == ConstPool.CONST_Float) stackTypes[stackTop++] = FLOAT; else if (tag == ConstPool.CONST_Long) { stackTypes[stackTop++] = LONG; stackTypes[stackTop++] = TOP; } else if (tag == ConstPool.CONST_Double) { stackTypes[stackTop++] = DOUBLE; stackTypes[stackTop++] = TOP; } else if (tag == ConstPool.CONST_Class) stackTypes[stackTop++] = new TypeData.ClassName("java.lang.Class"); else throw new RuntimeException("bad LDC: " + tag); }
private void evalLDC(int index, Frame frame) throws BadBytecode { int tag = constPool.getTag(index); Type type; switch (tag) { case ConstPool.CONST_String: type = STRING_TYPE; break; case ConstPool.CONST_Integer: type = Type.INTEGER; break; case ConstPool.CONST_Float: type = Type.FLOAT; break; case ConstPool.CONST_Long: type = Type.LONG; break; case ConstPool.CONST_Double: type = Type.DOUBLE; break; case ConstPool.CONST_Class: type = CLASS_TYPE; break; default: throw new BadBytecode("bad LDC [pos = " + lastPos + "]: " + tag); } simplePush(type, frame); }
private void doLDC(int index) { TypeData[] stackTypes = this.stackTypes; int tag = cpool.getTag(index); if (tag == ConstPool.CONST_String) stackTypes[stackTop++] = new TypeData.ClassName("java.lang.String"); else if (tag == ConstPool.CONST_Integer) stackTypes[stackTop++] = INTEGER; else if (tag == ConstPool.CONST_Float) stackTypes[stackTop++] = FLOAT; else if (tag == ConstPool.CONST_Long) { stackTypes[stackTop++] = LONG; stackTypes[stackTop++] = TOP; } else if (tag == ConstPool.CONST_Double) { stackTypes[stackTop++] = DOUBLE; stackTypes[stackTop++] = TOP; } else if (tag == ConstPool.CONST_Class) stackTypes[stackTop++] = new TypeData.ClassName("java.lang.Class"); else throw new RuntimeException("bad LDC: " + tag); }
private void evalLDC(int index, Frame frame) throws BadBytecode { int tag = constPool.getTag(index); Type type; switch (tag) { case ConstPool.CONST_String: type = STRING_TYPE; break; case ConstPool.CONST_Integer: type = Type.INTEGER; break; case ConstPool.CONST_Float: type = Type.FLOAT; break; case ConstPool.CONST_Long: type = Type.LONG; break; case ConstPool.CONST_Double: type = Type.DOUBLE; break; case ConstPool.CONST_Class: type = CLASS_TYPE; break; default: throw new BadBytecode("bad LDC [pos = " + lastPos + "]: " + tag); } simplePush(type, frame); }
private static String ldc(ConstPool pool, int index) { int tag = pool.getTag(index); switch (tag) { case ConstPool.CONST_String: return "#" + index + " = \"" + pool.getStringInfo(index) + "\""; case ConstPool.CONST_Integer: return "#" + index + " = int " + pool.getIntegerInfo(index); case ConstPool.CONST_Float: return "#" + index + " = float " + pool.getFloatInfo(index); case ConstPool.CONST_Long: return "#" + index + " = long " + pool.getLongInfo(index); case ConstPool.CONST_Double: return "#" + index + " = int " + pool.getDoubleInfo(index); case ConstPool.CONST_Class: return classInfo(pool, index); default: throw new RuntimeException("bad LDC: " + tag); } } }
private static String ldc(ConstPool pool, int index) { int tag = pool.getTag(index); switch (tag) { case ConstPool.CONST_String: return "#" + index + " = \"" + pool.getStringInfo(index) + "\""; case ConstPool.CONST_Integer: return "#" + index + " = int " + pool.getIntegerInfo(index); case ConstPool.CONST_Float: return "#" + index + " = float " + pool.getFloatInfo(index); case ConstPool.CONST_Long: return "#" + index + " = long " + pool.getLongInfo(index); case ConstPool.CONST_Double: return "#" + index + " = int " + pool.getDoubleInfo(index); case ConstPool.CONST_Class: return classInfo(pool, index); default: throw new RuntimeException("bad LDC: " + tag); } } }
private void doLDC(int index) { TypeData[] stackTypes = this.stackTypes; int tag = cpool.getTag(index); if (tag == ConstPool.CONST_String) stackTypes[stackTop++] = new TypeData.ClassName("java.lang.String"); else if (tag == ConstPool.CONST_Integer) stackTypes[stackTop++] = INTEGER; else if (tag == ConstPool.CONST_Float) stackTypes[stackTop++] = FLOAT; else if (tag == ConstPool.CONST_Long) { stackTypes[stackTop++] = LONG; stackTypes[stackTop++] = TOP; } else if (tag == ConstPool.CONST_Double) { stackTypes[stackTop++] = DOUBLE; stackTypes[stackTop++] = TOP; } else if (tag == ConstPool.CONST_Class) stackTypes[stackTop++] = new TypeData.ClassName("java.lang.Class"); else throw new RuntimeException("bad LDC: " + tag); }
private void doLDC(int index) { TypeData[] stackTypes = this.stackTypes; int tag = cpool.getTag(index); if (tag == ConstPool.CONST_String) stackTypes[stackTop++] = new TypeData.ClassName("java.lang.String"); else if (tag == ConstPool.CONST_Integer) stackTypes[stackTop++] = INTEGER; else if (tag == ConstPool.CONST_Float) stackTypes[stackTop++] = FLOAT; else if (tag == ConstPool.CONST_Long) { stackTypes[stackTop++] = LONG; stackTypes[stackTop++] = TOP; } else if (tag == ConstPool.CONST_Double) { stackTypes[stackTop++] = DOUBLE; stackTypes[stackTop++] = TOP; } else if (tag == ConstPool.CONST_Class) stackTypes[stackTop++] = new TypeData.ClassName("java.lang.Class"); else throw new RuntimeException("bad LDC: " + tag); }
private void doLDC(int index) { TypeData[] stackTypes = this.stackTypes; int tag = cpool.getTag(index); if (tag == ConstPool.CONST_String) stackTypes[stackTop++] = new TypeData.ClassName("java.lang.String"); else if (tag == ConstPool.CONST_Integer) stackTypes[stackTop++] = INTEGER; else if (tag == ConstPool.CONST_Float) stackTypes[stackTop++] = FLOAT; else if (tag == ConstPool.CONST_Long) { stackTypes[stackTop++] = LONG; stackTypes[stackTop++] = TOP; } else if (tag == ConstPool.CONST_Double) { stackTypes[stackTop++] = DOUBLE; stackTypes[stackTop++] = TOP; } else if (tag == ConstPool.CONST_Class) stackTypes[stackTop++] = new TypeData.ClassName("java.lang.Class"); else throw new RuntimeException("bad LDC: " + tag); }
private void doLDC(int index) { TypeData[] stackTypes = this.stackTypes; int tag = cpool.getTag(index); if (tag == ConstPool.CONST_String) stackTypes[stackTop++] = new TypeData.ClassName("java.lang.String"); else if (tag == ConstPool.CONST_Integer) stackTypes[stackTop++] = INTEGER; else if (tag == ConstPool.CONST_Float) stackTypes[stackTop++] = FLOAT; else if (tag == ConstPool.CONST_Long) { stackTypes[stackTop++] = LONG; stackTypes[stackTop++] = TOP; } else if (tag == ConstPool.CONST_Double) { stackTypes[stackTop++] = DOUBLE; stackTypes[stackTop++] = TOP; } else if (tag == ConstPool.CONST_Class) stackTypes[stackTop++] = new TypeData.ClassName("java.lang.Class"); else throw new RuntimeException("bad LDC: " + tag); }
private void doLDC(int index) { TypeData[] stackTypes = this.stackTypes; int tag = cpool.getTag(index); if (tag == ConstPool.CONST_String) stackTypes[stackTop++] = new TypeData.ClassName("java.lang.String"); else if (tag == ConstPool.CONST_Integer) stackTypes[stackTop++] = INTEGER; else if (tag == ConstPool.CONST_Float) stackTypes[stackTop++] = FLOAT; else if (tag == ConstPool.CONST_Long) { stackTypes[stackTop++] = LONG; stackTypes[stackTop++] = TOP; } else if (tag == ConstPool.CONST_Double) { stackTypes[stackTop++] = DOUBLE; stackTypes[stackTop++] = TOP; } else if (tag == ConstPool.CONST_Class) stackTypes[stackTop++] = new TypeData.ClassName("java.lang.Class"); else throw new RuntimeException("bad LDC: " + tag); }
private void evalLDC(int index, Frame frame) throws BadBytecode { int tag = constPool.getTag(index); Type type; switch (tag) { case ConstPool.CONST_String: type = STRING_TYPE; break; case ConstPool.CONST_Integer: type = Type.INTEGER; break; case ConstPool.CONST_Float: type = Type.FLOAT; break; case ConstPool.CONST_Long: type = Type.LONG; break; case ConstPool.CONST_Double: type = Type.DOUBLE; break; case ConstPool.CONST_Class: type = CLASS_TYPE; break; default: throw new BadBytecode("bad LDC [pos = " + lastPos + "]: " + tag); } simplePush(type, frame); }
private void evalLDC(int index, Frame frame) throws BadBytecode { int tag = constPool.getTag(index); Type type; switch (tag) { case ConstPool.CONST_String: type = STRING_TYPE; break; case ConstPool.CONST_Integer: type = Type.INTEGER; break; case ConstPool.CONST_Float: type = Type.FLOAT; break; case ConstPool.CONST_Long: type = Type.LONG; break; case ConstPool.CONST_Double: type = Type.DOUBLE; break; case ConstPool.CONST_Class: type = CLASS_TYPE; break; default: throw new BadBytecode("bad LDC [pos = " + lastPos + "]: " + tag); } simplePush(type, frame); }
private void evalLDC(int index, Frame frame) throws BadBytecode { int tag = constPool.getTag(index); Type type; switch (tag) { case ConstPool.CONST_String: type = STRING_TYPE; break; case ConstPool.CONST_Integer: type = Type.INTEGER; break; case ConstPool.CONST_Float: type = Type.FLOAT; break; case ConstPool.CONST_Long: type = Type.LONG; break; case ConstPool.CONST_Double: type = Type.DOUBLE; break; case ConstPool.CONST_Class: type = CLASS_TYPE; break; default: throw new BadBytecode("bad LDC [pos = " + lastPos + "]: " + tag); } simplePush(type, frame); }
private static String ldc(ConstPool pool, int index) { int tag = pool.getTag(index); switch (tag) { case ConstPool.CONST_String: return "#" + index + " = \"" + pool.getStringInfo(index) + "\""; case ConstPool.CONST_Integer: return "#" + index + " = int " + pool.getIntegerInfo(index); case ConstPool.CONST_Float: return "#" + index + " = float " + pool.getFloatInfo(index); case ConstPool.CONST_Long: return "#" + index + " = long " + pool.getLongInfo(index); case ConstPool.CONST_Double: return "#" + index + " = int " + pool.getDoubleInfo(index); case ConstPool.CONST_Class: return classInfo(pool, index); default: throw new RuntimeException("bad LDC: " + tag); } } }
private static String ldc(ConstPool pool, int index) { int tag = pool.getTag(index); switch (tag) { case ConstPool.CONST_String: return "#" + index + " = \"" + pool.getStringInfo(index) + "\""; case ConstPool.CONST_Integer: return "#" + index + " = int " + pool.getIntegerInfo(index); case ConstPool.CONST_Float: return "#" + index + " = float " + pool.getFloatInfo(index); case ConstPool.CONST_Long: return "#" + index + " = long " + pool.getLongInfo(index); case ConstPool.CONST_Double: return "#" + index + " = int " + pool.getDoubleInfo(index); case ConstPool.CONST_Class: return classInfo(pool, index); default: throw new RuntimeException("bad LDC: " + tag); } } }
private static String ldc(ConstPool pool, int index) { int tag = pool.getTag(index); switch (tag) { case ConstPool.CONST_String: return "#" + index + " = \"" + pool.getStringInfo(index) + "\""; case ConstPool.CONST_Integer: return "#" + index + " = int " + pool.getIntegerInfo(index); case ConstPool.CONST_Float: return "#" + index + " = float " + pool.getFloatInfo(index); case ConstPool.CONST_Long: return "#" + index + " = long " + pool.getLongInfo(index); case ConstPool.CONST_Double: return "#" + index + " = int " + pool.getDoubleInfo(index); case ConstPool.CONST_Class: return classInfo(pool, index); default: throw new RuntimeException("bad LDC: " + tag); } } }
private static String ldc(ConstPool pool, int index) { int tag = pool.getTag(index); switch (tag) { case ConstPool.CONST_String: return "#" + index + " = \"" + pool.getStringInfo(index) + "\""; case ConstPool.CONST_Integer: return "#" + index + " = int " + pool.getIntegerInfo(index); case ConstPool.CONST_Float: return "#" + index + " = float " + pool.getFloatInfo(index); case ConstPool.CONST_Long: return "#" + index + " = long " + pool.getLongInfo(index); case ConstPool.CONST_Double: return "#" + index + " = int " + pool.getDoubleInfo(index); case ConstPool.CONST_Class: return classInfo(pool, index); default: throw new RuntimeException("bad LDC: " + tag); } } }