JET

edu.utep.cs.jet.rat
Interface ValueFactory

All Known Implementing Classes:
SimpleValueFactory

public interface ValueFactory

An interface to create various kinds of values. This interface implements the Abstract Factory design pattern. Each factory method declared in this interface takes a Java value (or object) and returns the corresponding Denotable object; this allows to manipulate various Java values uniformly.

Version:
$Revision: 1.6 $
Author:
Yoonsik Cheon

Method Summary
 Denotable createArrayValue(Class<?> type, Denotable[] elems)
          Creates an array value.
 Denotable createBooleanValue(boolean val)
          Creates a boolean value.
 Denotable createByteValue(byte val)
          Creates a byte value.
 Denotable createCharValue(char val)
          Creates a char value.
 Denotable createConstructorCall(Constructor<?> con, Denotable[] args)
          Creates a constructor-call value.
 Denotable createDoubleValue(double val)
          Creates a double value.
 Denotable createFloatValue(float val)
          Creates a float value.
 Denotable createIntValue(int val)
          Creates an int value.
 Denotable createLongValue(long val)
          Creates a long value.
 Denotable createMethodCall(Class<?> type, Method meth, Denotable receiver, Denotable[] args)
          Creates a method-call value.
 Denotable createNullValue(Class<?> type)
          Creates a null value of the given type.
 Denotable createShortValue(short val)
          Creates a short value.
 Denotable createStringValue(String val)
          Creates a string value.
 

Method Detail

createBooleanValue

Denotable createBooleanValue(boolean val)
Creates a boolean value.


createByteValue

Denotable createByteValue(byte val)
Creates a byte value.


createShortValue

Denotable createShortValue(short val)
Creates a short value.


createIntValue

Denotable createIntValue(int val)
Creates an int value.


createLongValue

Denotable createLongValue(long val)
Creates a long value.


createCharValue

Denotable createCharValue(char val)
Creates a char value.


createFloatValue

Denotable createFloatValue(float val)
Creates a float value.


createDoubleValue

Denotable createDoubleValue(double val)
Creates a double value.


createStringValue

Denotable createStringValue(String val)
Creates a string value.


createNullValue

Denotable createNullValue(Class<?> type)
Creates a null value of the given type.


createArrayValue

Denotable createArrayValue(Class<?> type,
                           Denotable[] elems)
Creates an array value.


createMethodCall

Denotable createMethodCall(Class<?> type,
                           Method meth,
                           Denotable receiver,
                           Denotable[] args)
Creates a method-call value.


createConstructorCall

Denotable createConstructorCall(Constructor<?> con,
                                Denotable[] args)
Creates a constructor-call value.


JET

JET is Copyright (C) 2005-2008 by The University of Texas at El Paso and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.