Cface__CEnumValueNode.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Thu, 10 Jul 2008 07:31:14 +0000
changeset 5 c110eef5b9ef
parent 4 fc74bd43a3eb
child 14 1f730d82496e
permissions -rw-r--r--
- externalization of libraryName (now supports unix & win32 simultaneously) - basi support for accessing structure fields

"{ Package: 'cvut:fel/cface' }"

"{ NameSpace: Cface }"

CDefinitionNode subclass:#CEnumValueNode
	instanceVariableNames:'intValue'
	classVariableNames:''
	poolDictionaries:''
	category:'Cface-C AST'
!

!CEnumValueNode class methodsFor:'documentation'!

history

    "Created: / 25-10-2007 / 17:44:38 / haja"
    "Created: #name / 25-10-2007 / 17:44:44 / haja"
    "Created: #name: / 25-10-2007 / 17:44:44 / haja"
    "Created: #id / 25-10-2007 / 17:44:44 / haja"
    "Created: #id: / 25-10-2007 / 17:44:44 / haja"
    "Created: #name:id: / 25-10-2007 / 18:15:51 / haja"
    "Deleted: #id: / 25-10-2007 / 18:17:19 / haja"
    "Deleted: #id / 25-10-2007 / 18:17:19 / haja"
    "Created: #number / 25-10-2007 / 18:17:21 / haja"
    "Created: #number: / 25-10-2007 / 18:17:21 / haja"
    "Created: #name:number: / 25-10-2007 / 18:17:40 / haja"
    "Deleted: #name:id: / 25-10-2007 / 18:17:42 / haja"
    "Created: #acceptVisitor: / 02-11-2007 / 10:43:07 / haja"
! !

!CEnumValueNode methodsFor:'accessing'!

intValue
    ^ intValue

    "Created: / 10-02-2008 / 19:20:27 / janfrog"
!

intValue:something
    intValue := something.

    "Created: / 10-02-2008 / 19:20:27 / janfrog"
! !

!CEnumValueNode methodsFor:'printing'!

printOn: stream indent: level

    stream 
        nextPutAll:'(value (';
        nextPutAll:cName;
        nextPutAll:') ';
        nextPutAll:intValue printString;
        nextPut:$)

    "Created: / 17-02-2008 / 18:06:13 / janfrog"
! !

!CEnumValueNode methodsFor:'testing'!

isCEnumValueNode
    ^ true

    "Created: / 17-02-2008 / 21:49:53 / janfrog"
! !

!CEnumValueNode methodsFor:'visiting'!

acceptVisitor:aVisitor 
    "Double dispatch back to the visitor, passing my type encoded in
     the selector (visitor pattern)"
    "stub code automatically generated - please change if required"
    
    ^ aVisitor visitCEnumValueNode:self

    "Created: / 02-11-2007 / 10:43:07 / haja"
    "Modified: / 12-02-2008 / 23:05:47 / janfrog"
! !

!CEnumValueNode class methodsFor:'documentation'!

version
    ^ '$Header: /opt/data/cvs/cvut-fel/cface/Cface__CEnumValueNode.st,v 1.1 2008/02/26 15:57:17 vranyj1 Exp $'
! !