ProGuard

proguard.optimize.evaluation.value
Class ReferenceValueFactory

java.lang.Object
  extended byproguard.optimize.evaluation.value.ReferenceValueFactory

public class ReferenceValueFactory
extends Object

This class provides methods to create and reuse ReferenceValue objects.


Constructor Summary
ReferenceValueFactory()
           
 
Method Summary
static ReferenceValue create(boolean mayBeNull)
          Creates a new ReferenceValue with an undefined value.
static ReferenceValue create(ClassFile value, boolean mayBeNull)
          Creates a new ReferenceValue of a specific type.
static ReferenceValue create(ClassFile value, int dimension, boolean mayBeNull)
          Creates a new array ReferenceValue of a specific type and dimensionality.
static ReferenceValue createNull()
          Creates a new ReferenceValue that represents null.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReferenceValueFactory

public ReferenceValueFactory()
Method Detail

create

public static ReferenceValue create(boolean mayBeNull)
Creates a new ReferenceValue with an undefined value.


createNull

public static ReferenceValue createNull()
Creates a new ReferenceValue that represents null.


create

public static ReferenceValue create(ClassFile value,
                                    boolean mayBeNull)
Creates a new ReferenceValue of a specific type. If the value is null, a ReferenceValue of an undefined type is returned.


create

public static ReferenceValue create(ClassFile value,
                                    int dimension,
                                    boolean mayBeNull)
Creates a new array ReferenceValue of a specific type and dimensionality. If the value is null, a ReferenceValue of an undefined type is returned. If the dimension is 0, a ReferenceValue of the given type is returned.


ProGuard