Types moved to jode.type

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@612 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent ff22fd1303
commit 7bb05ed501
  1. 2
      jode/jode/expr/LocalVarOperator.java
  2. 4
      jode/jode/expr/NoArgOperator.java
  3. 2
      jode/jode/expr/ShiftOperator.java
  4. 2
      jode/jode/expr/SimpleOperator.java
  5. 2
      jode/jode/flow/CatchBlock.java
  6. 2
      jode/jode/flow/CombineIfGotoExpressions.java
  7. 2
      jode/jode/flow/CreateCheckNull.java
  8. 2
      jode/jode/flow/CreateClassField.java
  9. 2
      jode/jode/flow/CreateConstantArray.java
  10. 2
      jode/jode/flow/CreateIfThenElseOperator.java
  11. 2
      jode/jode/flow/IfThenElseBlock.java
  12. 4
      jode/jode/flow/InstructionBlock.java
  13. 2
      jode/jode/flow/JsrBlock.java
  14. 2
      jode/jode/flow/LoopBlock.java
  15. 4
      jode/jode/flow/TransformExceptionHandlers.java
  16. 3
      jode/jode/jvm/SimpleRuntimeEnvironment.java
  17. 2
      jode/jode/obfuscator/ConstantRuntimeEnvironment.java
  18. 2
      jode/jode/obfuscator/MethodIdentifier.java
  19. 4
      jode/jode/obfuscator/RemovePopAnalyzer.java
  20. 2
      jode/jode/obfuscator/SimpleAnalyzer.java
  21. 3
      jode/jode/type/IntegerType.java
  22. 2
      jode/jode/type/MethodType.java
  23. 5
      jode/jode/type/NullType.java
  24. 3
      jode/jode/type/ReferenceType.java

@ -18,7 +18,7 @@
*/ */
package jode.expr; package jode.expr;
import jode.Type; import jode.type.Type;
import jode.decompiler.LocalInfo; import jode.decompiler.LocalInfo;
public interface LocalVarOperator { public interface LocalVarOperator {

@ -18,8 +18,9 @@
*/ */
package jode.expr; package jode.expr;
import jode.Type; import jode.type.Type;
import jode.AssertError; import jode.AssertError;
import jode.decompiler.TabbedPrintWriter;
public abstract class NoArgOperator extends Operator { public abstract class NoArgOperator extends Operator {
@ -47,4 +48,3 @@ public abstract class NoArgOperator extends Operator {
throw new AssertError("This operator has no operands"); throw new AssertError("This operator has no operands");
} }
} }

@ -18,7 +18,7 @@
*/ */
package jode.expr; package jode.expr;
import jode.Type; import jode.type.Type;
/** /**
* ShiftOpcodes are special, because their second operand is an UIndex * ShiftOpcodes are special, because their second operand is an UIndex

@ -18,7 +18,7 @@
*/ */
package jode.expr; package jode.expr;
import jode.Type; import jode.type.Type;
public abstract class SimpleOperator extends Operator { public abstract class SimpleOperator extends Operator {
protected Type[] operandTypes; protected Type[] operandTypes;

@ -18,7 +18,7 @@
*/ */
package jode.flow; package jode.flow;
import jode.Type; import jode.type.Type;
import jode.decompiler.LocalInfo; import jode.decompiler.LocalInfo;
/** /**

@ -20,7 +20,7 @@
package jode.flow; package jode.flow;
import java.util.Vector; import java.util.Vector;
import jode.expr.*; import jode.expr.*;
import jode.Type; import jode.type.Type;
public class CombineIfGotoExpressions { public class CombineIfGotoExpressions {

@ -19,7 +19,7 @@
package jode.flow; package jode.flow;
import jode.expr.*; import jode.expr.*;
import jode.Type; import jode.type.Type;
import jode.decompiler.LocalInfo; import jode.decompiler.LocalInfo;
public class CreateCheckNull { public class CreateCheckNull {

@ -19,7 +19,7 @@
package jode.flow; package jode.flow;
import jode.expr.*; import jode.expr.*;
import jode.Type; import jode.type.Type;
import jode.decompiler.LocalInfo; import jode.decompiler.LocalInfo;
public class CreateClassField { public class CreateClassField {

@ -20,7 +20,7 @@
package jode.flow; package jode.flow;
import jode.Decompiler; import jode.Decompiler;
import jode.expr.*; import jode.expr.*;
import jode.Type; import jode.type.Type;
public class CreateConstantArray { public class CreateConstantArray {

@ -19,7 +19,7 @@
package jode.flow; package jode.flow;
import jode.Decompiler; import jode.Decompiler;
import jode.Type; import jode.type.Type;
import jode.expr.*; import jode.expr.*;
import java.util.Enumeration; import java.util.Enumeration;

@ -21,7 +21,7 @@ package jode.flow;
import jode.decompiler.LocalInfo; import jode.decompiler.LocalInfo;
import jode.decompiler.TabbedPrintWriter; import jode.decompiler.TabbedPrintWriter;
import jode.expr.Expression; import jode.expr.Expression;
import jode.Type; import jode.type.Type;
/** /**
* An IfThenElseBlock is the structured block representing an if * An IfThenElseBlock is the structured block representing an if

@ -18,7 +18,7 @@
*/ */
package jode.flow; package jode.flow;
import jode.Type; import jode.type.Type;
import jode.decompiler.TabbedPrintWriter; import jode.decompiler.TabbedPrintWriter;
import jode.decompiler.LocalInfo; import jode.decompiler.LocalInfo;
import jode.expr.ComplexExpression; import jode.expr.ComplexExpression;
@ -127,7 +127,7 @@ public class InstructionBlock extends InstructionContainer {
+ local.getName() + " = " + local.getName() + " = "
+ expr.simplify().toString() + ";"); + expr.simplify().toString() + ";");
} else { } else {
if (instr.getType() != jode.Type.tVoid) if (instr.getType() != Type.tVoid)
writer.print("PUSH "); writer.print("PUSH ");
writer.println(instr.simplify().toString()+";"); writer.println(instr.simplify().toString()+";");
} }

