|
JET | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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.
| 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 |
|---|
Denotable createBooleanValue(boolean val)
Denotable createByteValue(byte val)
Denotable createShortValue(short val)
Denotable createIntValue(int val)
Denotable createLongValue(long val)
Denotable createCharValue(char val)
Denotable createFloatValue(float val)
Denotable createDoubleValue(double val)
Denotable createStringValue(String val)
Denotable createNullValue(Class type)
Denotable createArrayValue(Class type,
Denotable[] elems)
Denotable createMethodCall(Class type,
Method meth,
Denotable receiver,
Denotable[] args)
Denotable createConstructorCall(Constructor con,
Denotable[] args)
|
JET | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||