|
JET | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.utep.cs.et.rat.val.CompositeValue
public abstract class CompositeValue
A class to represent an array value. An array value is represented
as a tuple of a type, (Class) and the
elements (an array of Denotables). An element may be another array
value. If the type is null, the array is assumed to be an element
of another array.
| Nested Class Summary | |
|---|---|
protected static class |
CompositeValue.SimpleVarGenerator
|
| Field Summary | |
|---|---|
private Denotable[] |
elems
The contained elements. |
private Class<?> |
type
The type of this composite value. |
| Constructor Summary | |
|---|---|
CompositeValue(Class type,
Denotable[] elems)
Creates a composite value of the given type and elements. |
|
| Method Summary | |
|---|---|
abstract String[] |
code(VarGenerator varGen)
Returns Java code that generates this value. |
protected Denotable[] |
elems()
Returns the component values. |
(package private) static String |
getTypeName(Class clazz)
Returns the printable name of the given class. |
protected boolean |
hasEquals()
Returns true if the type of the represented value has its own equals method defined. |
boolean |
isEquivalentTo(Denotable other)
Returns true if the represented value is equivalent to the argument's represented value. |
boolean |
isNull()
Returns true if this value represents null. |
Class |
type()
Returns the type of this composite value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface edu.utep.cs.et.rat.Denotable |
|---|
code, toString, value |
| Field Detail |
|---|
private Class<?> type
private Denotable[] elems
| Constructor Detail |
|---|
public CompositeValue(Class type,
Denotable[] elems)
| Method Detail |
|---|
public Class type()
type in interface Denotablepublic boolean isNull()
isNull in interface Denotablepublic boolean isEquivalentTo(Denotable other)
isEquivalentTo in interface Denotableprotected boolean hasEquals()
protected Denotable[] elems()
static String getTypeName(Class clazz)
int[].
public abstract String[] code(VarGenerator varGen)
|
JET | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||