xquery/XQuery__UntypedAtomicToIntegerCast.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Tue, 12 May 2015 12:20:53 +0100
changeset 296 ea3dbc023c80
parent 241 xquery/trunk/XQuery__UntypedAtomicToIntegerCast.st@e28ef0f20186
permissions -rw-r--r--
Post-convert fixes Removed intermediate `trunk` directories used for branching in SVN

"{ Package: 'stx:goodies/xmlsuite/xquery' }"

"{ NameSpace: XQuery }"

UntypedAtomicToAnyAtomicTypeCast subclass:#UntypedAtomicToIntegerCast
	instanceVariableNames:''
	classVariableNames:''
	poolDictionaries:''
	category:'XQuery-TypeCasting'
!


!UntypedAtomicToIntegerCast methodsFor:'casting'!

cast
    self checkLexicalForm.
    ^ AtomicItem withValue: atomicValue value asNumber asType: anotherType typeName.

    "Created: / 17-11-2009 / 16:46:08 / Jan Kurs <kursj1@fel.cvut.cz>"
    "Modified: / 17-11-2009 / 22:40:51 / Jan Kurs <kursj1@fel.cvut.cz>"
! !

!UntypedAtomicToIntegerCast class methodsFor:'documentation'!

version_SVN
    ^ '$Id$'
! !