Vision Messages: Undefined

| Home | Undefined Class | Message XRef | Messages (General) |

Profile of Class Undefined


Object
  | 
  +--- Undefined
  |      |
  |      +--- NoValue


This class represents values that are not available (NA)


Message Index

o && aBoolean
o * aValue
o + aValue
o - aValue
o / aValue
o < aValue
o <= aValue
o > aValue
o >= aValue
o absoluteValue
o as: type
o asAPowerOf: aValue
o asClusterType
o asCurrency
o asDate
o asDouble
o asFloat
o asInteger
o asNumber
o asObjectSpace
o asPOP
o asPointerTo:
o asSelf
o basicAsDate
o between: lowerBoundary and: upperBoundary
o classDescriptor
o contains:
o convertFrom: object
o defaultInstance
o dividedInto:
o else: object
o elseIf: condition then: object
o exp
o isDefault
o isNA
o isUndefined
o isntNA
o log
o log: base
o matchesString:
o max: aNumber
o min: aNumber
o mod: aNumber
o negated
o new
o not
o notBetween: lower and: upper
o numberOfDigits
o pctChangeTo: aNumber
o print
o print: aNumber
o printWithLeadingZeros: f
o printWithLeadingZerosNL: f
o round
o round: decimalPlaces
o sprint: aNumber
o sqrt
o subtractedFrom:
o toThe: aNumber
o whatAmI
o within: pc percentOf: y
o || aBoolean


Messages

o &&

Synopsis:
Undefined && aBoolean

Description:

Returns FALSE if parameter evaluates to FALSE, NA otherwise.

Type: Method          Returns: Undefined

Parameters:

1 - Boolean

o *

Synopsis:
Undefined * aValue

Description:

Since no value can meaningfully be multiplied by NA, the value NA is always returned.

Type: Constant          Returns: Undefined

Parameters:

1 - Number

Also Defined At:
| DateOffset | List | TimeSeries |

o +

Synopsis:
Undefined + aValue

Description:

Since the value of NA cannot meaningfully be added to any value, the value NA is always returned.

Type: Constant          Returns: Undefined

Parameters:

1 - Number

Also Defined At:
| Date | DateOffset | List | TimeSeries |

o -

Synopsis:
Undefined - aValue

Description:

Since no value can meaningfully be subtracted from NA, the value NA is always returned.

Type: Constant          Returns: Undefined

Parameters:

1 - Number

Also Defined At:
| Date | List | TimeSeries |

o /

Synopsis:
Undefined / aValue

Description:

Since no value can meaningfully be divided into NA, the NA is always returned.

Type: Constant          Returns: Undefined

Parameters:

1 - Number

Also Defined At:
| List | TimeSeries |

o <

Synopsis:
Undefined < aValue

Description:

Since the value of NA cannot meaningfully be compared to any value, the value NA is always returned.

Type: Constant          Returns: Undefined

Parameters:

1 - Number

Also Defined At:
| Date | Object | String |

o <=

Synopsis:
Undefined <= aValue

Description:

Since the value of NA cannot meaningfully be compared toany value, the value NA is always returned.

Type: Constant          Returns: Undefined

Parameters:

1 - Number

Also Defined At:
| Date | Object | String |

o >

Synopsis:
Undefined > aValue

Description:

Since the value of NA cannot meaningfully be compared to any value, the value NA is always returned.

Type: Constant          Returns: Undefined

Parameters:

1 - Number

Also Defined At:
| Date | Number | Object | String |

o >=

Synopsis:
Undefined >= aValue

Description:

Since the value of NA cannot meaningfully be compared to any value, the value NA is always returned.

Type: Constant          Returns: Undefined

Parameters:

1 - Number

Also Defined At:
| Date | Number | Object | String |

o absoluteValue

Synopsis:
Undefined absoluteValue

Description:

Returns an NA value.

Type: Constant          Returns: Undefined

Also Defined At:
| Number |

o as:

Synopsis:
Undefined as: type

Description:

Converts the recipient String to an instance of the class indicated by the parameter, if possible. If the type is a string that is not the default String, the supplied type will be evaluated to determine its class. The implementation of 'convertFrom:' defined for that class will be used to convert the string to the correct class. The version at Object looks the string up in the class' default naming dictionary if it exists. If the recipient String contains the ',' character, this method returns a list of objects of the supplied type. Any String that cannot be converted to the supplied class returns NA.

Type: Method          Returns: Object

Also Defined At:
| String |

o asAPowerOf:

Synopsis:
Undefined asAPowerOf: aValue

Description:

Since no value can meaningfully be raised to the NA power, the value NA is always returned.

Type: Constant          Returns: Undefined

Parameters:

1 - Number

Also Defined At:
| Number |

o asClusterType

Synopsis:
Undefined asClusterType

Type: Constant          Returns: Undefined

o asCurrency

Synopsis:
Undefined asCurrency

Description:

Converts recipient into a Currency.

Type: Constant          Returns: Undefined

Also Defined At:
| Currency | String |

o asDate

Synopsis:
Undefined asDate

Description:

Returns the value NA.

