|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ptolemy.data.type.ArrayType.TypeableSizedArrayTypeTerm
private static class ArrayType.TypeableSizedArrayTypeTerm
An InequalityTerm representing an array types whose elements have the type of the specified typeable. The purpose of this class is to defer to as late as possible actually accessing the type of the typeable, since it may change dynamically. This term is not variable and cannot be set.
Field Summary | |
---|---|
private ArrayType |
_arrayType
The array type with element types matching the typeable. |
private int |
_length
|
private Typeable |
_typeable
The associated typeable. |
Constructor Summary | |
---|---|
ArrayType.TypeableSizedArrayTypeTerm(Typeable typeable,
int length)
Construct a term that will defer to the type of the specified typeable. |
Method Summary | |
---|---|
private ArrayType |
_getArrayType()
Get an array type with element type matching the type of the associated typeable. |
private ArrayType |
_getArrayTypeRaw()
Get an array type with element type matching the type of the associated typeable. |
java.lang.Object |
getAssociatedObject()
Return an array type with element types given by the associated typeable. |
java.lang.Object |
getValue()
Return an array type with element types given by the associated typeable. |
InequalityTerm[] |
getVariables()
Return an array of size zero. |
void |
initialize(java.lang.Object e)
Throw an exception. |
boolean |
isSettable()
Return false. |
boolean |
isValueAcceptable()
Delegate to an array type with elements given by the type of the associated typeable. |
void |
setValue(java.lang.Object type)
Throw an exception. |
java.lang.String |
toString()
Delegate to an array type with elements given by the type of the associated typeable. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private Typeable _typeable
private ArrayType _arrayType
private int _length
Constructor Detail |
---|
public ArrayType.TypeableSizedArrayTypeTerm(Typeable typeable, int length)
typeable
- The object to defer requests to.Method Detail |
---|
public java.lang.Object getAssociatedObject()
getAssociatedObject
in interface InequalityTerm
public java.lang.Object getValue() throws IllegalActionException
getValue
in interface InequalityTerm
IllegalActionException
- If the type of the associated typeable
cannot be determined.InequalityTerm.setValue(Object)
public InequalityTerm[] getVariables()
getVariables
in interface InequalityTerm
public void initialize(java.lang.Object e) throws IllegalActionException
initialize
in interface InequalityTerm
e
- A Type.
IllegalActionException
- If this type is a constant,
or the argument is not a Type.public boolean isSettable()
isSettable
in interface InequalityTerm
public boolean isValueAcceptable()
isValueAcceptable
in interface InequalityTerm
public void setValue(java.lang.Object type) throws IllegalActionException
setValue
in interface InequalityTerm
type
- a Type.
IllegalActionException
- AlwaysInequalityTerm.getValue()
public java.lang.String toString()
toString
in class java.lang.Object
private ArrayType _getArrayType()
private ArrayType _getArrayTypeRaw() throws IllegalActionException
IllegalActionException
- If the type of the typeable
cannot be determined.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |