|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.deri.iris.builtins.AbstractBuiltin
org.deri.iris.builtins.FunctionalBuiltin
org.deri.iris.builtins.datatype.ConversionBuiltin
org.deri.iris.builtins.datatype.ToDoubleBuiltin
public class ToDoubleBuiltin
Represents a data type conversion function, which converts supported data type instances to Double instances. The following data types are supported:
| Field Summary |
|---|
| Fields inherited from class org.deri.iris.builtins.AbstractBuiltin |
|---|
EMPTY_TERM |
| Constructor Summary | |
|---|---|
ToDoubleBuiltin(ITerm... terms)
Creates a new instance of this builtin. |
|
| Method Summary | |
|---|---|
protected ITerm |
convert(ITerm term)
Converts the given supported data type instance to the specific data type |
static IDoubleTerm |
toDouble(IBooleanTerm term)
Converts a Boolean term to a Double term. |
static IDoubleTerm |
toDouble(IFloatTerm term)
Converts a Float term to a Double term. |
static IDoubleTerm |
toDouble(INumericTerm term)
Converts a Numeric term to a Double term. |
static IDoubleTerm |
toDouble(IStringTerm term)
Converts a String term to a Double term. |
| Methods inherited from class org.deri.iris.builtins.datatype.ConversionBuiltin |
|---|
computeResult |
| Methods inherited from class org.deri.iris.builtins.FunctionalBuiltin |
|---|
evaluateTerms, maxUnknownVariables, testForEquality |
| Methods inherited from class org.deri.iris.builtins.AbstractBuiltin |
|---|
compareTo, equals, evaluate, getPredicate, getTuple, hashCode, isBuiltin, isGround, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ToDoubleBuiltin(ITerm... terms)
terms - The term representing the data type instance to be
converted.| Method Detail |
|---|
protected ITerm convert(ITerm term)
ConversionBuiltin
convert in class ConversionBuiltinnull if the
specified data type is not compatible.public static IDoubleTerm toDouble(IBooleanTerm term)
term - The Boolean term to be converted.
public static IDoubleTerm toDouble(IFloatTerm term)
term - The Float term to be converted.
public static IDoubleTerm toDouble(INumericTerm term)
term - The Numeric term to be converted.
public static IDoubleTerm toDouble(IStringTerm term)
term - The String term to be converted.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||