|
JET | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.utep.cs.jet.rat.val.SimpleValueFactory
public class SimpleValueFactory
A concrete factory class to create various kinds of values. Each
factory method defined in this class takes a Java value (or object)
and returns the corresponding Denotable
object; this allows to manipulate various Java values uniformly.
Refer to the interface ValueFactory for
various factory methods.
| Constructor Summary | |
|---|---|
SimpleValueFactory()
Creates a concrete factory object. |
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleValueFactory()
| Method Detail |
|---|
public Denotable createBooleanValue(boolean val)
createBooleanValue in interface ValueFactorypublic Denotable createByteValue(byte val)
createByteValue in interface ValueFactorypublic Denotable createShortValue(short val)
createShortValue in interface ValueFactorypublic Denotable createIntValue(int val)
createIntValue in interface ValueFactorypublic Denotable createLongValue(long val)
createLongValue in interface ValueFactorypublic Denotable createCharValue(char val)
createCharValue in interface ValueFactorypublic Denotable createFloatValue(float val)
createFloatValue in interface ValueFactorypublic Denotable createDoubleValue(double val)
createDoubleValue in interface ValueFactorypublic Denotable createStringValue(String val)
createStringValue in interface ValueFactorypublic Denotable createNullValue(Class<?> type)
createNullValue in interface ValueFactory
public Denotable createArrayValue(Class<?> type,
Denotable[] elems)
createArrayValue in interface ValueFactory
public Denotable createMethodCall(Class<?> type,
Method meth,
Denotable receiver,
Denotable[] args)
createMethodCall in interface ValueFactory
public Denotable createConstructorCall(Constructor<?> con,
Denotable[] args)
createConstructorCall in interface ValueFactory
|
JET | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||