Type: Constant          Returns: Undefined

Also Defined At:
| Date | DateOffset | Number | String |

o asDouble

Synopsis:
Undefined asDouble

Description:

Returns the value NA

Type: Constant          Returns: Undefined

o asFloat

Synopsis:
Undefined asFloat

Description:

Returns the value NA

Type: Constant          Returns: Undefined

o asInteger

Synopsis:
Undefined asInteger

Description:

Returns the value NA

Type: Constant          Returns: Undefined

Also Defined At:
| Date | DateOffset | String |

o asNumber

Synopsis:
Undefined asNumber

Description:

Returns the value NA

Type: Constant          Returns: Undefined

Also Defined At:
| String |

o asObjectSpace

Synopsis:
Undefined asObjectSpace

Type: Constant          Returns: Undefined

o asPOP

Synopsis:
Undefined asPOP

Type: Constant          Returns: Undefined

Also Defined At:
| Object |

o asPointerTo:

Synopsis:
Undefined asPointerTo:

Description:

For Internal Use Only.

Type: Primitive          Returns: Object

o asSelf

Synopsis:
Undefined asSelf

Description:

Returns the value NA

Type: Primitive          Returns: Undefined

Also Defined At:
| Block | Boolean | Classification | Collection | Currency | Date | DateOffset | DateRange | Dictionary | Entity | IndexedList | Interface | List | Number | Object | OpenVision | Schema | String | TimeSeries | Utility |

o basicAsDate

Synopsis:
Undefined basicAsDate

Description:

Returns the value NA

Type: Constant          Returns: Undefined

o between:and:

Synopsis:
Undefined between: lowerBoundary and: upperBoundary

Description:

Returns the value NA

Type: Method          Returns: Object

o classDescriptor

Synopsis:
Undefined classDescriptor

Description:

Reference to the object which describes the class. Class level information is stored here.

Type: Constant          Returns: Object

Also Defined At:
| Block | Boolean | Classification | Collection | Currency | Date | DateOffset | DateRange | Dictionary | Entity | IndexedList | Interface | List | Number | Object | OpenVision | Schema | String | TimeSeries | Utility |

o contains:

Synopsis:
Undefined contains:

Description:

Returns the value NA

Type: Constant          Returns: Undefined

Also Defined At:
| String |

o convertFrom:

Synopsis:
Undefined convertFrom: object

Description:

This message converts the supplied string to an instance of the recipient's class if applicable, returning NA otherwise. The definition at Object will lookup the string in the class' naming dictionary, if defined. The version at String returns the recipient stripped of any extensions. The versions at Number, Integer, Double, and Float convert the recipient to a numeric value if possible. The version at Date converts the recipient to a Date using the 'asDate' message defined at String. The version at Boolean returns TRUE if the recipient contains an upper/lower case combination of 'true' and FALSE if the recipient contains an upper/lower case combination of 'false'. The version at block returns a block containing the string as a message. This message is called by the 'as:' message at String.

Type: Method          Returns: Object

Also Defined At:
| Block | Boolean | Date | Number | Object | String |

o defaultInstance

Synopsis:
Undefined defaultInstance

Description:

Returns the default instance of the recipient object's class

Type: Constant          Returns: Undefined

Also Defined At:
| Block | Boolean | Classification | Collection | Currency | Date | DateOffset | DateRange | Dictionary | Entity | IndexedList | Interface | List | Number | OpenVision | Schema | String | TimeSeries | Utility |

o dividedInto:

Synopsis:
Undefined dividedInto:

Description:

Returns the value NA

Type: Constant          Returns: Undefined

o else:

Synopsis:
Undefined else: object

Description:

When sent to NA, evalutes supplied object, otherwise returns ^self. The expression: variable1 else: variable2 . else: variable3 can be used select the first non-na value encountered. If the parameters are supplied as blocks, they are not evaluated unless all the prior parameters have produced NA values.

Type: Method          Returns: Object

Also Defined At:
| Object |

o elseIf:then:

Synopsis:
Undefined elseIf: condition then: object

Description:

When sent to NA, evaluates supplied object if boolean is TRUE, otherwise
returns ^self. For example:
v isNumber
ifTrue: [ list at: v asInteger ] .
elseIf: v isString
then: [ dictionary at: v ] .
elseIf: list isList
then: [ list at: 1 ] .
else: [ "Unknown object type" ]

Type: Method          Returns: Object

Also Defined At:
| Object |

o exp

Synopsis:
Undefined exp

Description:

Returns the value NA

Type: Constant          Returns: Undefined

Also Defined At:
| Number |

o isDefault

Synopsis:
Undefined isDefault

Description:

Always returns TRUE if recipient is an NA.

Type: Constant          Returns: TRUE

Also Defined At:
| Collection | Date | Object | String |

o isNA

Synopsis:
Undefined isNA

Description:

Always returns TRUE if recipient is an NA.

Type: Constant          Returns: TRUE

Also Defined At:
| Object |

o isUndefined

Synopsis:
Undefined isUndefined

Description:

Returns a TRUE value when sent to any Undefined.

Type: Constant          Returns: TRUE

