Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » allInstances
allInstances [message #9562] Sun, 04 March 2007 08:21 Go to next message
Eclipse User
Originally posted by: chaves.inf.ufsc.nospam.br

Since the allInstances operation applies to the classifier itself and
not to objects of the class, it should be static, shouldn't it?
Re: allInstances [message #9638 is a reply to message #9562] Tue, 06 March 2007 14:25 Go to previous message
Eclipse User
Originally posted by: cdamus.ca.ibm.com

Hi, Rafael,

I'm not sure; this looks like an inconsistency in the specification.
allInstances() is defined on the OclAny type, and the specification
doesn't indicate that it would be static. All of the examples, though,
illustrate what looks like static invocation but doesn't use the '::'. It
looks more like an operation defined by the TypeType metaclass.

Cheers,

Christian


Rafael Chaves wrote:

> Since the allInstances operation applies to the classifier itself and
> not to objects of the class, it should be static, shouldn't it?
Previous Topic:The generated code of OCLEcore.genmodel
Next Topic:Re: [OCL] Any plans on parser extensibility, error recovery ?
Goto Forum:
  


Current Time: Fri Aug 22 21:55:33 EDT 2014

Powered by FUDForum. Page generated in 0.02092 seconds