Jode 1.90-CVS
Build Aug 6, 2004

net.sf.jode.obfuscator
Class ConstantRuntimeEnvironment

java.lang.Object
  extended bynet.sf.jode.jvm.SimpleRuntimeEnvironment
      extended bynet.sf.jode.obfuscator.ConstantRuntimeEnvironment
All Implemented Interfaces:
RuntimeEnvironment

public class ConstantRuntimeEnvironment
extends SimpleRuntimeEnvironment


Constructor Summary
ConstantRuntimeEnvironment()
           
 
Method Summary
 java.lang.Object getField(Reference ref, java.lang.Object obj)
          Get the value of a field member.
 boolean instanceOf(java.lang.Object obj, java.lang.String className)
          Check if obj is an instance of className
 java.lang.Object invokeConstructor(Reference ref, java.lang.Object[] params)
          Create a new instance of an object.
 java.lang.Object invokeMethod(Reference ref, boolean isVirtual, java.lang.Object cls, java.lang.Object[] params)
          Invoke a method.
static boolean isWhite(Reference ref)
           
static boolean isWhite(java.lang.String retTypeSig)
           
 java.lang.Object newArray(java.lang.String type, int[] dimensions)
          Create a new multidimensional Array.
 void putField(Reference ref, java.lang.Object obj, java.lang.Object value)
          Set the value of a field member.
 
Methods inherited from class net.sf.jode.jvm.SimpleRuntimeEnvironment
enterMonitor, exitMonitor, fromReflectType, toReflectType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstantRuntimeEnvironment

public ConstantRuntimeEnvironment()
Method Detail

isWhite

public static boolean isWhite(Reference ref)

isWhite

public static boolean isWhite(java.lang.String retTypeSig)

getField

public java.lang.Object getField(Reference ref,
                                 java.lang.Object obj)
                          throws InterpreterException
Description copied from interface: RuntimeEnvironment
Get the value of a field member.

Specified by:
getField in interface RuntimeEnvironment
Overrides:
getField in class SimpleRuntimeEnvironment
Throws:
InterpreterException

putField

public void putField(Reference ref,
                     java.lang.Object obj,
                     java.lang.Object value)
              throws InterpreterException
Description copied from interface: RuntimeEnvironment
Set the value of a field member.

Specified by:
putField in interface RuntimeEnvironment
Overrides:
putField in class SimpleRuntimeEnvironment
Throws:
InterpreterException

invokeConstructor

public java.lang.Object invokeConstructor(Reference ref,
                                          java.lang.Object[] params)
                                   throws InterpreterException,
                                          java.lang.reflect.InvocationTargetException
Description copied from interface: RuntimeEnvironment
Create a new instance of an object.

Specified by:
invokeConstructor in interface RuntimeEnvironment
Overrides:
invokeConstructor in class SimpleRuntimeEnvironment
Throws:
InterpreterException
java.lang.reflect.InvocationTargetException

invokeMethod

public java.lang.Object invokeMethod(Reference ref,
                                     boolean isVirtual,
                                     java.lang.Object cls,
                                     java.lang.Object[] params)
                              throws InterpreterException,
                                     java.lang.reflect.InvocationTargetException
Description copied from interface: RuntimeEnvironment
Invoke a method.

Specified by:
invokeMethod in interface RuntimeEnvironment
Overrides:
invokeMethod in class SimpleRuntimeEnvironment
Throws:
InterpreterException
java.lang.reflect.InvocationTargetException

instanceOf

public boolean instanceOf(java.lang.Object obj,
                          java.lang.String className)
                   throws InterpreterException
Description copied from interface: RuntimeEnvironment
Check if obj is an instance of className

Specified by:
instanceOf in interface RuntimeEnvironment
Overrides:
instanceOf in class SimpleRuntimeEnvironment
Throws:
InterpreterException

newArray

public java.lang.Object newArray(java.lang.String type,
                                 int[] dimensions)
                          throws InterpreterException,
                                 java.lang.NegativeArraySizeException
Description copied from interface: RuntimeEnvironment
Create a new multidimensional Array.

Specified by:
newArray in interface RuntimeEnvironment
Overrides:
newArray in class SimpleRuntimeEnvironment
Throws:
InterpreterException
java.lang.NegativeArraySizeException

Jode 1.90-CVS
Build Aug 6, 2004

Copyright © 1998-2004 by Jochen Hoenicke.