Also Defined At:
| Object |

o isntNA

Synopsis:
Undefined isntNA

Description:

Always returns FALSE if recipient is an NA.

Type: Constant          Returns: FALSE

Also Defined At:
| Object |

o log

Synopsis:
Undefined log

Description:

Returns an NA value.

Type: Constant          Returns: Undefined

Also Defined At:
| Number |

o log:

Synopsis:
Undefined log: base

Description:

Returns an NA value.

Type: Method          Returns: Undefined

Also Defined At:
| Number |

o matchesString:

Synopsis:
Undefined matchesString:

Description:

Returns an NA value.

Type: Constant          Returns: Undefined

Also Defined At:
| String |

o max:

Synopsis:
Undefined max: aNumber

Description:

Returns an NA value.

Type: Method          Returns: Undefined

Also Defined At:
| Collection |

o min:

Synopsis:
Undefined min: aNumber

Description:

Returns an NA value.

Type: Method          Returns: Undefined

Also Defined At:
| Collection |

o mod:

Synopsis:
Undefined mod: aNumber

Description:

Returns an NA value.

Type: Method          Returns: Undefined

o negated

Synopsis:
Undefined negated

Description:

Returns an NA value.

Type: Constant          Returns: Undefined

Also Defined At:
| Number |

o new

Synopsis:
Undefined new

Description:

Undefines the 'new' message

Type: Method          Returns: Undefined

Also Defined At:
| Boolean | Collection | DateRange | Dictionary | Object |

o not

Synopsis:
Undefined not

Description:

Returns an NA value.

Type: Constant          Returns: Undefined

o notBetween:and:

Synopsis:
Undefined notBetween: lower and: upper

Description:

Returns an NA value.

Type: Method          Returns: Undefined

o numberOfDigits

Synopsis:
Undefined numberOfDigits

Description:

Returns an NA value.

Type: Constant          Returns: Undefined

o pctChangeTo:

Synopsis:
Undefined pctChangeTo: aNumber

Description:

Returns an NA value.

Type: Method          Returns: Object

Also Defined At:
| Number |

o print

Synopsis:
Undefined print

Description:

Redefines the standard print message to print the string 'NA'.

Type: Method          Returns: Undefined

Also Defined At:
| Block | Date | DateOffset | DateRange | Entity | IndexedList | List | Object | String | TimeSeries |

o print:

Synopsis:
Undefined print: aNumber

Description:

Prints the string 'NA' formatted to the number of characters provided in supplied format. NA is always right-justified in a field followed by one blank.

Type: Method          Returns: Undefined

Parameters:

1 - Number

Also Defined At:
| Boolean | Date | Entity | Number | Object | String |

o printWithLeadingZeros:

Synopsis:
Undefined printWithLeadingZeros: f

Description:

Displays the recipient with leading 0s to fill out the supplied width if width is positive. If width is negative, no padding is done.

Type: Method          Returns: Object

Also Defined At:
| Number |

o printWithLeadingZerosNL:

Synopsis:
Undefined printWithLeadingZerosNL: f

Description:

Displays the recipient with leading 0s to fill out the supplied width followed by a new line if width is positive. If width is negative, no padding is done.

Type: Method          Returns: Object

Also Defined At:
| Number |

o round

Synopsis:
Undefined round

Description:

Returns an NA value.

Type: Constant          Returns: Undefined

Also Defined At:
| Number |

o round:

Synopsis:
Undefined round: decimalPlaces

Description:

Returns an NA value.

Type: Method          Returns: Undefined

Also Defined At:
| Number |

o sprint:

Synopsis:
Undefined sprint: aNumber

Description:

Returns the value NA as a string formatted to the number of characters specified in supplied format.

Type: Method          Returns: String

Parameters:

1 - Number

Also Defined At:
| Number | Object | String |

o sqrt

Synopsis:
Undefined sqrt

Description:

Returns an NA value.

Type: Constant          Returns: Undefined

Also Defined At:
| Number |

o subtractedFrom:

Synopsis:
Undefined subtractedFrom:

Description:

Returns an NA value.

Type: Constant          Returns: Undefined

Also Defined At:
| DateOffset |

o toThe:

Synopsis:
Undefined toThe: aNumber

Description:

Returns an NA value.

Type: Method          Returns: Undefined

Also Defined At:
| Number |

o whatAmI

Synopsis:
Undefined whatAmI

Description:

Returns the string 'undefined'.

Type: Constant          Returns: String

Also Defined At:
| Block | Boolean | Classification | Collection | Currency | Date | DateOffset | DateRange | Dictionary | Entity | IndexedList | Interface | List | Number | Object | OpenVision | Schema | String | TimeSeries | Utility |

o within:percentOf:

Synopsis:
Undefined within: pc percentOf: y

Description:

Returns an NA value.

Type: Method          Returns: Undefined

Also Defined At:
| Number |

o ||

Synopsis:
Undefined || aBoolean

Description:

If the supplied boolean evaluates to TRUE, then TRUE, NA otherwise.

Type: Method          Returns: Boolean

Parameters:

1 - Boolean