|
![]() Quark Platform Documentation Version 1.7.0_0 Business Objects |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openquark.cal.valuenode.ValueNode
org.openquark.cal.valuenode.AlgebraicValueNode
org.openquark.cal.valuenode.AbstractRecordValueNode
public abstract class AbstractRecordValueNode
Abstract AlgebraicValueNode for handling values whose type expr is a RecordType.
| Constructor Summary | |
|---|---|
AbstractRecordValueNode(TypeExpr typeExpr)
Constructor for an AbstractRecordValueNode. |
|
| Method Summary | |
|---|---|
abstract FieldName |
getFieldName(int i)
Get the name of the ith field in the record Note: Fields are indexed by the ordering on the FieldName class. |
abstract List<FieldName> |
getFieldNames()
|
abstract TypeExpr |
getFieldTypeExpr(FieldName fieldName)
Get the type expression of the ith field |
abstract int |
getNFieldNames()
|
protected TypeExpr |
getNonParametricType()
this returns the type of the record as a non parametric type. |
static RecordType |
getRecordTypeForRenamedField(TypeExpr typeExpr,
FieldName oldFieldName,
FieldName newFieldName)
Create a new record type from the current type, but having extra field newFieldName, and missing the field oldFieldName. |
abstract ValueNode |
getValueAt(int n)
Retrieve the value node representing the nth field in the record. |
AbstractRecordValueNode |
renameField(FieldName fieldName,
FieldName newFieldName,
ValueNodeBuilderHelper builderHelper,
ValueNodeTransformer transformer)
Renames a field of this value node. |
abstract void |
setValueNodeAt(int i,
ValueNode valueNode)
Set the value node of the ith field. |
| Methods inherited from class org.openquark.cal.valuenode.AlgebraicValueNode |
|---|
transmuteValueNode |
| Methods inherited from class org.openquark.cal.valuenode.ValueNode |
|---|
checkCopyType, checkTypeConstructorName, containsParametricValue, copyValueNode, copyValueNode, getCALSourceModel, getCALValue, getInputJavaValues, getInputPolicy, getOutputPolicy, getTextValue, getTypeExpr, getValue, sameValue, setOutputJavaValue, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractRecordValueNode(TypeExpr typeExpr)
typeExpr - the TypeExpr of the data value which this ValueNode represents.| Method Detail |
|---|
public abstract ValueNode getValueAt(int n)
n - number of field
public abstract int getNFieldNames()
public abstract FieldName getFieldName(int i)
i - index of field to retrieve
public abstract List<FieldName> getFieldNames()
public abstract TypeExpr getFieldTypeExpr(FieldName fieldName)
fieldName -
public abstract void setValueNodeAt(int i,
ValueNode valueNode)
i - the index for the field within the record.valueNode - the new value node for the ith field in the record.
public AbstractRecordValueNode renameField(FieldName fieldName,
FieldName newFieldName,
ValueNodeBuilderHelper builderHelper,
ValueNodeTransformer transformer)
fieldName - name of field to renamenewFieldName - new name of fieldbuilderHelper - transformer -
protected final TypeExpr getNonParametricType()
public static RecordType getRecordTypeForRenamedField(TypeExpr typeExpr,
FieldName oldFieldName,
FieldName newFieldName)
typeExpr - the record type on which the new type will be based.oldFieldName - the field name to be replaced.newFieldName - the field name with which to replace the old field name.
|
![]() Quark Platform Documentation Version 1.7.0_0 Business Objects |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||