Enumerations

Enumerations are implemented as final static ints in their own Java class, and as such, are accessed just like variables in that class. For example, if we had a sidl package named dealership that contained the following code segment:


  enum car { 
    porsche = 911, 
    ford = 150, 
    mercedes = 550
  };

we would be able to get the value assigned to a Porsche by typing dealership.car.porsche.





babel-0.10.2
users_guide Last Modified 2005-03-23

http://www.llnl.gov/CASC/components
components@llnl.gov