@ -19,7 +19,7 @@
package jode.flow; package jode.flow;
import jode.decompiler.LocalInfo; import jode.decompiler.LocalInfo;
import jode.Type; import jode.type.Type;
/** /**
* This block represents a jsr instruction. A jsr instruction is * This block represents a jsr instruction. A jsr instruction is

@ -19,7 +19,7 @@
package jode.flow; package jode.flow;
import jode.decompiler.TabbedPrintWriter; import jode.decompiler.TabbedPrintWriter;
import jode.Type; import jode.type.Type;
import jode.decompiler.LocalInfo; import jode.decompiler.LocalInfo;
import jode.expr.Expression; import jode.expr.Expression;
import jode.expr.ConstOperator; import jode.expr.ConstOperator;

@ -20,7 +20,7 @@
package jode.flow; package jode.flow;
import jode.AssertError; import jode.AssertError;
import jode.Decompiler; import jode.Decompiler;
import jode.Type; import jode.type.Type;
import jode.decompiler.LocalInfo; import jode.decompiler.LocalInfo;
import jode.expr.*; import jode.expr.*;
@ -882,7 +882,7 @@ public class TransformExceptionHandlers {
&& ! analyzeSpecialFinally(tryFlow, catchFlow, && ! analyzeSpecialFinally(tryFlow, catchFlow,
endHandler)) endHandler))
analyzeCatchBlock(jode.Type.tObject, tryFlow, catchFlow); analyzeCatchBlock(Type.tObject, tryFlow, catchFlow);
tryFlow.checkConsistent(); tryFlow.checkConsistent();
if (Decompiler.debugAnalyze) if (Decompiler.debugAnalyze)

@ -18,8 +18,9 @@
*/ */
package jode.jvm; package jode.jvm;
import jode.AssertError;
import jode.bytecode.Reference; import jode.bytecode.Reference;
import jode.*; import jode.type.*;
import java.lang.reflect.*; import java.lang.reflect.*;
public class SimpleRuntimeEnvironment implements RuntimeEnvironment { public class SimpleRuntimeEnvironment implements RuntimeEnvironment {

@ -21,7 +21,7 @@ package jode.obfuscator;
import jode.jvm.*; import jode.jvm.*;
import jode.bytecode.Reference; import jode.bytecode.Reference;
import jode.bytecode.BytecodeInfo; import jode.bytecode.BytecodeInfo;
import jode.*; import jode.type.*;
import java.lang.reflect.Array; import java.lang.reflect.Array;
import java.lang.reflect.InvocationTargetException; import java.lang.reflect.InvocationTargetException;
import java.util.*; import java.util.*;

@ -21,7 +21,7 @@ package jode.obfuscator;
import java.lang.reflect.Modifier; import java.lang.reflect.Modifier;
import jode.Obfuscator; import jode.Obfuscator;
import jode.bytecode.*; import jode.bytecode.*;
import jode.Type; import jode.type.Type;
import java.io.*; import java.io.*;
import java.util.Vector; import java.util.Vector;
import java.util.Enumeration; import java.util.Enumeration;

@ -20,8 +20,8 @@
package jode.obfuscator; package jode.obfuscator;
import jode.bytecode.*; import jode.bytecode.*;
import jode.AssertError; import jode.AssertError;
import jode.MethodType; import jode.type.MethodType;
import jode.Type; import jode.type.Type;
public class RemovePopAnalyzer implements CodeAnalyzer, Opcodes { public class RemovePopAnalyzer implements CodeAnalyzer, Opcodes {
MethodIdentifier m; MethodIdentifier m;

@ -19,7 +19,7 @@
package jode.obfuscator; package jode.obfuscator;
import jode.bytecode.*; import jode.bytecode.*;
import jode.Type; import jode.type.Type;
public class SimpleAnalyzer implements CodeAnalyzer, Opcodes { public class SimpleAnalyzer implements CodeAnalyzer, Opcodes {
MethodIdentifier m; MethodIdentifier m;

@ -17,7 +17,8 @@
* $Id$ * $Id$
*/ */
package jode; package jode.type;
import jode.Decompiler;
/** /**
* This is a type class for 16 bit integral types. There are seven * This is a type class for 16 bit integral types. There are seven

@ -17,7 +17,7 @@
* $Id$ * $Id$
*/ */
package jode; package jode.type;
/** /**
* This type represents an method type. * This type represents an method type.

@ -17,7 +17,8 @@
* $Id$ * $Id$
*/ */
package jode; package jode.type;
import jode.AssertError;
/** /**
* This class represents the NullType. The null type is special as it * This class represents the NullType. The null type is special as it
@ -64,7 +65,7 @@ public class NullType extends ReferenceType {
} }
public String toString() { public String toString() {
return "/*NULL*/" + env.classString("java.lang.Object"); return "<NULL>";
} }
/** /**

@ -17,7 +17,8 @@
* $Id$ * $Id$
*/ */
package jode; package jode.type;
import jode.Decompiler;
import jode.bytecode.ClassInfo; import jode.bytecode.ClassInfo;
import java.util.Vector; import java.util.Vector;
import java.util.Stack; import java.util.Stack;

Loading…
Cancel
Save