|
![]() 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.foreignsupport.module.Prelude.AlgebraicValue
public abstract class AlgebraicValue
Base class for supporting CAL types with derived instances of Prelude.Inputable or Prelude.Outputable. Values of such types will output to a Java object of type AlgebraicValue.
| Method Summary | |
|---|---|
String |
getDataConstructorName()
|
int |
getDataConstructorOrdinal()
|
QualifiedName |
getName()
|
abstract int |
getNArguments()
|
abstract Object |
getNthArgument(int argN)
|
static AlgebraicValue |
makeGeneralAlgebraicValue(QualifiedName dataConstructorName,
int dataConstructorOrdinal,
List<?> argumentValuesList)
Factory method for general AlgebraicValue objects. |
static AlgebraicValue |
makeGeneralAlgebraicValue(String dataConstructorName,
int dataConstructorOrdinal,
List<?> argumentValues)
Factory method for general AlgebraicValue objects. |
static AlgebraicValue |
makeSingleArgumentAlgebraicValue(QualifiedName dataConstructorName,
int dataConstructorOrdinal,
Object argumentValue)
Single-argument-datacons factory method for AlgebraicValue objects. |
static AlgebraicValue |
makeSingleArgumentAlgebraicValue(String dataConstructorName,
int dataConstructorOrdinal,
Object argumentValue)
Single-argument-datacons factory method for AlgebraicValue objects. |
static AlgebraicValue |
makeZeroArgumentAlgebraicValue(QualifiedName dataConstructorName,
int dataConstructorOrdinal)
Zero-argument-datacons factory method for AlgebraicValue objects. |
static AlgebraicValue |
makeZeroArgumentAlgebraicValue(String dataConstructorName,
int dataConstructorOrdinal)
Zero-argument-datacons factory method for AlgebraicValue objects. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static AlgebraicValue makeZeroArgumentAlgebraicValue(QualifiedName dataConstructorName,
int dataConstructorOrdinal)
dataConstructorName - QualifiedName of the data constructor that constructs this valuedataConstructorOrdinal - Index of the data constructor that constructs this value
public static AlgebraicValue makeZeroArgumentAlgebraicValue(String dataConstructorName,
int dataConstructorOrdinal)
dataConstructorName - Fully-qualified name of the data constructor (that constructs this value (eg "Cal.Core.Prelude.Just")dataConstructorOrdinal - Ordinal of the data constructor that constructs this value
public static AlgebraicValue makeSingleArgumentAlgebraicValue(QualifiedName dataConstructorName,
int dataConstructorOrdinal,
Object argumentValue)
dataConstructorName - QualifiedName of the data constructor that constructs this valuedataConstructorOrdinal - Index of the data constructor that constructs this valueargumentValue - The single argument to the data constructor
public static AlgebraicValue makeSingleArgumentAlgebraicValue(String dataConstructorName,
int dataConstructorOrdinal,
Object argumentValue)
dataConstructorName - Fully-qualified name of the data constructor (that constructs this value (eg "Cal.Core.Prelude.Just")dataConstructorOrdinal - Ordinal of the data constructor that constructs this valueargumentValue - The single argument to the data constructor
public static AlgebraicValue makeGeneralAlgebraicValue(QualifiedName dataConstructorName,
int dataConstructorOrdinal,
List<?> argumentValuesList)
dataConstructorName - QualifiedName of the data constructor that constructs this valuedataConstructorOrdinal - Index of the data constructor that constructs this valueargumentValuesList - List (Object) of arguments to the data constructor
public static AlgebraicValue makeGeneralAlgebraicValue(String dataConstructorName,
int dataConstructorOrdinal,
List<?> argumentValues)
dataConstructorName - Fully-qualified name of the data constructor (that constructs this value (eg "Cal.Core.Prelude.Just")dataConstructorOrdinal - Ordinal of the data constructor that constructs this valueargumentValues - List (Object) of arguments to the data constructor
public final QualifiedName getName()
public final String getDataConstructorName()
public final int getDataConstructorOrdinal()
public abstract int getNArguments()
public abstract Object getNthArgument(int argN)
argN - zero-based index to an argument held by this data constructor.
public final String toString()
toString in class Object
|
![]() 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 | |||||||||