Package hydra.lib.literals
Class ShowInt32
java.lang.Object
hydra.tools.PrimitiveFunction
hydra.lib.literals.ShowInt32
Primitive function which converts an int32 (32-bit signed integer) to its string representation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringConverts an Integer (32-bit signed integer) value to its string representation.Provides the implementation of this primitive function.name()Returns the unique name identifying this primitive function.type()Returns the type scheme for this function: int32 -> string.Methods inherited from class hydra.tools.PrimitiveFunction
term, toNative
-
Constructor Details
-
ShowInt32
public ShowInt32()
-
-
Method Details
-
name
Returns the unique name identifying this primitive function.- Specified by:
namein classPrimitiveFunction- Returns:
- the function name "hydra.lib.literals.showInt32"
-
type
Returns the type scheme for this function: int32 -> string.- Specified by:
typein classPrimitiveFunction- Returns:
- the type scheme representing the function signature
-
implementation
Provides the implementation of this primitive function.- Specified by:
implementationin classPrimitiveFunction- Returns:
- a function that converts int32 terms to string terms
-
apply
Converts an Integer (32-bit signed integer) value to its string representation.- Parameters:
value- the Integer value to convert- Returns:
- the string representation of the value
-