Kermeta API Documentation

Generation date: Jan 30, 2007
API : kermeta • kermeta::interpreter • kermeta::persistence • kermeta::kunit • kermeta::language • kermeta::exceptions • kermeta::io • kermeta::reflection • kermeta::utils • kermeta::standard • kermeta::language::behavior • kermeta::language::structure

Package kermeta

kermeta
The root package. See the other packages if you want to browse the classes of Kermeta api.

Package interpreter

kermeta::interpreter

Contains a set of classes whose function is to evaluate a kermeta
expression written as a string.

Operation evalString

operation evalString(body : kermeta::standard::String, selfObj : kermeta::standard::Object, actualParams : kermeta::utils::Hashtable<kermeta::standard::String, kermeta::standard::Object>) : kermeta::standard::Object

Execute the expression given as a string.
the self type and formal parameters are supposed to be set
before calling this operation

Operation execute

operation execute(selfObj : kermeta::standard::Object, actualParams : kermeta::utils::Hashtable<kermeta::standard::String, kermeta::standard::Object>) : kermeta::standard::Object

Execute the expression in the given context

Operation initializeDefaults

operation initializeDefaults() : Void

initialise the formalParameters with an empty set of parameters
and the self type with void

Operation parse

operation parse(expression : kermeta::standard::String) : kermeta::standard::Boolean

Parse the expression as a string
and updates the expression field and errors
Returns true if the expression was parssed sucessfuly

Property errors

reference errors: kermeta::interpreter::KermetaError[0..*]

Parse errors and type errors

Property expression

reference expression: kermeta::language::behavior::Expression

the expression

Property formalParameters

reference formalParameters: kermeta::utils::Hashtable<kermeta::standard::String, kermeta::reflection::Type>

Formal parameters of the expression

Property selfClass

reference selfClass: kermeta::reflection::ClassDefinition

The type of the self object
or void if the expression is not to be executed
in the context of an object

Class DynamicExpression

kermeta::interpreter::DynamicExpression

DynamicExpression is a class used to make dynamic calls, i.e dynamic evaluation
of Kermeta statements represented in a string.

An example :
var de : DynamicExpression init DynamicExpression.new
de.initializeDefaults
de.formalParameters.put("a", String)
de.parse("stdio.writeln(a)") // note: to execute a list of statements, you have to surround them with do..end
var params : Hashtable<String, Object> init Hashtable<String, Object>.new
params.put("a", "hello world!")
de.execute(void, params)

Class DynamicExpressionException

kermeta::interpreter::DynamicExpressionException inherits kermeta::exceptions::Exception
See inherited classes.

Property message

attribute message: kermeta::standard::String
Undocumented

Class KermetaError

kermeta::interpreter::KermetaError
Undocumented

Class ParseError

kermeta::interpreter::ParseError inherits kermeta::interpreter::KermetaError
See inherited classes.

Class TypeError

kermeta::interpreter::TypeError inherits kermeta::interpreter::KermetaError
See inherited classes.

Package persistence

kermeta::persistence

Contains the classes that handle the serialization of models, in particular
EMF models.

Operation createResource

method createResource(uri : kermeta::standard::String, mm_uri : kermeta::standard::String) : kermeta::persistence::Resource from kermeta::persistence::Repository
Undocumented

Operation getResource

method getResource(uri : kermeta::standard::String) : kermeta::persistence::Resource from kermeta::persistence::Repository
Undocumented

Property useInterpreterInternalResources

attribute useInterpreterInternalResources: kermeta::standard::Boolean

If true, tells to the save of the resources that they should also integrate the resources from Kermeta interpreter itself
this is usefull for example to make a dependency to framework.km
by default, not setting this is considered as false.

Class EMFRepository

kermeta::persistence::EMFRepository inherits kermeta::persistence::Repository

Repository that stores and manages resources that come from EMF

Operation add

method add(instance : kermeta::standard::Object) : Void from kermeta::persistence::Resource
Undocumented

Operation initializeContentMap

operation initializeContentMap() : Void

Create an hashtable with appropriates keys and empty collections. This method
should not be called by the end-user

Operation isInTypeDefSet

operation isInTypeDefSet(tparams : kermeta::standard::Set<kermeta::reflection::TypeDefinition>, new_instance : kermeta::standard::Object) : kermeta::standard::Boolean

Helper that returns true if new_instance type is in the tparam Set, false otherwise
FIXME : Loop-and-cast done in order to temporarily get round the type
system limits for reflection

Operation load

method load() : Void from kermeta::persistence::Resource
Undocumented

Operation remove

method remove(instance : kermeta::standard::Object) : kermeta::standard::Object from kermeta::persistence::Resource
Undocumented

Operation save

method save() : Void from kermeta::persistence::Resource
Undocumented

Operation saveAndValidateWithEMF

operation saveAndValidateWithEMF() : kermeta::standard::Boolean
save and check the resource using the EMF validation function
apply the validate on all the object in the root of this resource
returns true if the validation reports no error
otherwise raises exceptions

Operation saveWithNewURI

method saveWithNewURI(new_uri : kermeta::standard::String) : Void from kermeta::persistence::Resource
Undocumented

Class EMFResource

kermeta::persistence::EMFResource inherits kermeta::persistence::Resource

Extension of the Resource class definition that is specific to EMF Repository.

Operation createResource

method createResource(uri : kermeta::standard::String, mm_uri : kermeta::standard::String) : kermeta::persistence::Resource from kermeta::persistence::Repository
Undocumented

Operation getResource

method getResource(uri : kermeta::standard::String) : kermeta::persistence::Resource from kermeta::persistence::Repository
Undocumented

Class KMRepository

kermeta::persistence::KMRepository inherits kermeta::persistence::Repository

Repository that stores and manages XMI files representing Kermeta models

Operation add

method add(instance : kermeta::standard::Object) : Void from kermeta::persistence::Resource
Undocumented

Operation load

method load() : Void from kermeta::persistence::Resource
Undocumented

Operation remove

method remove(instance : kermeta::standard::Object) : kermeta::standard::Object from kermeta::persistence::Resource
Undocumented

Operation save

method save() : Void from kermeta::persistence::Resource
Undocumented

Class KMResource

kermeta::persistence::KMResource inherits kermeta::persistence::Resource
See inherited classes.

Operation createResource

operation createResource(uri : kermeta::standard::String, mm_uri : kermeta::standard::String) : kermeta::persistence::Resource

Create a resource with given uri.
params :
- uri : the uri where to save the model handled by the resource
- mm_uri : the uri of the metamodel of which model is an instance
User must provide the mm_uri if he creates a new model from scratch.

Create a new resource for a model given by its uri,
which meta-model is stored in file given by mm_uri
If file already exists, you'll be able to call the load method to concretly load the model
otherwise, you can only call the save method

Operation getResource

operation getResource(uri : kermeta::standard::String) : kermeta::persistence::Resource

Get the resource of model that is stored in the given uri.
This suppose that this URI resource was already created in this Repository.
If this resource wasn't already created it will silently create
and load a new one. In this case, the

Get the resource of model that is stored in the given uri. Silently create
and load a new one if a resource with this uri was not found.

Property resources

attribute resources: set kermeta::persistence::Resource[0..*]#repository
The resources created by this repository

Class Repository

kermeta::persistence::Repository
Abstract resource container, that contains a list of available loaded resources,
and methods to create or get a resource given an URI.

Operation add

operation add(instance : kermeta::standard::Object) : Void
add an instance, return it if success, otherwise return null
You need to do that for every Object that must be placed in the root of the resource when you'll save it Add an instance to the Resource ( this is only a shortcut to instances.add call)

Operation load

operation load() : Void
Loads a resource. Once loaded, you'll be able to query the resource for its content. Loads a resource. Once loaded, you'll be able to query the resource for its instances.

Operation remove

operation remove(instance : kermeta::standard::Object) : kermeta::standard::Object
remove the instance, return it if success, otherwise return null Remove an instance from the Resource

Operation save

operation save() : Void
Save a model instance, in the file specified by the initial uri
Overrides the old version.
Save a resource in a file referenced by the uri associated to the resource

Operation saveWithNewURI

operation saveWithNewURI(new_uri : kermeta::standard::String) : Void
Save a resource in a file referenced by this new uri.
This allows to save the result of a transformation without changing the original file. Save a resource in a file referenced by this new uri.
This allows to save the result of a transformation without changing the original file.

Property allContents

property allContents: set kermeta::standard::Object[0..*] readonly
- returns all the model elements hosted by this resource, including elements from the
dependent resources

Property allRootContents

property allRootContents: set kermeta::standard::Object[0..*] readonly
- returns the rootContents of the model saved in/loaded from the given uri, including
the models from the dependent resources

Property contentMap

reference contentMap: kermeta::utils::Hashtable<kermeta::standard::String, kermeta::standard::Set<kermeta::standard::Object>>
The hashtable that contains the contents loaded by the resource.
It is composed of 4 entries : "rootContents", "allRootContents", "contents", "allContents"
The two last ones will be kept empty since resource-heavy
- rootContents : only the root elements of the "main model" hosted by the given resource
- allRootContents : the root elements of the main model

Property contents

property contents: set kermeta::standard::Object[0..*] readonly
- returns all the model elements hosted by this resource, excluding elements from the
dependent resources

Property includedResources

reference includedResources: set kermeta::standard::String[0..*]
The includedResource if the model-instance "inter-depends" on other instances

Property instances

reference instances: set kermeta::standard::Object[0..*]
The entities contained in the model-instance, that are provided when user loads a resource
instances == rootContents

Property metaModelURI

reference metaModelURI: kermeta::standard::String
The uri of the meta-model of the model-instance to load

Property repository

reference repository: kermeta::persistence::Repository#resources
The repository used to create this resource

Property rootContents

property rootContents: set kermeta::standard::Object[0..*] readonly

- returns the rootContents of the model saved in/loaded from the given uri, excluding
the models from the dependent resources

Property uri

reference uri: kermeta::standard::String
The uri of the model-instance to load

Class Resource

kermeta::persistence::Resource

The main class that handle a loaded/saved model.
There are a few important things to note for the developer :

- load a Resource : this loads a Collection of instances corresponding to the
objects in the loaded model. If the Collection of instances is empty, than
a ResourceLoadException is raised

- save a Resource : this saves the collection of instances in a new file. This can
be correctly done if and only if the instances saved are conform to the metamodel
linked to this resource (this link does not need to be explicit. It is normally retrieved
through the EMF model -- see Java wrapping "Resource.java").

- add/remove an instance to the Resource : this adds an element in the resource. It cannot
be "simply" added because of the following potential errors :

- The object added is not conform to the metamodel -> Error
- The object was already added in the resource -> Not a real error : we do nothing
- The object to remove does not exist -> redirect to a collection-specific error
- The object to remove is attached to an object in the collection -> "dependency-violation" exception?

Class ResourceLoadException

kermeta::persistence::ResourceLoadException inherits kermeta::exceptions::Exception
Specialized exceptions

Class ResourceSaveException

kermeta::persistence::ResourceSaveException inherits kermeta::exceptions::Exception
See inherited classes.

Class ResourceUnconformityException

kermeta::persistence::ResourceUnconformityException inherits kermeta::exceptions::Exception
Raised when user tries to add an object that is not conform to the metamodel

Package kunit

kermeta::kunit

Contains the implementation of a unit test tool. This is a clone of
JUnit architecture.
Reference : http://junit.sourceforge.net/doc/cookstour/cookstour.htm

Usage example of kunit can be found in fr.irisa.triskell.kermeta.samples project.

You can also find a little example if you go to the documentation of the class
TestRunner.

Operation assert

operation assert(bool : kermeta::standard::Boolean) : Void

Fails if bool is false

Operation assertFalse

operation assertFalse(bool : kermeta::standard::Boolean) : Void

will fail if bool is true

Operation assertFalseWithMsg

operation assertFalseWithMsg(bool : kermeta::standard::Boolean, msg : kermeta::standard::String) : Void

will fail if bool is true

Operation assertTrue

operation assertTrue(bool : kermeta::standard::Boolean) : Void

will fail if bool is false

Operation assertTrueWithMsg

operation assertTrueWithMsg(bool : kermeta::standard::Boolean, msg : kermeta::standard::String) : Void

will fail if bool is false

Operation fail

operation fail(msg : kermeta::standard::String) : Void

raise a AssertionViolatedException with the provided message

Operation order

operation order() : kermeta::standard::Integer

give the order number of the failed assert

Property rank

attribute rank: kermeta::standard::Integer
Undocumented

Class Assert

kermeta::kunit::Assert

The abstract class assert defines a set of convinient operations
to assert expected behavior and give the rank of failed assert

Class AssertionFailedError

kermeta::kunit::AssertionFailedError inherits kermeta::exceptions::Exception

AssertionViolatedException are raised when assertions are violated

Operation run

operation run(r : kermeta::kunit::TestResult) : Void

Run the test

Execute the test case

Execute all tests of the suite

Operation runTest

operation runTest() : Void
The main method that the testes has to implement for his specific tests
This method is an adapter that uses the pluggable selector TestCase.name to know which
test to run

Operation setUp

operation setUp() : Void
Called before a test is run to set up the needed environment

Operation tearDown

operation tearDown() : Void
Called each time a test is run so that the testing environment is always
tidy.

Class Test

kermeta::kunit::Test inherits kermeta::kunit::Assert

Abstract class Test. Interface for single and composite object (TestCase and TestSuite)

Operation createDefaultTestResult

operation createDefaultTestResult() : kermeta::kunit::TestResult
Undocumented

Operation initialize

operation initialize(name : kermeta::standard::String) : Void

Initialize the test case
params :
- name : the name of the test case : must be the name of the testOperation

Operation run

method run(r : kermeta::kunit::TestResult) : Void from kermeta::kunit::Test
Undocumented

Operation runTest

method runTest() : Void from kermeta::kunit::Test
Undocumented

Property name

attribute name: kermeta::standard::String
A name for the test case so that we know which one failed
This is a "pluggable" selector

Class TestCase

kermeta::kunit::TestCase inherits kermeta::kunit::Test

A test case contains a set of testOperations.
See TestRunner class to find how to run a TestCase.
Related design-pattern : Command

An Example of TestCase :
 class MyTestCase inherits kermeta::kunit::TestCase

{
attribute cString : String

method setUp() is do
cString := "String"
end

method tearDown() is do
// We don't need to tearDown anything in this example.
end

operation testStringAssignment() : Void is do
var aString : String init "String"
assert(aString==cString)
// You can also add a message if assert fails :
assertTrueWithMsg(aString==cString, "expected aString == cString")
end
}

Property failedTest

reference failedTest: kermeta::kunit::Test
Undocumented

Property raised

reference raised: kermeta::exceptions::Exception
Undocumented

Class TestFailure

kermeta::kunit::TestFailure

An instance of this class is created when an assertion failed or an exception
was raised.

Operation initialize

operation initialize() : Void
Undocumented

Operation loadTestMethodsFromTestCase

operation loadTestMethodsFromTestCase(test_type : kermeta::language::structure::Class) : kermeta::standard::Set<kermeta::kunit::Test>

load in the testSuiteClass all the methods prefixed by test
params :
- testCaseClass : the TestCase class where we get the testOperations
// FIXME / I would like to do "TestType inherits TestCase"

Property methodPrefix

attribute methodPrefix: kermeta::standard::String
Undocumented

Property suiteClass

reference suiteClass: kermeta::language::structure::Class
Undocumented

Class TestLoader

kermeta::kunit::TestLoader

Operation addError

operation addError(test : kermeta::kunit::Test, e : kermeta::exceptions::Exception) : Void
Undocumented

Operation addFailure

operation addFailure(test : kermeta::kunit::Test, e : kermeta::kunit::AssertionFailedError) : Void
Adds a failed test to the list of failed tests

Operation createTestFailure

operation createTestFailure(test : kermeta::kunit::Test, e : kermeta::exceptions::Exception) : kermeta::kunit::TestFailure
Undocumented

Operation initialize

operation initialize() : Void
Set the runtests to 0

Operation startTest

operation startTest(test : kermeta::kunit::Test) : Void
Increments the runtests counter

Property errors

reference errors: set kermeta::kunit::TestFailure[0..*]
tests which errors were not assertion failures

Property failures

reference failures: set kermeta::kunit::TestFailure[0..*]
tests which assertions failed

Property runtests

reference runtests: kermeta::standard::Integer
number of test that were run

Class TestResult

kermeta::kunit::TestResult

Get the number of run tests, errors and failures that resulted from the launch of a
Test. (This is a minimal but functional class that can be improved)
Related design-pattern : Collecting parameter

Operation createTestLoader

operation createTestLoader() : kermeta::kunit::TestLoader
Undocumented

Operation createTestResult

operation createTestResult() : kermeta::kunit::TestResult
Undocumented

Operation doesInheritFromTestCase

operation doesInheritFromTestCase(test_class : kermeta::reflection::Class) : kermeta::standard::Boolean

Recursively check if this class inherits from the class TestCase
this function is not really for external usage

Operation initialize

operation initialize() : Void
Undocumented

Operation printTestResult

operation printTestResult() : Void

Prints in a text format the result of the tests launches
TODO : a specific set of class that inherit TestResult and display
it according to a specific format

Operation run

operation run(test_class : kermeta::language::structure::Class) : Void
Run a test suite from the given test case (test_class should be a class
that inherits TestCase

Property testClass

reference testClass: kermeta::language::structure::Class
Undocumented

Property testResult

reference testResult: kermeta::kunit::TestResult
Undocumented

Class TestRunner

kermeta::kunit::TestRunner

User instantiates this class to run a TestSuite or a TestCase

Usage :

Create a file, and add in the "require" place :
require "the_file_that_contains_the_tests.kmt"


Create a class, which will be the one that you will launch :

class MyTesterClass
{
operation main() is do
var testRunner : kermeta::kunit::TestRunner init kermeta::kunit::TestRunner.new
// Here, we run our test case class called "TestClass",
// contained in the_file_that_contains_the_tests.kmt.
// TestClass must inherit TestCase, or TestSuite
testRunner.run(TestClass)
testRunner.printTestResult
end
}

Operation addTest

operation addTest(test : kermeta::kunit::Test) : Void
Undocumented

Operation run

method run(test_result : kermeta::kunit::TestResult) : Void from kermeta::kunit::Test
Undocumented

Operation runTest

method runTest() : Void from kermeta::kunit::Test
Undocumented

Property tests

reference tests: kermeta::kunit::Test[0..*]

The set of contained tests

Class TestSuite

kermeta::kunit::TestSuite inherits kermeta::kunit::Test

A test suite is composed of a set of tests (which can inherit either of TestSuite
or TestCase)
Related design-pattern : Composite

Package language

kermeta::language

Contains the implementation of Kermeta reflective collections.

Operation add

method add(element : G) : Void from kermeta::standard::Set
Undocumented

Operation clear

method clear() : Void from kermeta::standard::Collection
Undocumented

Operation remove

method remove(element : G) : Void from kermeta::standard::Collection
Undocumented

Class ReflectiveCollection

kermeta::language::ReflectiveCollection<G> inherits kermeta::standard::Set<G>

ReflectiveCollection is a special collection that is used to define the type
of attributes that have an upper multiplicity > 1 in a class. It indeed handles
the update of opposite property if such an attribute has got one.

Operation add

method add(element : G) : Void from kermeta::language::ReflectiveCollection
Undocumented

Operation addAt

method addAt(index : kermeta::standard::Integer, element : G) : Void from kermeta::standard::OrderedSet
Undocumented

Operation clear

method clear() : Void from kermeta::language::ReflectiveCollection
Undocumented

Operation remove

method remove(element : G) : Void from kermeta::language::ReflectiveCollection
Undocumented

Operation removeAt

method removeAt(index : kermeta::standard::Integer) : Void from kermeta::standard::OrderedCollection
Undocumented

Class ReflectiveSequence

kermeta::language::ReflectiveSequence<G> inherits kermeta::standard::OrderedSet<G>, kermeta::language::ReflectiveCollection<G>

ReflectiveSequence is an ordered ReflectiveCollection.

Package exceptions

kermeta::exceptions

Contains the definition of a Kermeta exception and a few basic exceptions.

Class AbstractClassInstantiationError

kermeta::exceptions::AbstractClassInstantiationError inherits kermeta::exceptions::RuntimeError

Creation on an abstract class. Usually this is detected by the type-checker. The only
case where this happens is when instantiating a type variable, whose bound type turns
out to be abstract.

Class CallOnVoidTarget

kermeta::exceptions::CallOnVoidTarget inherits kermeta::exceptions::RuntimeError

Occurs when a feature is called on void

Class ConstraintViolatedInv

kermeta::exceptions::ConstraintViolatedInv inherits kermeta::exceptions::Exception
See inherited classes.

Class ConstraintViolatedPost

kermeta::exceptions::ConstraintViolatedPost inherits kermeta::exceptions::Exception
See inherited classes.

Class ConstraintViolatedPre

kermeta::exceptions::ConstraintViolatedPre inherits kermeta::exceptions::Exception
See inherited classes.

Class DivisionByZero

kermeta::exceptions::DivisionByZero inherits kermeta::exceptions::Exception
See inherited classes.

Class EmptyCollection

kermeta::exceptions::EmptyCollection inherits kermeta::exceptions::Exception
See inherited classes.

Property message

attribute message: kermeta::standard::String

The message attached to the exception

Property nestedException

attribute nestedException: kermeta::exceptions::Exception

Any nested exception

Property stackTrace

attribute stackTrace: kermeta::standard::String

The stack trace as a String
Filled by the interpreted when the exception is raised

Class Exception

kermeta::exceptions::Exception

Generic exceptions
The main class from which all the exception inherit

Class IndexOutOfBound

kermeta::exceptions::IndexOutOfBound inherits kermeta::exceptions::Exception
See inherited classes.

Class IteratorIsOff

kermeta::exceptions::IteratorIsOff inherits kermeta::exceptions::Exception
See inherited classes.

Class NotImplementedException

kermeta::exceptions::NotImplementedException inherits kermeta::exceptions::RuntimeError

Use this exception whenyou want to forbid the access to an unimplemented operation
and invite to implement it

Class OverflowError

kermeta::exceptions::OverflowError inherits kermeta::exceptions::Exception
See inherited classes.

Property expression

attribute expression: kermeta::language::behavior::Expression

The code that raised the exception

Class RuntimeError

kermeta::exceptions::RuntimeError inherits kermeta::exceptions::Exception

Exception for interpreter exceptions

Class StringIndexOutOfBound

kermeta::exceptions::StringIndexOutOfBound inherits kermeta::exceptions::Exception
See inherited classes.

Class UpperBoundReachedError

kermeta::exceptions::UpperBoundReachedError inherits kermeta::exceptions::RuntimeError

Use this exception when user tries to add an element to a property which type is collection
which has an upper bound != -1 ( ie *)

Package io

kermeta::io

Contains Input/Output related classes.

Operation read

operation read(prompt : kermeta::standard::String) : kermeta::standard::String

read an object from standard input

Operation write

operation write(object : kermeta::standard::String) : Void

write the object to standard output

Operation writeln

operation writeln(object : kermeta::standard::String) : Void

writeln the object to standard output

Class StdIO

kermeta::io::StdIO

An implementation of StdIO : standard input/output

Package reflection

kermeta::reflection

Contains all the abstract classes used in the reflection mechanism. Implements the derived
properties
contained in the classes; declares the abstract operations.
Concrete implementation is in kermeta.language.structure.

Alias Boolean

kermeta::reflection::Boolean
Alias for kermeta::standard::Boolean

Operation new

operation new() : kermeta::reflection::Object
Undocumented

Operation toString

method toString() : kermeta::reflection::String from kermeta::reflection::Object
Undocumented

Property isAbstract

property isAbstract: kermeta::reflection::Boolean readonly
Returns true if the classDefinition of this class is abstract.

Property name

property name: kermeta::reflection::String readonly
Returns the name of the classDefinition of this class

Property ownedAttribute

property ownedAttribute: set kermeta::reflection::Property[0..*] readonly
Returns the attributes, references, and derived properties owned by
the classDefinition of this class.

Property ownedOperation

property ownedOperation: set kermeta::reflection::Operation[0..*] readonly
Returns the operations owned by the classDefinition of this class.

Property superClass

property superClass: set kermeta::reflection::Class[0..*] readonly
Returns the Classes of which the classDefinition of this class inherits.

Class Class

kermeta::reflection::Class inherits kermeta::reflection::ParameterizedType
Type corresponding to the use of a ClassDefinition (see ClassDefinition)

Property allOwnedAttribute

property allOwnedAttribute: set kermeta::reflection::Property[0..*] readonly
Returns all the attributes, references, derived properties of this
class definition including the inherited ones

Property inv

attribute inv: set kermeta::reflection::Constraint[0..*]#invOwner
Undocumented

Property isAbstract

attribute isAbstract: kermeta::reflection::Boolean
Undocumented

Property ownedAttribute

attribute ownedAttribute: set kermeta::reflection::Property[0..*]#owningClass
Returns the attributes, references, and derived properties owned by
this class definition.

Property ownedOperation

attribute ownedOperation: set kermeta::reflection::Operation[0..*]#owningClass
Returns the operations owned by this class definition.

Property superType

reference superType: set kermeta::reflection::Class[0..*]
Returns the Classes of which this class definition inherits.

Class ClassDefinition

kermeta::reflection::ClassDefinition inherits kermeta::reflection::TypeContainer, kermeta::reflection::GenericTypeDefinition
The definition of a class definition :)
class A

{
attribute s : String
}
is a class definition; in :

main() : A is do end

A is a Class : it corresponds to the use of the class definition of A

Property invOwner

reference invOwner: kermeta::reflection::ClassDefinition#~inv
Undocumented

Property postOwner

reference postOwner: kermeta::reflection::Operation#~post
Undocumented

Property preOwner

reference preOwner: kermeta::reflection::Operation#~pre
Undocumented

Class Constraint

kermeta::reflection::Constraint inherits kermeta::reflection::NamedElement
Constraint is part of a contract implementation in a Class definition or an operation.
Three kinds of constraints are available : pre, post, and inv (invariant constraint)

Class DataType

kermeta::reflection::DataType inherits kermeta::reflection::TypeDefinition, kermeta::reflection::Type
Special type definition for Enumeration, PrimitiveType

Property ownedLiteral

attribute ownedLiteral: set kermeta::reflection::EnumerationLiteral[0..*]#~enumeration
Owned item in enumeration

Class Enumeration

kermeta::reflection::Enumeration inherits kermeta::reflection::DataType
Definition for enumeration

Property enumeration

reference enumeration: kermeta::reflection::Enumeration#ownedLiteral
Undocumented

Class EnumerationLiteral

kermeta::reflection::EnumerationLiteral inherits kermeta::reflection::NamedElement
Item definition for enumeration

Property left

reference left: kermeta::reflection::Type
Undocumented

Property right

reference right: kermeta::reflection::Type
Undocumented

Class FunctionType

kermeta::reflection::FunctionType inherits kermeta::reflection::TypeContainer, kermeta::reflection::Type

Type used to define the use of lambda expressions.
Uses :
operation forAll(func : <G -> Boolean>) : Boolean is do

var test : Boolean init true
from var it : Iterator<G> init iterator
until it.isOff
loop
test := test and func(it.next)
end
result := test
end


In the above example, <G -> Boolean> is a function type f(G) ->
Boolean, with a parameter of type G and a return type of type Boolean
The operation forAll takes a lambda expression as parameter.

Property typeParameter

attribute typeParameter: set kermeta::reflection::TypeVariable[0..*]
Undocumented

Class GenericTypeDefinition

kermeta::reflection::GenericTypeDefinition inherits kermeta::reflection::TypeDefinition

Abstracts the definition of generic type definitions (i.e. type definitions that
can be parameterized), namely, for ClassDefinition and ModelTypeDefinition.

Alias Integer

kermeta::reflection::Integer
Alias for kermeta::standard::Integer

Operation add

operation add(obj : kermeta::reflection::Object) : Void
add an object to the model. According to the ModelType, the typechecker will statically verify if the object can be added or not

Operation addAllCompatible

operation addAllCompatible(objectsToAdd : kermeta::standard::Collection<kermeta::reflection::Object>) : kermeta::standard::Collection<kermeta::reflection::Object>
add all the Object of the collection that are copmpatible with the ModelDefinition. Other objects are ignored.
Returns the list of Object that have been added (One can check that some element have been ignored or not)

Operation addCompatible

operation addCompatible(objectsToAdd : kermeta::reflection::Object) : kermeta::reflection::Object
add the Object if it is copmpatible with the ModelDefinition. Other objects are ignored.
Returns the object if it has been added (One can check that some element have been ignored or not)
return Void if not added

Operation filter

operation filter(vtype : kermeta::reflection::Type) : set kermeta::reflection::Object[0..*]
returns a set of all the elements of the model that are instance of the given Type

Operation remove

operation remove(obj : kermeta::reflection::Object) : Void
remove an object from the model

Property contents

reference contents: set kermeta::reflection::Object[0..*] readonly
Contents of this model ...

Class Model

kermeta::reflection::Model inherits kermeta::reflection::Object
Is the holder of a set of model elements (Object) that are compatible with the ModelType that has
instanciated this Model.

Operation isModelTypeOf

operation isModelTypeOf(model : kermeta::reflection::Model) : kermeta::reflection::Boolean
Undocumented

Operation new

operation new() : kermeta::reflection::Model
Undocumented

Property ownedTypeDefinition

property ownedTypeDefinition: set kermeta::reflection::TypeDefinition[0..*] readonly
Undocumented

Class ModelType

kermeta::reflection::ModelType inherits kermeta::reflection::ParameterizedType
Type corresponding to the use of a ModelTypeDefinition

Class ModelTypeDefinition

kermeta::reflection::ModelTypeDefinition inherits kermeta::reflection::GenericTypeDefinition, kermeta::reflection::TypeDefinitionContainer
Definition for a model type

Class ModelTypeVariable

kermeta::reflection::ModelTypeVariable inherits kermeta::reflection::TypeVariable, kermeta::reflection::VirtualTypeContainer
See inherited classes.

Property isOrdered

attribute isOrdered: kermeta::reflection::Boolean
Undocumented

Property isUnique

attribute isUnique: kermeta::reflection::Boolean
Undocumented

Property lower

attribute lower: kermeta::reflection::Integer
Undocumented

Property upper

attribute upper: kermeta::reflection::UnlimitedNatural
Undocumented

Class MultiplicityElement

kermeta::reflection::MultiplicityElement inherits kermeta::reflection::TypedElement
Model elements with a multiplicity [lower..upper] inherit this class

Operation qualifiedName

operation qualifiedName() : kermeta::reflection::String
Returns the qualified name of this named element. Qualified name is
the list of the names of the packages hierarchically ordered, delimited by
a "::", followed by the name of this named element.

Property name

attribute name: kermeta::reflection::String[1..1]
Name of this named element

Class NamedElement

kermeta::reflection::NamedElement inherits kermeta::reflection::Object
Any element that contain a name (example : Operation, Property) inherit this
class.

Operation checkAllInvariants

operation checkAllInvariants() : Void
Undocumented

Operation checkInvariants

operation checkInvariants() : Void
Undocumented

Operation container

operation container() : kermeta::reflection::Object
Undocumented

Operation equals

operation equals(element : kermeta::reflection::Object) : kermeta::reflection::Boolean
Undocumented

Operation freeze

operation freeze() : Void
Undocumented

Operation get

operation get(~property : kermeta::reflection::Property) : kermeta::reflection::Object

Returns the instances of the given property for this Object.

Example :

class A { reference attr : String }

Using A :

operation getAProp() is do
var a : A
var s : String
var the_attr : Property init self.getMetaClass.ownedAttribute.one
s ?= a.get(the_attr)
end

The user has to cast
the result of this method according to the type and the upper multiplicity
of this property. If upper multiplicity > 1, than the effective type of the
result is a Sequence<ThePropertyName>. Otherwise, the type corresponds to
the name of the given Property (i.e the type of the property instance).

Operation getMetaClass

operation getMetaClass() : kermeta::reflection::Class
Undocumented

Operation isFrozen

operation isFrozen() : kermeta::reflection::Boolean
Undocumented

Operation isKindOf

operation isKindOf(cl : kermeta::reflection::Class) : kermeta::reflection::Boolean
Check if the current object is an instance of the given class.

Operation isNotEqual

operation isNotEqual(element : kermeta::reflection::Object) : kermeta::reflection::Boolean
Undocumented

Operation isNotSameAs

operation isNotSameAs(element : kermeta::reflection::Object) : kermeta::reflection::Boolean
Undocumented

Operation isSameAs

operation isSameAs(element : kermeta::reflection::Object) : kermeta::reflection::Boolean
isSameAs operation checks if both objects have the same id

Operation isSet

operation isSet(~property : kermeta::reflection::Property) : kermeta::reflection::Boolean
Undocumented

Operation isVoid

operation isVoid() : kermeta::reflection::Boolean
Undocumented

Operation oid

operation oid() : kermeta::reflection::Integer
Undocumented

Operation set

operation ~set(~property : kermeta::reflection::Property, element : kermeta::reflection::Object) : Void
Undocumented

Operation toString

operation toString() : kermeta::reflection::String
Returns the String representation of this class.
Note : throws an exception if this class has no classDefinition
or if the classDefinition is not well constructed.

Operation unset

operation unset(~property : kermeta::reflection::Property) : Void
Undocumented

Property tag

reference tag: set kermeta::reflection::Tag[0..*]#object
Tags are used to put comments/documentation

Class Object

kermeta::reflection::Object

Object type : all entities of Kermeta metamodel explicitely inherit Object.

Class ObjectTypeVariable

kermeta::reflection::ObjectTypeVariable inherits kermeta::reflection::TypeContainer, kermeta::reflection::TypeVariable
See inherited classes.

Property isAbstract

attribute isAbstract: kermeta::reflection::Boolean
Undocumented

Property ownedParameter

attribute ownedParameter: set kermeta::reflection::Parameter[0..*]#~operation
Undocumented

Property owningClass

reference owningClass: kermeta::reflection::ClassDefinition#ownedOperation
Undocumented

Property post

attribute post: set kermeta::reflection::Constraint[0..*]#postOwner
Undocumented

Property pre

attribute pre: set kermeta::reflection::Constraint[0..*]#preOwner
Undocumented

Property raisedException

reference raisedException: set kermeta::reflection::Type[0..*]
Undocumented

Property superOperation

reference superOperation: kermeta::reflection::Operation
Undocumented

Property typeParameter

reference typeParameter: set kermeta::reflection::TypeVariable[0..*]
Undocumented

Class Operation

kermeta::reflection::Operation inherits kermeta::reflection::MultiplicityElement
Every one knows what an operation is.

Property nestedPackage

attribute nestedPackage: set kermeta::reflection::Package[0..*]#nestingPackage
Undocumented

Property nestingPackage

reference nestingPackage: kermeta::reflection::Package#nestedPackage
Undocumented

Property uri

attribute uri: kermeta::reflection::String
Undocumented

Class Package

kermeta::reflection::Package inherits kermeta::reflection::TypeDefinitionContainer

Package in kermeta. Each kermeta model must have a root package.

Property operation

reference operation: kermeta::reflection::Operation#ownedParameter
Undocumented

Class Parameter

kermeta::reflection::Parameter inherits kermeta::reflection::MultiplicityElement
Definition for operation parameter

Property typeDefinition

reference typeDefinition: kermeta::reflection::GenericTypeDefinition[1..1]
Undocumented

Property typeParamBinding

attribute typeParamBinding: set kermeta::reflection::TypeVariableBinding[0..*]
Undocumented

Property virtualTypeBinding

attribute virtualTypeBinding: set kermeta::reflection::TypeVariableBinding[0..*]
Undocumented

Class ParameterizedType

kermeta::reflection::ParameterizedType inherits kermeta::reflection::Type
Abstraction for Parameterized types, namely, Class and ModelType

Property instanceType

reference instanceType: kermeta::reflection::Type
Undocumented

Class PrimitiveType

kermeta::reflection::PrimitiveType inherits kermeta::reflection::TypeContainer, kermeta::reflection::DataType
The class definition for kermeta aliases. Above statement defines a primitive
type called MyString, which instanceType is kermeta::standard::String
alias MyString : kermeta::standard::String

Property type

reference type: set kermeta::reflection::Type[1..*]
Undocumented

Class ProductType

kermeta::reflection::ProductType inherits kermeta::reflection::TypeContainer, kermeta::reflection::Type
See inherited classes.

Property default

attribute default: kermeta::reflection::String
Undocumented

Property isComposite

attribute isComposite: kermeta::reflection::Boolean
Undocumented

Property isDerived

attribute isDerived: kermeta::reflection::Boolean
Undocumented

Property isID

attribute isID: kermeta::reflection::Boolean
Undocumented

Property isReadOnly

attribute isReadOnly: kermeta::reflection::Boolean
Undocumented

Property opposite

reference opposite: kermeta::reflection::Property
Undocumented

Property owningClass

reference owningClass: kermeta::reflection::ClassDefinition#ownedAttribute
Undocumented

Class Property

kermeta::reflection::Property inherits kermeta::reflection::MultiplicityElement
Class representing the property definition. Kermeta<->Ecore equivalence:
- Property with isComposite == true or with type is a base type (String, Integer, Boolean) : EAttribute
- Property with isComposite == false : EReference

Class SelfType

kermeta::reflection::SelfType inherits kermeta::reflection::Type

Self type : DEPRECATED

Alias String

kermeta::reflection::String
Undocumented

Property name

attribute name: kermeta::reflection::String
Undocumented

Property object

reference object: set kermeta::reflection::Object[1..*]#tag
Undocumented

Property value

attribute value: kermeta::reflection::String
Undocumented

Class Tag

kermeta::reflection::Tag inherits kermeta::reflection::Object
Tag is intended to be used to add documentation on a
model element, or add some textual information that cannot be expressed
with any model element definition.

Operation isInstance

operation isInstance(element : kermeta::reflection::Object) : kermeta::reflection::Boolean
Undocumented

Operation isSubType

operation isSubType(element : kermeta::reflection::Type) : kermeta::reflection::Boolean
Undocumented

Property typeContainer

reference typeContainer: kermeta::reflection::TypeContainer[1..1]#containedType
Undocumented

Class Type

kermeta::reflection::Type inherits kermeta::reflection::Object
Base class definition for the use of a type.

Property containedType

attribute containedType: set kermeta::reflection::Type[0..*]#typeContainer
Undocumented

Class TypeContainer

kermeta::reflection::TypeContainer inherits kermeta::reflection::Object
Phantom class : EMF reflexive editors need that any element of a metamodel
has a direct or indirect containment relationship with the root model element of
the metamodel. This class resolves this technical requirement.

Class TypeDefinition

kermeta::reflection::TypeDefinition inherits kermeta::reflection::NamedElement

Abstraction for type definitions (ClassDefinition, ModelTypeDefinition, DataType inherit
this class)

Property ownedTypeDefinition

attribute ownedTypeDefinition: set kermeta::reflection::TypeDefinition[0..*]
Undocumented

Class TypeDefinitionContainer

kermeta::reflection::TypeDefinitionContainer inherits kermeta::reflection::NamedElement

Abstraction of the notion of containment for type definitions. Now, kermeta metamodel contains one container
element, that is Package. In a later release, ModelTypeDefinition will be the main container for type and
package definition.

Property supertype

reference supertype: kermeta::reflection::Type
Undocumented

Class TypeVariable

kermeta::reflection::TypeVariable inherits kermeta::reflection::TypeContainer, kermeta::reflection::Type, kermeta::reflection::NamedElement
Definition of a type variable for generic types :
in class definition
class AClass<X,Y> {}
, X and Y are type variables.

Property type

reference type: kermeta::reflection::Type[1..1]
Undocumented

Property variable

reference variable: kermeta::reflection::TypeVariable[1..1]
Undocumented

Class TypeVariableBinding

kermeta::reflection::TypeVariableBinding inherits kermeta::reflection::TypeContainer, kermeta::reflection::Object
See inherited classes.

Property type

reference type: kermeta::reflection::Type
The type of this model element

Class TypedElement

kermeta::reflection::TypedElement inherits kermeta::reflection::TypeContainer, kermeta::reflection::NamedElement
Abstraction of the notion of typed element : each element
that is typed inherits this class.

Alias UnlimitedNatural

kermeta::reflection::UnlimitedNatural
Alias for kermeta::standard::UnlimitedNatural

Property classDefinition

reference classDefinition: kermeta::reflection::ClassDefinition[1..1]
Undocumented

Property modelType

reference modelType: kermeta::reflection::VirtualTypeContainer[1..1]#virtualType
Undocumented

Property typeParamBinding

reference typeParamBinding: kermeta::reflection::TypeVariableBinding[0..*]
Undocumented

Class VirtualType

kermeta::reflection::VirtualType inherits kermeta::reflection::ObjectTypeVariable
See inherited classes.

Property virtualType

attribute virtualType: set kermeta::reflection::VirtualType[0..*]#modelType
Undocumented

Class VirtualTypeContainer

kermeta::reflection::VirtualTypeContainer inherits kermeta::reflection::Object
See inherited classes.

Class VoidType

kermeta::reflection::VoidType inherits kermeta::reflection::Type
Class definition for the
Void
type

Package utils

kermeta::utils

Contains special classes (Hashtable, Stack) that are not contained in Kermeta
metamodel

Operation clear

operation clear() : Void

Remove all elements from the Hashtable

Operation containsKey

operation containsKey(key : K) : kermeta::standard::Boolean
Tests if a key is present in the table

Operation getValue

operation getValue(key : K) : V

returns the value for key 'key'

Operation keyIterator

operation keyIterator() : kermeta::standard::Iterator<K>

returns an iterator on the keys of the map

Operation keys

operation keys() : kermeta::standard::Set<K>
Return the keys of the Hashtable

Operation put

operation put(key : K, ~value : V) : Void

Adds a entry in the Hashtable

Operation remove

operation remove(key : K) : Void

Removes the entry which key equals 'key'

Operation size

operation size() : kermeta::standard::Integer

returns size of the map

Operation valueIterator

operation valueIterator() : kermeta::standard::Iterator<V>

returns an iterator on the keys of the map

Operation values

operation values() : kermeta::standard::Collection<V>
Return the keys of the Hashtable

Class Hashtable

kermeta::utils::Hashtable<K, V>

An implementation of hashtable

Operation peek

operation peek() : G

Get the element at the top of the stack

Operation pop

operation pop() : G

Get the element at the top of the stack and
removes it from the stack

Operation push

operation push(element : G) : Void

Push an element in the stack

Class Stack

kermeta::utils::Stack<G> inherits kermeta::standard::Sequence<G>

An implementation of stack

Package standard

kermeta::standard

Contains Collections and primitive types, i.e the base types like String,
Integer, etc.

$Id: java.kmt,v 1.1 2006/10/04 11:12:43 dvojtise Exp $
Contains types dedicated to dealing with java objects

Operation asSet

operation asSet() : kermeta::standard::Set<G>
Undocumented

Operation equals

method equals(element : kermeta::standard::Object) : kermeta::standard::Boolean from kermeta::reflection::Object
Undocumented

Operation intersection

operation intersection(elements : kermeta::standard::Bag<G>) : kermeta::standard::Bag<G>
returns the intersection of elements and the Bag

Operation intersectionWithSet

operation intersectionWithSet(elements : kermeta::standard::Set<G>) : kermeta::standard::Set<G>
returns the intersection of a set of elements and the Bag

Operation union

operation union(elements : kermeta::standard::Collection<G>) : kermeta::standard::Bag<G>
returns the union of elements and the Bag

Class Bag

kermeta::standard::Bag<G> inherits kermeta::standard::Collection<G>

A Bag is a concrete implementation of a Collection

Operation and

operation ~and(other : kermeta::standard::Boolean) : kermeta::standard::Boolean
Undocumented

Operation equals

method equals(other : kermeta::standard::Object) : kermeta::standard::Boolean from kermeta::reflection::Object
Undocumented

Operation implies

operation implies(other : kermeta::standard::Boolean) : kermeta::standard::Boolean
Undocumented

Operation isNotSameAs

method isNotSameAs(element : kermeta::standard::Object) : kermeta::standard::Boolean from kermeta::standard::PrimitiveType
Undocumented

Operation isSameAs

method isSameAs(element : kermeta::standard::Object) : kermeta::standard::Boolean from kermeta::standard::PrimitiveType
Undocumented

Operation nand

operation nand(other : kermeta::standard::Boolean) : kermeta::standard::Boolean
Undocumented

Operation not

operation ~not() : kermeta::standard::Boolean
Undocumented

Operation or

operation ~or(other : kermeta::standard::Boolean) : kermeta::standard::Boolean
Undocumented

Operation toString

method toString() : kermeta::standard::String from kermeta::reflection::Object
Undocumented

Operation xor

operation xor(other : kermeta::standard::Boolean) : kermeta::standard::Boolean
Undocumented

Class Boolean

kermeta::standard::Boolean inherits kermeta::standard::PrimitiveType

The Boolean type

Operation compareTo

method compareTo(other : kermeta::standard::Object) : kermeta::standard::Integer from kermeta::standard::Comparable
Undocumented

Operation equals

method equals(other : kermeta::standard::Object) : kermeta::standard::Boolean from kermeta::reflection::Object
Undocumented

Operation isNotSameAs

method isNotSameAs(element : kermeta::standard::Object) : kermeta::standard::Boolean from kermeta::standard::PrimitiveType
Undocumented

Operation isSameAs

method isSameAs(element : kermeta::standard::Object) : kermeta::standard::Boolean from kermeta::standard::PrimitiveType
Undocumented

Operation toString

method toString() : kermeta::standard::String from kermeta::reflection::Object
Undocumented

Class Character

kermeta::standard::Character inherits kermeta::standard::ValueType, kermeta::standard::Comparable

The class Character

Operation add

operation add(element : G) : Void

Add an element in the collection

The method 'add' adds the element in the Set
only if it is not yet in the set

Select the method add from Set
Add an element to this collection and update its opposite property if it exists.

Operation addAll

operation addAll(elements : kermeta::standard::Collection<G>) : Void

Add all elements from the collection elements in the collection

Operation clear

operation clear() : Void

Remove all elements from the collection

Operation collect

operation collect<T>(collector : < G->T >) : kermeta::standard::Sequence<T>

returns a new Collection with the results of running collector
once for every element in self.

Operation contains

operation contains(element : G) : kermeta::standard::Boolean

returns true if the collection contains element

Operation containsAll

operation containsAll(elements : kermeta::standard::Collection<G>) : kermeta::standard::Boolean

returns true if the collection contains all elements

Operation count

operation count(element : G) : kermeta::standard::Integer

Returns the nb of instances of 'element' in the collection

Operation detect

operation detect(detector : < G->kermeta::standard::Boolean >) : G

Passes each element of the collection to detector.
Returns the first element for which detector is not false.
Returns void if no object matches.

Operation each

operation each(func : < G->kermeta::standard::Object >) : Void

runs func on each element of the collection

Operation empty

operation empty() : kermeta::standard::Boolean

returns true if the collection is empty

Operation excludes

operation excludes(element : G) : kermeta::standard::Boolean

Returns true if the collection does not contain element

Operation excludesAll

operation excludesAll(elements : kermeta::standard::Collection<G>) : kermeta::standard::Boolean

Returns true if the collection contains none of elements

Operation exists

operation exists(func : < G->kermeta::standard::Boolean >) : kermeta::standard::Boolean

checks that the condition is true for at least one element of the collection
returns false if the collection is empty

Operation forAll

operation forAll(func : < G->kermeta::standard::Boolean >) : kermeta::standard::Boolean

checks that the condition is true on all the element of the collection
returns true if the collection is empty

Operation iterator

operation iterator() : kermeta::standard::Iterator<G>

returns an iterator on the collection

Operation one

operation one() : G

returns an element from the collection or void
if the collection is empty

Operation reject

operation reject(rejector : < G->kermeta::standard::Boolean >) : kermeta::standard::Sequence<G>

Passes each element of the collection to rejector.
returns a Collection for all elements for which rejector is false

Operation remove

operation remove(element : G) : Void

Remove an element from the collection

Operation select

operation ~select(selector : < G->kermeta::standard::Boolean >) : kermeta::standard::Sequence<G>

Passes each element of the collection to selector.
returns a Collection for all elements for which selector is true

Operation size

operation size() : kermeta::standard::Integer

returns the number of elements in the collection

Class Collection

kermeta::standard::Collection<G>

Collection is the root abstract class for all kermeta collections

Operation compareTo

operation compareTo(other : kermeta::standard::Object) : kermeta::standard::Integer

This method should be implemented by any class that inherits
from Comparable.
returns 0 if self = other
returns > 0 if self > other
returns < 0 if self < other

Comparison

Comparaison

Comparaison

Operation isGreater

operation isGreater(other : kermeta::standard::Object) : kermeta::standard::Boolean

return true if self > other

return true if self > other

Operation isGreaterOrEqual

operation isGreaterOrEqual(other : kermeta::standard::Object) : kermeta::standard::Boolean

return true if self >= other

return true if self >= other

Operation isLower

operation isLower(other : kermeta::standard::Object) : kermeta::standard::Boolean

return true if self < other

return true if self < other

Operation isLowerOrEqual

operation isLowerOrEqual(other : kermeta::standard::Object) : kermeta::standard::Boolean

return true if self <= other

return true if self <= other

Class Comparable

kermeta::standard::Comparable

The abstract class Comparable defines a set of operation
to compare instances of a class.
Sub-classes only has to implement abstract operation compareTo.
All other methods are defined w.r.t. the compareTo operation

Operation compareTo

method compareTo(other : kermeta::standard::Object) : kermeta::standard::Integer from kermeta::standard::Comparable
Undocumented

Operation div

operation div(other : kermeta::standard::Integer) : kermeta::standard::Integer

returns self / other

Operation equals

method equals(other : kermeta::standard::Object) : kermeta::standard::Boolean from kermeta::reflection::Object
Undocumented

Operation isGreater

method isGreater(other : kermeta::standard::Object) : kermeta::standard::Boolean from kermeta::standard::Comparable
Undocumented

Operation isGreaterOrEqual

method isGreaterOrEqual(other : kermeta::standard::Object) : kermeta::standard::Boolean from kermeta::standard::Comparable
Undocumented

Operation isLower

method isLower(other : kermeta::standard::Object) : kermeta::standard::Boolean from kermeta::standard::Comparable
Undocumented

Operation isLowerOrEqual

method isLowerOrEqual(other : kermeta::standard::Object) : kermeta::standard::Boolean from kermeta::standard::Comparable
Undocumented

Operation isNotSameAs

method isNotSameAs(element : kermeta::standard::Object) : kermeta::standard::Boolean from kermeta::standard::PrimitiveType
Undocumented

Operation isSameAs

method isSameAs(element : kermeta::standard::Object) : kermeta::standard::Boolean from kermeta::standard::PrimitiveType
Undocumented

Operation minus

operation minus(other : kermeta::standard::Integer) : kermeta::standard::Integer

returns self - other

Operation mod

operation mod(other : kermeta::standard::Integer) : kermeta::standard::Integer

returns self modulo other

Operation mult

operation mult(other : kermeta::standard::Integer) : kermeta::standard::Integer

returns self * other

Operation plus

operation plus(other : kermeta::standard::Integer) : kermeta::standard::Integer

returns self + other

Operation times

operation times(body : < kermeta::standard::Integer->kermeta::standard::Object >) : Void

Iteration

Operation toReal

operation toReal() : kermeta::standard::Real

Convert self as a Real

Operation toString

method toString() : kermeta::standard::String from kermeta::reflection::Object
Undocumented

Operation uminus

operation uminus() : kermeta::standard::Integer

returns -self

Class Integer

kermeta::standard::Integer inherits kermeta::standard::Numeric

The class Integer

Operation hasNext

operation hasNext() : kermeta::standard::Boolean

returns true if the iterator has a next element

Operation isOff

operation isOff() : kermeta::standard::Boolean

Returns true if the iterator is on the last element
i.e. returns not self.hasNext()

Operation next

operation next() : G

returns the next element of the iterator

Class Iterator

kermeta::standard::Iterator<G>

Iterator

Class NotComparableException

kermeta::standard::NotComparableException inherits kermeta::exceptions::Exception
See inherited classes.

Class Numeric

kermeta::standard::Numeric inherits kermeta::standard::Comparable, kermeta::standard::ValueType

The abstract class Numeric is the root class for all
numeric types

Alias Object

kermeta::standard::Object
Undocumented

Operation addAt

operation addAt(index : kermeta::standard::Integer, element : G) : Void

adds element in the OrderedCollection at index

Overrides addAt to ensure element uniqueness

Operation elementAt

operation elementAt(index : kermeta::standard::Integer) : G

returns the element at index in the OrderedCollection

Operation equals

method equals(element : kermeta::standard::Object) : kermeta::standard::Boolean from kermeta::reflection::Object
Undocumented

Operation first

operation first() : G
returns the first element in the OrderedCollection

Operation indexOf

operation indexOf(element : G) : kermeta::standard::Integer
returns the index of the first element instance in the OrderedCollection

Operation last

operation last() : G
returns the last element in the OrderedCollection

Operation removeAt

operation removeAt(index : kermeta::standard::Integer) : Void

removes the element at index of the OrderedCollection

Class OrderedCollection

kermeta::standard::OrderedCollection<G> inherits kermeta::standard::Collection<G>

An OrderedCollection is the root abstract class for all ordered Collections.

Operation add

method add(element : G) : Void from kermeta::standard::Set
Undocumented

Operation addAt

method addAt(index : kermeta::standard::Integer, element : G) : Void from kermeta::standard::OrderedCollection
Undocumented

Operation equals

method equals(element : kermeta::standard::Object) : kermeta::standard::Boolean from kermeta::standard::OrderedCollection
Undocumented

Operation subSet

operation subSet(min : kermeta::standard::Integer, max : kermeta::standard::Integer) : kermeta::standard::OrderedSet<G>
Undocumented

Class OrderedSet

kermeta::standard::OrderedSet<G> inherits kermeta::standard::Set<G>, kermeta::standard::OrderedCollection<G>

an OrderedSet is a Set that contained ordered distinct elements, accessible by
their index. (see AddAt method)

Operation isNotSameAs

method isNotSameAs(element : kermeta::standard::Object) : kermeta::standard::Boolean from kermeta::reflection::Object
Undocumented

Operation isSameAs

method isSameAs(element : kermeta::standard::Object) : kermeta::standard::Boolean from kermeta::reflection::Object
Undocumented

Class PrimitiveType

kermeta::standard::PrimitiveType

The PrimitiveType redefine isSameAs operation from Object class to use in an easier way
primitive types. Comparing two primitive types value can be written as x == y

Operation div

operation div(other : kermeta::standard::Numeric) : kermeta::standard::Integer

returns self / other

Operation isNotSameAs

method isNotSameAs(element : kermeta::standard::Object) : kermeta::standard::Boolean from kermeta::standard::PrimitiveType
Undocumented

Operation isSameAs

method isSameAs(element : kermeta::standard::Object) : kermeta::standard::Boolean from kermeta::standard::PrimitiveType
Undocumented

Operation minus

operation minus(other : kermeta::standard::Numeric) : kermeta::standard::Integer

returns self - other

Operation mult

operation mult(other : kermeta::standard::Numeric) : kermeta::standard::Integer

returns self * other

Operation plus

operation plus(other : kermeta::standard::Numeric) : kermeta::standard::Integer

returns self + other

Operation toInteger

operation toInteger() : kermeta::standard::Integer

Convert self as a Real

Operation toString

method toString() : kermeta::standard::String from kermeta::reflection::Object
Undocumented

Operation uminus

operation uminus() : kermeta::standard::Numeric

returns -self

Class Real

kermeta::standard::Real inherits kermeta::standard::Numeric

class Real

Operation equals

method equals(element : kermeta::standard::Object) : kermeta::standard::Boolean from kermeta::standard::OrderedCollection
Undocumented

Operation subSequence

operation subSequence(min : kermeta::standard::Integer, max : kermeta::standard::Integer) : kermeta::standard::Sequence<G>
Undocumented

Class Sequence

kermeta::standard::Sequence<G> inherits kermeta::standard::Bag<G>, kermeta::standard::OrderedCollection<G>

A Sequence is an ordered collection of elements

Operation add

method add(element : G) : Void from kermeta::standard::Collection
Undocumented

Operation equals

method equals(element : kermeta::standard::Object) : kermeta::standard::Boolean from kermeta::reflection::Object
Undocumented

Operation intersection

operation intersection(elements : kermeta::standard::Collection<G>) : kermeta::standard::Set<G>
returns the intersection of elements and the Set

Operation minus

operation minus(elements : kermeta::standard::Set<G>) : kermeta::standard::Set<G>
returns the difference of elements and the Set: the elements of the Set
that are not in elements

Operation union

operation union(elements : kermeta::standard::Set<G>) : kermeta::standard::Set<G>
returns the union of a set of elements and the Set

Operation unionWithBag

operation unionWithBag(elements : kermeta::standard::Bag<G>) : kermeta::standard::Bag<G>
returns the union of a bag of elements and the Set

Class Set

kermeta::standard::Set<G> inherits kermeta::standard::Collection<G>

A Set is a collection that contains distinct elements

Operation append

operation append(other : kermeta::standard::String) : Void

Appends other at the end of self

Operation compareTo

method compareTo(other : kermeta::standard::Object) : kermeta::standard::Integer from kermeta::standard::Comparable
Undocumented

Operation elementAt

operation elementAt(index : kermeta::standard::Integer) : kermeta::standard::Character

returns the character at index in the String

Operation equals

method equals(other : kermeta::standard::Object) : kermeta::standard::Boolean from kermeta::reflection::Object
Undocumented

Operation indexOf

operation indexOf(str : kermeta::standard::String) : kermeta::standard::Integer

returns the index within this string of the first
occurrence of the specified substring

Operation isNotSameAs

method isNotSameAs(element : kermeta::standard::Object) : kermeta::standard::Boolean from kermeta::standard::PrimitiveType
Undocumented

Operation isSameAs

method isSameAs(element : kermeta::standard::Object) : kermeta::standard::Boolean from kermeta::standard::PrimitiveType
Undocumented

Operation plus

operation plus(other : kermeta::standard::String) : kermeta::standard::String

returns a new string self + other

Operation replace

operation replace(str1 : kermeta::standard::String, str2 : kermeta::standard::String) : kermeta::standard::String
Undocumented

Operation size

operation size() : kermeta::standard::Integer
Undocumented

Operation substring

operation substring(startIndex : kermeta::standard::Integer, endIndex : kermeta::standard::Integer) : kermeta::standard::String

returns a new string that is a substring of this string

Operation toString

method toString() : kermeta::standard::String from kermeta::reflection::Object
Undocumented

Class String

kermeta::standard::String inherits kermeta::standard::ValueType, kermeta::standard::Comparable

The class String

Operation toString

method toString() : kermeta::standard::String from kermeta::reflection::Object
Undocumented

Class UnknownJavaObject

kermeta::standard::UnknownJavaObject

This special object is used to represent java object that cannot be concretly used with kermeta
the only actions possible on these objects are : assignment and passing them as parameter

Alias UnlimitedNatural

kermeta::standard::UnlimitedNatural

Unlimited natural is used for reflection.
It is mapped to integer.equals().
Any negative number is interpreted as '*'

Class ValueType

kermeta::standard::ValueType inherits kermeta::standard::PrimitiveType

The abstract class ValueType does not contain any feature
but any instance of a sub-class of ValueType will be passed by value
instead of by reference for any other objects.

Operation isVoid

method isVoid() : kermeta::standard::Boolean from kermeta::reflection::Object
Undocumented

Operation toString

method toString() : kermeta::standard::String from kermeta::reflection::Object
Undocumented

Class Void

kermeta::standard::~Void

The class Void
By convention it is a sub-type of everything

Package behavior

kermeta::language::behavior

Contains all the classes that define the behavior of Kermeta (i.e the model representation
of operation bodies). It is the definition, in kermeta language, of the behavior part of the kermeta
metamodel, viewed as a model.
You can also find some information about the behavior package here : KermetaManual

Operation acceptKMExpressionVisitor

method acceptKMExpressionVisitor<ContextType, ResultType>(visitor : kermeta::language::behavior::KMExpressionVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::behavior::KMExpressionVisitable
Undocumented

Property isCast

attribute isCast: kermeta::reflection::Boolean
Undocumented

Property target

attribute target: kermeta::language::behavior::CallExpression[1..1]
Undocumented

Property value

attribute value: kermeta::language::behavior::Expression[1..1]
Undocumented

Class Assignment

kermeta::language::behavior::Assignment inherits kermeta::language::behavior::Expression, kermeta::language::behavior::KMExpressionVisitable

Assignment is the model-element representation of the assignment statement x := y

Operation acceptKMExpressionVisitor

method acceptKMExpressionVisitor<ContextType, ResultType>(visitor : kermeta::language::behavior::KMExpressionVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::behavior::KMExpressionVisitable
Undocumented

Property rescueBlock

attribute rescueBlock: set kermeta::language::behavior::Rescue[0..*]
Undocumented

Property statement

attribute statement: set kermeta::language::behavior::Expression[0..*]
Undocumented

Class Block

kermeta::language::behavior::Block inherits kermeta::language::behavior::Expression, kermeta::language::behavior::KMExpressionVisitable

Block is the model-element representation for the do...end block.

Operation acceptKMExpressionVisitor

method acceptKMExpressionVisitor<ContextType, ResultType>(visitor : kermeta::language::behavior::KMExpressionVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::behavior::KMExpressionVisitable
Undocumented

Property value

attribute value: kermeta::reflection::Boolean
Undocumented

Class BooleanLiteral

kermeta::language::behavior::BooleanLiteral inherits kermeta::language::behavior::Literal, kermeta::language::behavior::KMExpressionVisitable
This expression is a literal representing a Boolean value, typically : true or false keyword

Property name

attribute name: kermeta::reflection::String
Undocumented

Property parameters

attribute parameters: set kermeta::language::behavior::Expression[0..*]
Undocumented

Property staticTypeVariableBindings

reference staticTypeVariableBindings: kermeta::language::structure::Type[0..*]
Undocumented

Class CallExpression

kermeta::language::behavior::CallExpression inherits kermeta::language::behavior::Expression

Any callable expression inherits this class, e.g :
- variable call
- feature call ( a.b : b is a feature call)


Operation acceptKMExpressionVisitor

method acceptKMExpressionVisitor<ContextType, ResultType>(visitor : kermeta::language::behavior::KMExpressionVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::behavior::KMExpressionVisitable
Undocumented

Property isAtpre

attribute isAtpre: kermeta::reflection::Boolean
Tells wether this CallFeature represents a call to @pre in a postcondition

Property staticEnumLiteral

reference staticEnumLiteral: kermeta::language::structure::EnumerationLiteral
Undocumented

Property staticOperation

reference staticOperation: kermeta::language::structure::Operation
Undocumented

Property staticProperty

reference staticProperty: kermeta::language::structure::Property
Undocumented

Property target

attribute target: kermeta::language::behavior::Expression
Undocumented

Class CallFeature

kermeta::language::behavior::CallFeature inherits kermeta::language::behavior::CallExpression, kermeta::language::behavior::KMExpressionVisitable

CallFeature is the model element that refers to the use of a feature, i.e either
a property or an operation in a statement. In stdio.writeln("hello"),
writeln is a CallFeature.

Operation acceptKMExpressionVisitor

method acceptKMExpressionVisitor<ContextType, ResultType>(visitor : kermeta::language::behavior::KMExpressionVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::behavior::KMExpressionVisitable
Undocumented

Class CallResult

kermeta::language::behavior::CallResult inherits kermeta::language::behavior::CallVariable, kermeta::language::behavior::KMExpressionVisitable
This class represents a call to the special internal variable "result" that is used to store the return value of any operation

Operation acceptKMExpressionVisitor

method acceptKMExpressionVisitor<ContextType, ResultType>(visitor : kermeta::language::behavior::KMExpressionVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::behavior::KMExpressionVisitable
Undocumented

Class CallSuperOperation

kermeta::language::behavior::CallSuperOperation inherits kermeta::language::behavior::CallExpression, kermeta::language::behavior::KMExpressionVisitable
This class represents a call to the operataion in the parent class
In the following example, the type of super(element) is CallSuperOperation:

class ParentClass {
operation op(element : Integer) : Integer is do
result := element + 1
end
}

class ChildClass {
method op(element : Integer) : Integer is do
result := super(element)
end
}

Operation acceptKMExpressionVisitor

method acceptKMExpressionVisitor<ContextType, ResultType>(visitor : kermeta::language::behavior::KMExpressionVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::behavior::KMExpressionVisitable
Undocumented

Class CallValue

kermeta::language::behavior::CallValue inherits kermeta::language::behavior::CallExpression, kermeta::language::behavior::KMExpressionVisitable

CallValue refers to the use of the value reserved keyword. This keyword is
only used in the body of the setter part of derived properties.

Operation acceptKMExpressionVisitor

method acceptKMExpressionVisitor<ContextType, ResultType>(visitor : kermeta::language::behavior::KMExpressionVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::behavior::KMExpressionVisitable
Undocumented

Class CallVariable

kermeta::language::behavior::CallVariable inherits kermeta::language::behavior::CallExpression, kermeta::language::behavior::KMExpressionVisitable

We call "CallVariable" the use of a variable in a statement.
in i := j + 1, i and j are 2 CallVariables.

Operation acceptKMExpressionVisitor

method acceptKMExpressionVisitor<ContextType, ResultType>(visitor : kermeta::language::behavior::KMExpressionVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::behavior::KMExpressionVisitable
Undocumented

Property condition

attribute condition: kermeta::language::behavior::Expression[1..1]
Undocumented

Property elseBody

attribute elseBody: kermeta::language::behavior::Expression
Undocumented

Property thenBody

attribute thenBody: kermeta::language::behavior::Expression[1..1]
Undocumented

Class Conditional

kermeta::language::behavior::Conditional inherits kermeta::language::behavior::Expression, kermeta::language::behavior::KMExpressionVisitable

Condition is the model-element representation for the

Operation acceptKMExpressionVisitor

method acceptKMExpressionVisitor<ContextType, ResultType>(visitor : kermeta::language::behavior::KMExpressionVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::behavior::KMExpressionVisitable
Undocumented

Class EmptyExpression

kermeta::language::behavior::EmptyExpression inherits kermeta::language::behavior::Expression, kermeta::language::behavior::KMExpressionVisitable
As suggested by its name, this class represents an expression that do nothing. Like a "nop"

Property staticType

reference staticType: kermeta::language::structure::Type
Undocumented

Class Expression

kermeta::language::behavior::Expression inherits kermeta::reflection::Object, kermeta::reflection::TypeContainer

The base class for every entity used to define a behavior in operation body.

Operation acceptKMExpressionVisitor

method acceptKMExpressionVisitor<ContextType, ResultType>(visitor : kermeta::language::behavior::KMExpressionVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::behavior::KMExpressionVisitable
Undocumented

Property value

attribute value: kermeta::reflection::Integer
Undocumented

Class IntegerLiteral

kermeta::language::behavior::IntegerLiteral inherits kermeta::language::behavior::Literal, kermeta::language::behavior::KMExpressionVisitable
This expression is a literal representing an Integer value

Operation acceptKMExpressionVisitor

method acceptKMExpressionVisitor<ContextType, ResultType>(visitor : kermeta::language::behavior::KMExpressionVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::behavior::KMExpressionVisitable
Undocumented

Property jclass

attribute jclass: kermeta::reflection::String
Undocumented

Property jmethod

attribute jmethod: kermeta::reflection::String
Undocumented

Property parameters

attribute parameters: set kermeta::language::behavior::Expression[0..*]
Undocumented

Class JavaStaticCall

kermeta::language::behavior::JavaStaticCall inherits kermeta::language::behavior::Expression, kermeta::language::behavior::KMExpressionVisitable
This class represent a call to an extern Java operation.
This Java operation must be static and have at least one RuntimeO

Operation acceptKMExpressionVisitor

operation acceptKMExpressionVisitor<ContextType, ResultType>(visitor : kermeta::language::behavior::KMExpressionVisitor<ContextType, ResultType>, context : ContextType) : ResultType
Implementation of the visitor design pattern on CallFeature objects Implementation of the visitor design pattern on CallFeature objects Implementation of the visitor design pattern on Assignment objects Implementation of the visitor design pattern on Block objects Implementation of the visitor design pattern on Conditional objects Implementation of the visitor design pattern on EmptyExpression objects Implementation of the visitor design pattern on IntegerLiteral objects Implementation of the visitor design pattern on StringLiteral objects Implementation of the visitor design pattern on BooleanLiteral objects Implementation of the visitor design pattern on TypeLiteral objects Implementation of the visitor design pattern on BooleanLiteral objects Implementation of the visitor design pattern on VoidLiteral objects

Class KMExpressionVisitable

kermeta::language::behavior::KMExpressionVisitable
All classes that can be visited using kermeta::behavior::KMExpressionVisitor must implement this class

Operation visitAssignment

operation visitAssignment(node : kermeta::language::behavior::Assignment, context : ContextType) : ResultType
Undocumented

Operation visitBlock

operation visitBlock(node : kermeta::language::behavior::Block, context : ContextType) : ResultType
Undocumented

Operation visitBooleanLiteral

operation visitBooleanLiteral(node : kermeta::language::behavior::BooleanLiteral, context : ContextType) : ResultType
Undocumented

Operation visitCallFeature

operation visitCallFeature(node : kermeta::language::behavior::CallFeature, context : ContextType) : ResultType
Undocumented

Operation visitCallResult

operation visitCallResult(node : kermeta::language::behavior::CallResult, context : ContextType) : ResultType
Undocumented

Operation visitCallSuperOperation

operation visitCallSuperOperation(node : kermeta::language::behavior::CallSuperOperation, context : ContextType) : ResultType
Undocumented

Operation visitCallValue

operation visitCallValue(node : kermeta::language::behavior::CallValue, context : ContextType) : ResultType
Undocumented

Operation visitCallVariable

operation visitCallVariable(node : kermeta::language::behavior::CallVariable, context : ContextType) : ResultType
Undocumented

Operation visitConditional

operation visitConditional(node : kermeta::language::behavior::Conditional, context : ContextType) : ResultType
Undocumented

Operation visitEmptyExpression

operation visitEmptyExpression(node : kermeta::language::behavior::EmptyExpression, context : ContextType) : ResultType
Undocumented

Operation visitIntegerLiteral

operation visitIntegerLiteral(node : kermeta::language::behavior::IntegerLiteral, context : ContextType) : ResultType
Undocumented

Operation visitJavaStaticCall

operation visitJavaStaticCall(node : kermeta::language::behavior::JavaStaticCall, context : ContextType) : ResultType
Undocumented

Operation visitLambdaExpression

operation visitLambdaExpression(node : kermeta::language::behavior::LambdaExpression, context : ContextType) : ResultType
Undocumented

Operation visitLambdaParameter

operation visitLambdaParameter(node : kermeta::language::behavior::LambdaParameter, context : ContextType) : ResultType
Undocumented

Operation visitLoop

operation visitLoop(node : kermeta::language::behavior::Loop, context : ContextType) : ResultType
Undocumented

Operation visitRaise

operation visitRaise(node : kermeta::language::behavior::Raise, context : ContextType) : ResultType
Undocumented

Operation visitRescue

operation visitRescue(node : kermeta::language::behavior::Rescue, context : ContextType) : ResultType
Undocumented

Operation visitSelfExpression

operation visitSelfExpression(node : kermeta::language::behavior::SelfExpression, context : ContextType) : ResultType
Undocumented

Operation visitStringLiteral

operation visitStringLiteral(node : kermeta::language::behavior::StringLiteral, context : ContextType) : ResultType
Undocumented

Operation visitTypeLiteral

operation visitTypeLiteral(node : kermeta::language::behavior::TypeLiteral, context : ContextType) : ResultType
Undocumented

Operation visitTypeReference

operation visitTypeReference(node : kermeta::language::behavior::TypeReference, context : ContextType) : ResultType
Undocumented

Operation visitVariableDecl

operation visitVariableDecl(node : kermeta::language::behavior::VariableDecl, context : ContextType) : ResultType
Undocumented

Operation visitVoidLiteral

operation visitVoidLiteral(node : kermeta::language::behavior::VoidLiteral, context : ContextType) : ResultType
Undocumented

Class KMExpressionVisitor

kermeta::language::behavior::KMExpressionVisitor<ContextType, ResultType>
This class implements the visitor design pattern for all the classes of this Behavior package, in particular the classes that inherits from kermeta::behavior::Expression

Operation acceptKMExpressionVisitor

method acceptKMExpressionVisitor<ContextType, ResultType>(visitor : kermeta::language::behavior::KMExpressionVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::behavior::KMExpressionVisitable
Undocumented

Property body

attribute body: kermeta::language::behavior::Expression
Undocumented

Property parameters

attribute parameters: set kermeta::language::behavior::LambdaParameter[0..*]
Undocumented

Class LambdaExpression

kermeta::language::behavior::LambdaExpression inherits kermeta::language::behavior::Expression, kermeta::language::behavior::KMExpressionVisitable

Refers to lambda expression definition (function { e | stdio.writeln(e.toString) })

Operation acceptKMExpressionVisitor

method acceptKMExpressionVisitor<ContextType, ResultType>(visitor : kermeta::language::behavior::KMExpressionVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::behavior::KMExpressionVisitable
Undocumented

Property name

attribute name: kermeta::reflection::String
Undocumented

Property type

attribute type: kermeta::language::behavior::TypeReference[1..1]
Undocumented

Class LambdaParameter

kermeta::language::behavior::LambdaParameter inherits kermeta::reflection::Object, kermeta::language::behavior::KMExpressionVisitable

Refers to parameter definition in lambda expression

Class Literal

kermeta::language::behavior::Literal inherits kermeta::language::behavior::Expression

Literal refers to String values, Integer values, etc.

Operation acceptKMExpressionVisitor

method acceptKMExpressionVisitor<ContextType, ResultType>(visitor : kermeta::language::behavior::KMExpressionVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::behavior::KMExpressionVisitable
Undocumented

Property body

attribute body: kermeta::language::behavior::Expression
Undocumented

Property initialization

attribute initialization: kermeta::language::behavior::Expression
Undocumented

Property stopCondition

attribute stopCondition: kermeta::language::behavior::Expression[1..1]
Undocumented

Class Loop

kermeta::language::behavior::Loop inherits kermeta::language::behavior::Expression, kermeta::language::behavior::KMExpressionVisitable

Loop refers to from var x : X init a until booleanCondition loop ... end

Operation acceptKMExpressionVisitor

method acceptKMExpressionVisitor<ContextType, ResultType>(visitor : kermeta::language::behavior::KMExpressionVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::behavior::KMExpressionVisitable
Undocumented

Property expression

attribute expression: kermeta::language::behavior::Expression[1..1]
Undocumented

Class Raise

kermeta::language::behavior::Raise inherits kermeta::language::behavior::Expression, kermeta::language::behavior::KMExpressionVisitable

refers to raise exception block

Operation acceptKMExpressionVisitor

method acceptKMExpressionVisitor<ContextType, ResultType>(visitor : kermeta::language::behavior::KMExpressionVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::behavior::KMExpressionVisitable
Undocumented

Property body

attribute body: set kermeta::language::behavior::Expression[1..*]
Undocumented

Property exceptionName

attribute exceptionName: kermeta::reflection::String
Undocumented

Property exceptionType

attribute exceptionType: kermeta::language::behavior::TypeReference[1..1]
Undocumented

Class Rescue

kermeta::language::behavior::Rescue inherits kermeta::reflection::Object, kermeta::language::behavior::KMExpressionVisitable

refers to rescue exception block

Operation acceptKMExpressionVisitor

method acceptKMExpressionVisitor<ContextType, ResultType>(visitor : kermeta::language::behavior::KMExpressionVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::behavior::KMExpressionVisitable
Undocumented

Class SelfExpression

kermeta::language::behavior::SelfExpression inherits kermeta::language::behavior::Expression, kermeta::language::behavior::KMExpressionVisitable

refers to self use

Operation acceptKMExpressionVisitor

method acceptKMExpressionVisitor<ContextType, ResultType>(visitor : kermeta::language::behavior::KMExpressionVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::behavior::KMExpressionVisitable
Undocumented

Property value

attribute value: kermeta::reflection::String
Undocumented

Class StringLiteral

kermeta::language::behavior::StringLiteral inherits kermeta::language::behavior::Literal, kermeta::language::behavior::KMExpressionVisitable
This expression is a literal representing a String value, typically : "my string"

Operation acceptKMExpressionVisitor

method acceptKMExpressionVisitor<ContextType, ResultType>(visitor : kermeta::language::behavior::KMExpressionVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::behavior::KMExpressionVisitable
Undocumented

Property typeref

attribute typeref: kermeta::language::behavior::TypeReference[1..1]
The type refered by this literal

Class TypeLiteral

kermeta::language::behavior::TypeLiteral inherits kermeta::language::behavior::Literal, kermeta::language::behavior::KMExpressionVisitable
This expression is a literal representing a Type.
for example, in
Integer.new
Integer is a type literal representing the type kermeta::standard::Integer

Operation acceptKMExpressionVisitor

method acceptKMExpressionVisitor<ContextType, ResultType>(visitor : kermeta::language::behavior::KMExpressionVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::behavior::KMExpressionVisitable
Undocumented

Class TypeReference

kermeta::language::behavior::TypeReference inherits kermeta::reflection::MultiplicityElement, kermeta::language::behavior::KMExpressionVisitable

TypeReference refers to the type used in a variable declaration

Operation acceptKMExpressionVisitor

method acceptKMExpressionVisitor<ContextType, ResultType>(visitor : kermeta::language::behavior::KMExpressionVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::behavior::KMExpressionVisitable
Undocumented

Property identifier

attribute identifier: kermeta::reflection::String
Undocumented

Property initialization

attribute initialization: kermeta::language::behavior::Expression[1..1]
Undocumented

Property type

attribute type: kermeta::language::behavior::TypeReference[1..1]
Undocumented

Class VariableDecl

kermeta::language::behavior::VariableDecl inherits kermeta::language::behavior::Expression, kermeta::language::behavior::KMExpressionVisitable

refers to variable declaration var x : X init a

Operation acceptKMExpressionVisitor

method acceptKMExpressionVisitor<ContextType, ResultType>(visitor : kermeta::language::behavior::KMExpressionVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::behavior::KMExpressionVisitable
Undocumented

Class VoidLiteral

kermeta::language::behavior::VoidLiteral inherits kermeta::language::behavior::Literal, kermeta::language::behavior::KMExpressionVisitable
This class is used to represent the special expression void

Package structure

kermeta::language::structure

Contains the concrete implementation (including the operation bodies)
of the classes of the kermeta::reflection package. If you need
documentation for elements marked as "Undocumented", please take a look
at the kermeta::reflection package which is more complete.

Alias Boolean

kermeta::language::structure::Boolean
Undocumented

Operation acceptKMStructureVisitor

method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitable
Undocumented

Operation clone

method clone(objectToClone : kermeta::language::structure::Object) : kermeta::language::structure::Object from kermeta::language::structure::Type
Undocumented

Operation deepClone

method deepClone(objectToClone : kermeta::language::structure::Object) : kermeta::language::structure::Object from kermeta::language::structure::Type
Undocumented

Operation equals

method equals(other : kermeta::reflection::Object) : kermeta::language::structure::Boolean from kermeta::language::structure::Object
Undocumented

Operation isInstance

method isInstance(object : kermeta::reflection::Object) : kermeta::language::structure::Boolean from kermeta::reflection::Type
Undocumented

Operation isSubType

method isSubType(object : kermeta::reflection::Type) : kermeta::language::structure::Boolean from kermeta::reflection::Type
Undocumented

Operation new

method new() : kermeta::reflection::Object from kermeta::reflection::Class
Undocumented

Class Class

kermeta::language::structure::Class inherits kermeta::language::structure::ParameterizedType, kermeta::reflection::Class, kermeta::language::structure::KMStructureVisitable
See inherited classes.

Operation acceptKMStructureVisitor

method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitable
Undocumented

Class ClassDefinition

kermeta::language::structure::ClassDefinition inherits kermeta::language::structure::TypeContainer, kermeta::language::structure::GenericTypeDefinition, kermeta::reflection::ClassDefinition, kermeta::language::structure::KMStructureVisitable
See inherited classes.

Operation acceptKMStructureVisitor

method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitable
Undocumented

Property body

attribute body: kermeta::language::behavior::Expression
Undocumented

Property language

attribute language: kermeta::language::structure::ConstraintLanguage
Undocumented

Property stereotype

attribute stereotype: kermeta::language::structure::ConstraintType
Undocumented

Class Constraint

kermeta::language::structure::Constraint inherits kermeta::reflection::Constraint, kermeta::language::structure::NamedElement, kermeta::reflection::Operation, kermeta::language::structure::KMStructureVisitable
See inherited classes.

Operation acceptKMStructureVisitor

method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitable
Undocumented

Operation clone

method clone(objectToClone : kermeta::language::structure::Object) : kermeta::language::structure::Object from kermeta::language::structure::Type
Undocumented

Class DataType

kermeta::language::structure::DataType inherits kermeta::language::structure::TypeDefinition, kermeta::language::structure::Type, kermeta::reflection::DataType, kermeta::language::structure::KMStructureVisitable

Operation acceptKMStructureVisitor

method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitable
Undocumented

Operation clone

method clone(objectToClone : kermeta::language::structure::Object) : kermeta::language::structure::Object from kermeta::language::structure::DataType
Undocumented

Class Enumeration

kermeta::language::structure::Enumeration inherits kermeta::language::structure::DataType, kermeta::reflection::Enumeration, kermeta::language::structure::KMStructureVisitable

Operation acceptKMStructureVisitor

method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitable
Undocumented

Class EnumerationLiteral

kermeta::language::structure::EnumerationLiteral inherits kermeta::language::structure::NamedElement, kermeta::reflection::EnumerationLiteral, kermeta::language::structure::KMStructureVisitable
See inherited classes.

Operation acceptKMStructureVisitor

method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitable
Undocumented

Class FunctionType

kermeta::language::structure::FunctionType inherits kermeta::language::structure::TypeContainer, kermeta::language::structure::Type, kermeta::reflection::FunctionType, kermeta::language::structure::KMStructureVisitable

Operation acceptKMStructureVisitor

method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitable
Undocumented

Class GenericTypeDefinition

kermeta::language::structure::GenericTypeDefinition inherits kermeta::language::structure::TypeDefinition, kermeta::reflection::GenericTypeDefinition, kermeta::language::structure::KMStructureVisitable
See inherited classes.

Alias Integer

kermeta::language::structure::Integer
Undocumented

Operation acceptKMStructureVisitor

operation acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType
Undocumented

Class KMStructureVisitable

kermeta::language::structure::KMStructureVisitable
All the classes defined in this kermeta::language::structure package
inherit this class. Part of Visitor pattern implementation.

Operation visitClass

operation visitClass(node : kermeta::language::structure::Class, context : ContextType) : ResultType
Undocumented

Operation visitClassDefinition

operation visitClassDefinition(node : kermeta::language::structure::ClassDefinition, context : ContextType) : ResultType
Undocumented

Operation visitConstraint

operation visitConstraint(node : kermeta::language::structure::Constraint, context : ContextType) : ResultType
Undocumented

Operation visitDataType

operation visitDataType(node : kermeta::language::structure::DataType, context : ContextType) : ResultType
Undocumented

Operation visitEnumeration

operation visitEnumeration(node : kermeta::language::structure::Enumeration, context : ContextType) : ResultType
Undocumented

Operation visitEnumerationLiteral

operation visitEnumerationLiteral(node : kermeta::language::structure::EnumerationLiteral, context : ContextType) : ResultType
Undocumented

Operation visitFunctionType

operation visitFunctionType(node : kermeta::language::structure::FunctionType, context : ContextType) : ResultType
Undocumented

Operation visitGenericTypeDefinition

operation visitGenericTypeDefinition(node : kermeta::language::structure::GenericTypeDefinition, context : ContextType) : ResultType
Undocumented

Operation visitModel

operation visitModel(node : kermeta::language::structure::Model, context : ContextType) : ResultType
Undocumented

Operation visitModelType

operation visitModelType(node : kermeta::language::structure::ModelType, context : ContextType) : ResultType
Undocumented

Operation visitModelTypeDefinition

operation visitModelTypeDefinition(node : kermeta::language::structure::ModelTypeDefinition, context : ContextType) : ResultType
Undocumented

Operation visitModelTypeVariable

operation visitModelTypeVariable(node : kermeta::language::structure::ModelTypeVariable, context : ContextType) : ResultType
Undocumented

Operation visitMultiplicityElement

operation visitMultiplicityElement(node : kermeta::language::structure::MultiplicityElement, context : ContextType) : ResultType
Undocumented

Operation visitNamedElement

operation visitNamedElement(node : kermeta::language::structure::NamedElement, context : ContextType) : ResultType
Undocumented

Operation visitObjectTypeVariable

operation visitObjectTypeVariable(node : kermeta::language::structure::ObjectTypeVariable, context : ContextType) : ResultType
Undocumented

Operation visitOperation

operation visitOperation(node : kermeta::language::structure::Operation, context : ContextType) : ResultType
Undocumented

Operation visitPackage

operation visitPackage(node : kermeta::language::structure::Package, context : ContextType) : ResultType
Undocumented

Operation visitParameter

operation visitParameter(node : kermeta::language::structure::Parameter, context : ContextType) : ResultType
Undocumented

Operation visitParameterizedType

operation visitParameterizedType(node : kermeta::language::structure::ParameterizedType, context : ContextType) : ResultType
Undocumented

Operation visitPrimitiveType

operation visitPrimitiveType(node : kermeta::language::structure::PrimitiveType, context : ContextType) : ResultType
Undocumented

Operation visitProductType

operation visitProductType(node : kermeta::language::structure::ProductType, context : ContextType) : ResultType
Undocumented

Operation visitProperty

operation visitProperty(node : kermeta::language::structure::Property, context : ContextType) : ResultType
Undocumented

Operation visitTag

operation visitTag(node : kermeta::language::structure::Tag, context : ContextType) : ResultType
Undocumented

Operation visitType

operation visitType(node : kermeta::language::structure::Type, context : ContextType) : ResultType
Undocumented

Operation visitTypeDefinition

operation visitTypeDefinition(node : kermeta::language::structure::TypeDefinition, context : ContextType) : ResultType
Undocumented

Operation visitTypeDefinitionContainer

operation visitTypeDefinitionContainer(node : kermeta::language::structure::TypeDefinitionContainer, context : ContextType) : ResultType
Undocumented

Operation visitTypeVariableBinding

operation visitTypeVariableBinding(node : kermeta::language::structure::TypeVariableBinding, context : ContextType) : ResultType
Undocumented

Operation visitTypedElement

operation visitTypedElement(node : kermeta::language::structure::TypedElement, context : ContextType) : ResultType
Undocumented

Operation visitVirtualType

operation visitVirtualType(node : kermeta::language::structure::VirtualType, context : ContextType) : ResultType
Undocumented

Operation visitVoidType

operation visitVoidType(node : kermeta::language::structure::VoidType, context : ContextType) : ResultType
Undocumented

Class KMStructureVisitor

kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>
Implementation of the Visitor pattern for the model elements contained in structure package

Operation acceptKMStructureVisitor

method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitable
Undocumented

Operation add

method add(obj : kermeta::reflection::Object) : Void from kermeta::reflection::Model
Undocumented

Operation addAllCompatible

method addAllCompatible(objectsToAdd : kermeta::standard::Collection<kermeta::language::structure::Object>) : kermeta::standard::Collection<kermeta::language::structure::Object> from kermeta::reflection::Model
Undocumented

Operation addCompatible

method addCompatible(objectToAdd : kermeta::reflection::Object) : kermeta::reflection::Object from kermeta::reflection::Model
Undocumented

Operation filter

method filter(typeName : kermeta::reflection::Type) : set kermeta::reflection::Object[0..*] from kermeta::reflection::Model
Undocumented

Operation remove

method remove(obj : kermeta::reflection::Object) : Void from kermeta::reflection::Model
Undocumented

Class Model

kermeta::language::structure::Model inherits kermeta::language::structure::Object, kermeta::reflection::Model
See inherited classes.

Operation acceptKMStructureVisitor

method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitable
Undocumented

Operation isModelTypeOf

method isModelTypeOf(m : kermeta::reflection::Model) : kermeta::language::structure::Boolean from kermeta::reflection::ModelType
Undocumented

Operation new

method new() : kermeta::reflection::Model from kermeta::reflection::ModelType
Undocumented

Class ModelType

kermeta::language::structure::ModelType inherits kermeta::language::structure::ParameterizedType, kermeta::reflection::ModelType, kermeta::language::structure::KMStructureVisitable

Operation acceptKMStructureVisitor

method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitable
Undocumented

Class ModelTypeDefinition

kermeta::language::structure::ModelTypeDefinition inherits kermeta::language::structure::GenericTypeDefinition, kermeta::language::structure::TypeDefinitionContainer, kermeta::reflection::ModelTypeDefinition, kermeta::language::structure::KMStructureVisitable
See inherited classes.

Operation acceptKMStructureVisitor

method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitable
Undocumented

Class ModelTypeVariable

kermeta::language::structure::ModelTypeVariable inherits kermeta::language::structure::TypeVariable, kermeta::language::structure::TypeContainer, kermeta::language::structure::VirtualTypeContainer, kermeta::reflection::ModelTypeVariable

Operation acceptKMStructureVisitor

method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitable
Undocumented

Class MultiplicityElement

kermeta::language::structure::MultiplicityElement inherits kermeta::language::structure::TypedElement, kermeta::reflection::MultiplicityElement, kermeta::language::structure::KMStructureVisitable
See inherited classes.

Operation acceptKMStructureVisitor

method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitable
Undocumented

Class NamedElement

kermeta::language::structure::NamedElement inherits kermeta::language::structure::Object, kermeta::reflection::NamedElement, kermeta::language::structure::KMStructureVisitable
See inherited classes.

Operation checkAllInvariants

method checkAllInvariants() : Void from kermeta::reflection::Object
Undocumented

Operation checkInvariants

method checkInvariants() : Void from kermeta::reflection::Object
Undocumented

Operation container

method container() : kermeta::reflection::Object from kermeta::reflection::Object
Undocumented

Operation equals

method equals(element : kermeta::reflection::Object) : kermeta::language::structure::Boolean from kermeta::reflection::Object
Undocumented

Operation freeze

method freeze() : Void from kermeta::reflection::Object
Undocumented

Operation get

method get(~property : kermeta::reflection::Property) : kermeta::reflection::Object from kermeta::reflection::Object
Undocumented

Operation getMetaClass

method getMetaClass() : kermeta::reflection::Class from kermeta::reflection::Object
Undocumented

Operation isFrozen

method isFrozen() : kermeta::language::structure::Boolean from kermeta::reflection::Object
Undocumented

Operation isKindOf

method isKindOf(cl : kermeta::reflection::Class) : kermeta::language::structure::Boolean from kermeta::reflection::Object
Undocumented

Operation isNotEqual

method isNotEqual(element : kermeta::reflection::Object) : kermeta::language::structure::Boolean from kermeta::reflection::Object
Undocumented

Operation isNotSameAs

method isNotSameAs(element : kermeta::reflection::Object) : kermeta::language::structure::Boolean from kermeta::reflection::Object
Undocumented

Operation isSameAs

method isSameAs(element : kermeta::reflection::Object) : kermeta::language::structure::Boolean from kermeta::reflection::Object
Undocumented

Operation isSet

method isSet(~property : kermeta::reflection::Property) : kermeta::language::structure::Boolean from kermeta::reflection::Object
Undocumented

Operation isVoid

method isVoid() : kermeta::language::structure::Boolean from kermeta::reflection::Object
Undocumented

Operation oid

method oid() : kermeta::language::structure::Integer from kermeta::reflection::Object
Undocumented

Operation set

method ~set(~property : kermeta::reflection::Property, element : kermeta::reflection::Object) : Void from kermeta::reflection::Object
Undocumented

Operation toString

method toString() : kermeta::language::structure::String from kermeta::reflection::Object
Undocumented

Operation unset

method unset(~property : kermeta::reflection::Property) : Void from kermeta::reflection::Object
Undocumented

Class Object

kermeta::language::structure::Object inherits kermeta::reflection::Object, kermeta::language::structure::KMStructureVisitable
See inherited classes.

Operation acceptKMStructureVisitor

method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitable
Undocumented

Class ObjectTypeVariable

kermeta::language::structure::ObjectTypeVariable inherits kermeta::language::structure::TypeContainer, kermeta::language::structure::TypeVariable, kermeta::reflection::ObjectTypeVariable, kermeta::language::structure::KMStructureVisitable

Operation acceptKMStructureVisitor

method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitable
Undocumented

Property body

attribute body: kermeta::language::behavior::Expression
Undocumented

Class Operation

kermeta::language::structure::Operation inherits kermeta::language::structure::MultiplicityElement, kermeta::reflection::Operation, kermeta::language::structure::KMStructureVisitable
See inherited classes.

Operation acceptKMStructureVisitor

method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitable
Undocumented

Class Package

kermeta::language::structure::Package inherits kermeta::language::structure::TypeDefinitionContainer, kermeta::reflection::Package, kermeta::language::structure::KMStructureVisitable
See inherited classes.

Operation acceptKMStructureVisitor

method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitable
Undocumented

Class Parameter

kermeta::language::structure::Parameter inherits kermeta::language::structure::MultiplicityElement, kermeta::reflection::Parameter, kermeta::language::structure::KMStructureVisitable
See inherited classes.

Operation acceptKMStructureVisitor

method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitable
Undocumented

Class ParameterizedType

kermeta::language::structure::ParameterizedType inherits kermeta::language::structure::Type, kermeta::reflection::ParameterizedType, kermeta::language::structure::KMStructureVisitable
See inherited classes.

Operation acceptKMStructureVisitor

method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitable
Undocumented

Operation clone

method clone(objectToClone : kermeta::language::structure::Object) : kermeta::language::structure::Object from kermeta::language::structure::DataType
Undocumented

Class PrimitiveType

kermeta::language::structure::PrimitiveType inherits kermeta::language::structure::TypeContainer, kermeta::language::structure::DataType, kermeta::reflection::PrimitiveType, kermeta::language::structure::KMStructureVisitable

Operation acceptKMStructureVisitor

method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitable
Undocumented

Class ProductType

kermeta::language::structure::ProductType inherits kermeta::language::structure::TypeContainer, kermeta::language::structure::Type, kermeta::reflection::ProductType, kermeta::language::structure::KMStructureVisitable

Operation acceptKMStructureVisitor

method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitable
Undocumented

Property getterBody

attribute getterBody: kermeta::language::behavior::Expression
Undocumented

Property setterBody

attribute setterBody: kermeta::language::behavior::Expression
Undocumented

Class Property

kermeta::language::structure::Property inherits kermeta::language::structure::MultiplicityElement, kermeta::reflection::Property, kermeta::language::structure::KMStructureVisitable
See inherited classes.

Alias String

kermeta::language::structure::String
Undocumented

Operation acceptKMStructureVisitor

method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitable
Undocumented

Class Tag

kermeta::language::structure::Tag inherits kermeta::language::structure::Object, kermeta::reflection::Tag, kermeta::language::structure::KMStructureVisitable
See inherited classes.

Operation acceptKMStructureVisitor

method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitable
Undocumented

Operation clone

operation clone(objectToClone : kermeta::language::structure::Object) : kermeta::language::structure::Object
Undocumented

Operation deepClone

operation deepClone(objectToClone : kermeta::language::structure::Object) : kermeta::language::structure::Object
Undocumented

Class Type

kermeta::language::structure::Type inherits kermeta::language::structure::Object, kermeta::reflection::Type, kermeta::language::structure::KMStructureVisitable

Class TypeContainer

kermeta::language::structure::TypeContainer inherits kermeta::language::structure::Object, kermeta::reflection::TypeContainer
See inherited classes.

Operation acceptKMStructureVisitor

method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitable
Undocumented

Class TypeDefinition

kermeta::language::structure::TypeDefinition inherits kermeta::language::structure::NamedElement, kermeta::reflection::TypeDefinition, kermeta::language::structure::KMStructureVisitable
See inherited classes.

Operation acceptKMStructureVisitor

method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitable
Undocumented

Class TypeDefinitionContainer

kermeta::language::structure::TypeDefinitionContainer inherits kermeta::language::structure::NamedElement, kermeta::reflection::TypeDefinitionContainer, kermeta::language::structure::KMStructureVisitable

class SelfType inherits Type, kermeta::reflection::SelfType, KMStructureVisitable
{
method acceptKMStructureVisitor<ContextType, ResultType>(visitor : KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitable is
do
result := visitor.visitSelfType(self, context)
end
}

Class TypeVariable

kermeta::language::structure::TypeVariable inherits kermeta::language::structure::Type, kermeta::language::structure::NamedElement, kermeta::reflection::TypeVariable, kermeta::language::structure::KMStructureVisitable
See inherited classes.

Operation acceptKMStructureVisitor

method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitable
Undocumented

Class TypeVariableBinding

kermeta::language::structure::TypeVariableBinding inherits kermeta::language::structure::TypeContainer, kermeta::language::structure::Object, kermeta::reflection::TypeVariableBinding, kermeta::language::structure::KMStructureVisitable
See inherited classes.

Operation acceptKMStructureVisitor

method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitable
Undocumented

Class TypedElement

kermeta::language::structure::TypedElement inherits kermeta::language::structure::TypeContainer, kermeta::language::structure::NamedElement, kermeta::reflection::TypedElement, kermeta::language::structure::KMStructureVisitable
See inherited classes.

Alias UnlimitedNatural

kermeta::language::structure::UnlimitedNatural
Alias to kermeta::standard::UnlimitedNatural

Operation acceptKMStructureVisitor

method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitable
Undocumented

Class VirtualType

kermeta::language::structure::VirtualType inherits kermeta::language::structure::ObjectTypeVariable, kermeta::reflection::VirtualType, kermeta::language::structure::KMStructureVisitable

Class VirtualTypeContainer

kermeta::language::structure::VirtualTypeContainer inherits kermeta::language::structure::Object, kermeta::reflection::VirtualTypeContainer
See inherited classes.

Operation acceptKMStructureVisitor

method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitable
Undocumented

Class VoidType

kermeta::language::structure::VoidType inherits kermeta::language::structure::Type, kermeta::reflection::VoidType, kermeta::language::structure::KMStructureVisitable

Alias String

kermeta::language::structure::String
Undocumented
behavior::EmptyExpression
Methods
Attributes
Methods
Attributes

Operation acceptKMStructureVisitor

method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitable
Undocumented

Operation isFrozen

operation isFrozen() : kermeta::reflection::Boolean
Undocumented

Property supertype

reference supertype: kermeta::reflection::Type
Undocumented

Class CallVariable

kermeta::language::behavior::CallVariable inherits kermeta::language::behavior::CallExpression, kermeta::language::behavior::KMExpressionVisitable

We call "CallVariable" the use of a variable in a statement.
in i := j + 1, i and j are 2 CallVariables.

Class ResourceUnconformityException

kermeta::persistence::ResourceUnconformityException inherits kermeta::exceptions::Exception
Raised when user tries to add an object that is not conform to the metamodel
structure::DataType
Methods
Attributes

Operation intersection

operation intersection(elements : kermeta::standard::Collection<G>) : kermeta::standard::Set<G>
returns the intersection of elements and the Set
structure::ProductType
Methods
Attributes

Operation visitModelTypeDefinition

operation visitModelTypeDefinition(node : kermeta::language::structure::ModelTypeDefinition, context : ContextType) : ResultType
Undocumented

Operation acceptKMExpressionVisitor

method acceptKMExpressionVisitor<ContextType, ResultType>(visitor : kermeta::language::behavior::KMExpressionVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::behavior::KMExpressionVisitable
Undocumented

Operation mult

operation mult(other : kermeta::standard::Numeric) : kermeta::standard::Integer

returns self * other

Property failures

reference failures: set kermeta::kunit::TestFailure[0..*]
tests which assertions failed

Operation unset

operation unset(~property : kermeta::reflection::Property) : Void
Undocumented

Class IntegerLiteral

kermeta::language::behavior::IntegerLiteral inherits kermeta::language::behavior::Literal, kermeta::language::behavior::KMExpressionVisitable
This expression is a literal representing an Integer value

Operation evalString

operation evalString(body : kermeta::standard::String, selfObj : kermeta::standard::Object, actualParams : kermeta::utils::Hashtable<kermeta::standard::String, kermeta::standard::Object>) : kermeta::standard::Object

Execute the expression given as a string.
the self type and formal parameters are supposed to be set
before calling this operation

Class Model

kermeta::reflection::Model inherits kermeta::reflection::Object
Is the holder of a set of model elements (Object) that are compatible with the ModelType that has
instanciated this Model.

Operation isLowerOrEqual

operation isLowerOrEqual(other : kermeta::standard::Object) : kermeta::standard::Boolean

return true if self <= other

return true if self <= other

Property uri

attribute uri: kermeta::reflection::String
Undocumented

Operation isGreaterOrEqual

method isGreaterOrEqual(other : kermeta::standard::Object) : kermeta::standard::Boolean from kermeta::standard::Comparable
Undocumented

Operation acceptKMStructureVisitor

method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitable
Undocumented

Operation getMetaClass

operation getMetaClass() : kermeta::reflection::Class
Undocumented

Operation visitProperty

operation visitProperty(node : kermeta::language::structure::Property, context : ContextType) : ResultType
Undocumented

Operation acceptKMStructureVisitor

method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitable
Undocumented

Class ConstraintViolatedPost

kermeta::exceptions::ConstraintViolatedPost inherits kermeta::exceptions::Exception
See inherited classes.

Operation toString

operation toString() : kermeta::reflection::String
Returns the String representation of this class.
Note : throws an exception if this class has no classDefinition
or if the classDefinition is not well constructed.

Property raisedException

reference raisedException: set kermeta::reflection::Type[0..*]
Undocumented

Class AbstractClassInstantiationError

kermeta::exceptions::AbstractClassInstantiationError inherits kermeta::exceptions::RuntimeError

Creation on an abstract class. Usually this is detected by the type-checker. The only
case where this happens is when instantiating a type variable, whose bound type turns
out to be abstract.

Class UpperBoundReachedError

kermeta::exceptions::UpperBoundReachedError inherits kermeta::exceptions::RuntimeError

Use this exception when user tries to add an element to a property which type is collection
which has an upper bound != -1 ( ie *)
exceptions::IndexOutOfBound
Methods
Attributes

Operation equals

method equals(element : kermeta::reflection::Object) : kermeta::language::structure::Boolean from kermeta::reflection::Object
Undocumented

Class TestResult

kermeta::kunit::TestResult

Get the number of run tests, errors and failures that resulted from the launch of a
Test. (This is a minimal but functional class that can be improved)
Related design-pattern : Collecting parameter

Operation acceptKMStructureVisitor

method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitable
Undocumented

Property ownedParameter

attribute ownedParameter: set kermeta::reflection::Parameter[0..*]#~operation
Undocumented

Property superClass

property superClass: set kermeta::reflection::Class[0..*] readonly
Returns the Classes of which the classDefinition of this class inherits.

Operation compareTo

method compareTo(other : kermeta::standard::Object) : kermeta::standard::Integer from kermeta::standard::Comparable
Undocumented

Class TypeLiteral

kermeta::language::behavior::TypeLiteral inherits kermeta::language::behavior::Literal, kermeta::language::behavior::KMExpressionVisitable
This expression is a literal representing a Type.
for example, in
Integer.new
Integer is a type literal representing the type kermeta::standard::Integer

Property body

attribute body: kermeta::language::behavior::Expression
Undocumented

Alias UnlimitedNatural

kermeta::language::structure::UnlimitedNatural
Alias to kermeta::standard::UnlimitedNatural
behavior::CallVariable
Methods
Attributes

Operation createResource

operation createResource(uri : kermeta::standard::String, mm_uri : kermeta::standard::String) : kermeta::persistence::Resource

Create a resource with given uri.
params :
- uri : the uri where to save the model handled by the resource
- mm_uri : the uri of the metamodel of which model is an instance
User must provide the mm_uri if he creates a new model from scratch.

Create a new resource for a model given by its uri,
which meta-model is stored in file given by mm_uri
If file already exists, you'll be able to call the load method to concretly load the model
otherwise, you can only call the save method

Operation visitProductType

operation visitProductType(node : kermeta::language::structure::ProductType, context : ContextType) : ResultType
Undocumented

Property failedTest

reference failedTest: kermeta::kunit::Test
Undocumented

Operation isLower

operation isLower(other : kermeta::standard::Object) : kermeta::standard::Boolean

return true if self < other

return true if self < other

Operation equals

method equals(other : kermeta::standard::Object) : kermeta::standard::Boolean from kermeta::reflection::Object
Undocumented

Class Enumeration

kermeta::language::structure::Enumeration inherits kermeta::language::structure::DataType, kermeta::reflection::Enumeration, kermeta::language::structure::KMStructureVisitable

Operation isGreaterOrEqual

operation isGreaterOrEqual(other : kermeta::standard::Object) : kermeta::standard::Boolean

return true if self >= other

return true if self >= other

Operation acceptKMExpressionVisitor

method acceptKMExpressionVisitor<ContextType, ResultType>(visitor : kermeta::language::behavior::KMExpressionVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::behavior::KMExpressionVisitable
Undocumented

Operation acceptKMExpressionVisitor

method acceptKMExpressionVisitor<ContextType, ResultType>(visitor : kermeta::language::behavior::KMExpressionVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::behavior::KMExpressionVisitable
Undocumented

Property name

attribute name: kermeta::reflection::String
Undocumented

Property instanceType

reference instanceType: kermeta::reflection::Type
Undocumented

Operation visitStringLiteral

operation visitStringLiteral(node : kermeta::language::behavior::StringLiteral, context : ContextType) : ResultType
Undocumented

Property target

attribute target: kermeta::language::behavior::CallExpression[1..1]
Undocumented
structure::NamedElement
Methods
Attributes

Package language

kermeta::language

Contains the implementation of Kermeta reflective collections.

Property upper

attribute upper: kermeta::reflection::UnlimitedNatural
Undocumented

Operation fail

operation fail(msg : kermeta::standard::String) : Void

raise a AssertionViolatedException with the provided message

Operation uminus

operation uminus() : kermeta::standard::Numeric

returns -self

Class ModelTypeDefinition

kermeta::reflection::ModelTypeDefinition inherits kermeta::reflection::GenericTypeDefinition, kermeta::reflection::TypeDefinitionContainer
Definition for a model type
reflection::Type
Methods
Attributes

Class ReflectiveSequence

kermeta::language::ReflectiveSequence<G> inherits kermeta::standard::OrderedSet<G>, kermeta::language::ReflectiveCollection<G>

ReflectiveSequence is an ordered ReflectiveCollection.

Operation run

operation run(r : kermeta::kunit::TestResult) : Void

Run the test

Execute the test case

Execute all tests of the suite

Class BooleanLiteral

kermeta::language::behavior::BooleanLiteral inherits kermeta::language::behavior::Literal, kermeta::language::behavior::KMExpressionVisitable
This expression is a literal representing a Boolean value, typically : true or false keyword

Operation acceptKMStructureVisitor

method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitable
Undocumented

Operation addAllCompatible

method addAllCompatible(objectsToAdd : kermeta::standard::Collection<kermeta::language::structure::Object>) : kermeta::standard::Collection<kermeta::language::structure::Object> from kermeta::reflection::Model
Undocumented

Operation toInteger

operation toInteger() : kermeta::standard::Integer

Convert self as a Real

Operation isNotSameAs

method isNotSameAs(element : kermeta::standard::Object) : kermeta::standard::Boolean from kermeta::standard::PrimitiveType
Undocumented

Operation setUp

operation setUp() : Void
Called before a test is run to set up the needed environment

Operation visitLoop

operation visitLoop(node : kermeta::language::behavior::Loop, context : ContextType) : ResultType
Undocumented

Property stackTrace

attribute stackTrace: kermeta::standard::String

The stack trace as a String
Filled by the interpreted when the exception is raised

Operation acceptKMExpressionVisitor

method acceptKMExpressionVisitor<ContextType, ResultType>(visitor : kermeta::language::behavior::KMExpressionVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::behavior::KMExpressionVisitable
Undocumented

Operation equals

method equals(other : kermeta::standard::Object) : kermeta::standard::Boolean from kermeta::reflection::Object
Undocumented
standard::Numeric
Methods
Attributes

Operation acceptKMStructureVisitor

method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitable
Undocumented

Operation saveWithNewURI

method saveWithNewURI(new_uri : kermeta::standard::String) : Void from kermeta::persistence::Resource
Undocumented

Operation acceptKMExpressionVisitor

method acceptKMExpressionVisitor<ContextType, ResultType>(visitor : kermeta::language::behavior::KMExpressionVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::behavior::KMExpressionVisitable
Undocumented

Operation visitLambdaExpression

operation visitLambdaExpression(node : kermeta::language::behavior::LambdaExpression, context : ContextType) : ResultType
Undocumented

Operation isGreater

method isGreater(other : kermeta::standard::Object) : kermeta::standard::Boolean from kermeta::standard::Comparable
Undocumented

Property type

attribute type: kermeta::language::behavior::TypeReference[1..1]
Undocumented

Class TestLoader

kermeta::kunit::TestLoader

Class PrimitiveType

kermeta::reflection::PrimitiveType inherits kermeta::reflection::TypeContainer, kermeta::reflection::DataType
The class definition for kermeta aliases. Above statement defines a primitive
type called MyString, which instanceType is kermeta::standard::String
alias MyString : kermeta::standard::String

Operation visitTypeDefinitionContainer

operation visitTypeDefinitionContainer(node : kermeta::language::structure::TypeDefinitionContainer, context : ContextType) : ResultType
Undocumented

Package kunit

kermeta::kunit

Contains the implementation of a unit test tool. This is a clone of
JUnit architecture.
Reference : http://junit.sourceforge.net/doc/cookstour/cookstour.htm

Usage example of kunit can be found in fr.irisa.triskell.kermeta.samples project.

You can also find a little example if you go to the documentation of the class
TestRunner.

Methods
Attributes

Operation isInTypeDefSet

operation isInTypeDefSet(tparams : kermeta::standard::Set<kermeta::reflection::TypeDefinition>, new_instance : kermeta::standard::Object) : kermeta::standard::Boolean

Helper that returns true if new_instance type is in the tparam Set, false otherwise
FIXME : Loop-and-cast done in order to temporarily get round the type
system limits for reflection

Class Tag

kermeta::language::structure::Tag inherits kermeta::language::structure::Object, kermeta::reflection::Tag, kermeta::language::structure::KMStructureVisitable
See inherited classes.

Operation visitCallVariable

operation visitCallVariable(node : kermeta::language::behavior::CallVariable, context : ContextType) : ResultType
Undocumented

Class Void

kermeta::standard::~Void

The class Void
By convention it is a sub-type of everything

Operation writeln

operation writeln(object : kermeta::standard::String) : Void

writeln the object to standard output

Operation isFrozen

method isFrozen() : kermeta::language::structure::Boolean from kermeta::reflection::Object
Undocumented
behavior::Literal
Methods
Attributes

Class Parameter

kermeta::language::structure::Parameter inherits kermeta::language::structure::MultiplicityElement, kermeta::reflection::Parameter, kermeta::language::structure::KMStructureVisitable
See inherited classes.

Operation visitModelType

operation visitModelType(node : kermeta::language::structure::ModelType, context : ContextType) : ResultType
Undocumented

Operation isVoid

method isVoid() : kermeta::language::structure::Boolean from kermeta::reflection::Object
Undocumented
reflection::TypeContainer
Methods
Attributes

Class TypeContainer

kermeta::language::structure::TypeContainer inherits kermeta::language::structure::Object, kermeta::reflection::TypeContainer
See inherited classes.

Property allRootContents

property allRootContents: set kermeta::standard::Object[0..*] readonly
- returns the rootContents of the model saved in/loaded from the given uri, including
the models from the dependent resources
utils::Stack
Methods
Attributes

Operation visitObjectTypeVariable

operation visitObjectTypeVariable(node : kermeta::language::structure::ObjectTypeVariable, context : ContextType) : ResultType
Undocumented

Class EmptyExpression

kermeta::language::behavior::EmptyExpression inherits kermeta::language::behavior::Expression, kermeta::language::behavior::KMExpressionVisitable
As suggested by its name, this class represents an expression that do nothing. Like a "nop"

Operation qualifiedName

operation qualifiedName() : kermeta::reflection::String
Returns the qualified name of this named element. Qualified name is
the list of the names of the packages hierarchically ordered, delimited by
a "::", followed by the name of this named element.

Class ObjectTypeVariable

kermeta::language::structure::ObjectTypeVariable inherits kermeta::language::structure::TypeContainer, kermeta::language::structure::TypeVariable, kermeta::reflection::ObjectTypeVariable, kermeta::language::structure::KMStructureVisitable

Class EmptyCollection

kermeta::exceptions::EmptyCollection inherits kermeta::exceptions::Exception
See inherited classes.

Operation visitCallValue

operation visitCallValue(node : kermeta::language::behavior::CallValue, context : ContextType) : ResultType
Undocumented

Operation isNotSameAs

method isNotSameAs(element : kermeta::standard::Object) : kermeta::standard::Boolean from kermeta::standard::PrimitiveType
Undocumented

Operation acceptKMStructureVisitor

method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitable
Undocumented

Property instances

reference instances: set kermeta::standard::Object[0..*]
The entities contained in the model-instance, that are provided when user loads a resource
instances == rootContents
standard::PrimitiveType
Methods
Attributes

Operation remove

operation remove(key : K) : Void

Removes the entry which key equals 'key'

Operation acceptKMStructureVisitor

method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitable
Undocumented

Class Character

kermeta::standard::Character inherits kermeta::standard::ValueType, kermeta::standard::Comparable

The class Character

Operation union

operation union(elements : kermeta::standard::Set<G>) : kermeta::standard::Set<G>
returns the union of a set of elements and the Set

Class DataType

kermeta::language::structure::DataType inherits kermeta::language::structure::TypeDefinition, kermeta::language::structure::Type, kermeta::reflection::DataType, kermeta::language::structure::KMStructureVisitable

Operation isGreater

operation isGreater(other : kermeta::standard::Object) : kermeta::standard::Boolean

return true if self > other

return true if self > other

Operation implies

operation implies(other : kermeta::standard::Boolean) : kermeta::standard::Boolean
Undocumented

Class ProductType

kermeta::language::structure::ProductType inherits kermeta::language::structure::TypeContainer, kermeta::language::structure::Type, kermeta::reflection::ProductType, kermeta::language::structure::KMStructureVisitable

Property isAtpre

attribute isAtpre: kermeta::reflection::Boolean
Tells wether this CallFeature represents a call to @pre in a postcondition
standard::Void
Methods
Attributes

Operation container

operation container() : kermeta::reflection::Object
Undocumented
structure::Operation
Methods
Attributes

Property expression

reference expression: kermeta::language::behavior::Expression

the expression

Operation indexOf

operation indexOf(str : kermeta::standard::String) : kermeta::standard::Integer

returns the index within this string of the first
occurrence of the specified substring

Operation addAllCompatible

operation addAllCompatible(objectsToAdd : kermeta::standard::Collection<kermeta::reflection::Object>) : kermeta::standard::Collection<kermeta::reflection::Object>
add all the Object of the collection that are copmpatible with the ModelDefinition. Other objects are ignored.
Returns the list of Object that have been added (One can check that some element have been ignored or not)
exceptions::EmptyCollection
Methods
Attributes

Operation minus

operation minus(other : kermeta::standard::Numeric) : kermeta::standard::Integer

returns self - other

Operation isNotSameAs

operation isNotSameAs(element : kermeta::reflection::Object) : kermeta::reflection::Boolean
Undocumented

Operation getResource

operation getResource(uri : kermeta::standard::String) : kermeta::persistence::Resource

Get the resource of model that is stored in the given uri.
This suppose that this URI resource was already created in this Repository.
If this resource wasn't already created it will silently create
and load a new one. In this case, the

Get the resource of model that is stored in the given uri. Silently create
and load a new one if a resource with this uri was not found.

Operation and

operation ~and(other : kermeta::standard::Boolean) : kermeta::standard::Boolean
Undocumented

Operation set

operation ~set(~property : kermeta::reflection::Property, element : kermeta::reflection::Object) : Void
Undocumented

Class Repository

kermeta::persistence::Repository
Abstract resource container, that contains a list of available loaded resources,
and methods to create or get a resource given an URI.
Methods
Attributes
Classes

Property body

attribute body: set kermeta::language::behavior::Expression[1..*]
Undocumented

Operation load

operation load() : Void
Loads a resource. Once loaded, you'll be able to query the resource for its content. Loads a resource. Once loaded, you'll be able to query the resource for its instances.

Operation collect

operation collect<T>(collector : < G->T >) : kermeta::standard::Sequence<T>

returns a new Collection with the results of running collector
once for every element in self.

Class ConstraintViolatedPre

kermeta::exceptions::ConstraintViolatedPre inherits kermeta::exceptions::Exception
See inherited classes.

Operation getMetaClass

method getMetaClass() : kermeta::reflection::Class from kermeta::reflection::Object
Undocumented

Operation initializeDefaults

operation initializeDefaults() : Void

initialise the formalParameters with an empty set of parameters
and the self type with void

Operation acceptKMStructureVisitor

method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitable
Undocumented

Property name

attribute name: kermeta::standard::String
A name for the test case so that we know which one failed
This is a "pluggable" selector
Methods
Attributes

Alias UnlimitedNatural

kermeta::reflection::UnlimitedNatural
Alias for kermeta::standard::UnlimitedNatural

Operation mult

operation mult(other : kermeta::standard::Integer) : kermeta::standard::Integer

returns self * other
reflection::TypeVariable
Methods
Attributes
exceptions::OverflowError
Methods
Attributes

Class CallSuperOperation

kermeta::language::behavior::CallSuperOperation inherits kermeta::language::behavior::CallExpression, kermeta::language::behavior::KMExpressionVisitable
This class represents a call to the operataion in the parent class
In the following example, the type of super(element) is CallSuperOperation:

class ParentClass {
operation op(element : Integer) : Integer is do
result := element + 1
end
}

class ChildClass {
method op(element : Integer) : Integer is do
result := super(element)
end
}

Property tag

reference tag: set kermeta::reflection::Tag[0..*]#object
Tags are used to put comments/documentation

Operation acceptKMStructureVisitor

method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitable
Undocumented
reflection::Constraint
Methods
Attributes

Property isAbstract

attribute isAbstract: kermeta::reflection::Boolean
Undocumented

Operation isNotSameAs

method isNotSameAs(element : kermeta::standard::Object) : kermeta::standard::Boolean from kermeta::standard::PrimitiveType
Undocumented

Operation isVoid

operation isVoid() : kermeta::reflection::Boolean
Undocumented

Property runtests

reference runtests: kermeta::standard::Integer
number of test that were run

Operation acceptKMExpressionVisitor

method acceptKMExpressionVisitor<ContextType, ResultType>(visitor : kermeta::language::behavior::KMExpressionVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::behavior::KMExpressionVisitable
Undocumented

Operation acceptKMExpressionVisitor

method acceptKMExpressionVisitor<ContextType, ResultType>(visitor : kermeta::language::behavior::KMExpressionVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::behavior::KMExpressionVisitable
Undocumented

Operation acceptKMStructureVisitor

operation acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType
Undocumented

Operation add

operation add(element : G) : Void

Add an element in the collection

The method 'add' adds the element in the Set
only if it is not yet in the set

Select the method add from Set
Add an element to this collection and update its opposite property if it exists.

Property staticEnumLiteral

reference staticEnumLiteral: kermeta::language::structure::EnumerationLiteral
Undocumented

Operation acceptKMExpressionVisitor

method acceptKMExpressionVisitor<ContextType, ResultType>(visitor : kermeta::language::behavior::KMExpressionVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::behavior::KMExpressionVisitable
Undocumented

Operation pop

operation pop() : G

Get the element at the top of the stack and
removes it from the stack

Class Numeric

kermeta::standard::Numeric inherits kermeta::standard::Comparable, kermeta::standard::ValueType

The abstract class Numeric is the root class for all
numeric types

Class ModelType

kermeta::language::structure::ModelType inherits kermeta::language::structure::ParameterizedType, kermeta::reflection::ModelType, kermeta::language::structure::KMStructureVisitable

Class TypeDefinitionContainer

kermeta::language::structure::TypeDefinitionContainer inherits kermeta::language::structure::NamedElement, kermeta::reflection::TypeDefinitionContainer, kermeta::language::structure::KMStructureVisitable

class SelfType inherits Type, kermeta::reflection::SelfType, KMStructureVisitable
{
method acceptKMStructureVisitor<ContextType, ResultType>(visitor : KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitable is
do
result := visitor.visitSelfType(self, context)
end
}

Package reflection

kermeta::reflection

Contains all the abstract classes used in the reflection mechanism. Implements the derived
properties
contained in the classes; declares the abstract operations.
Concrete implementation is in kermeta.language.structure.

Operation hasNext

operation hasNext() : kermeta::standard::Boolean

returns true if the iterator has a next element

Operation remove

method remove(obj : kermeta::reflection::Object) : Void from kermeta::reflection::Model
Undocumented

Operation acceptKMExpressionVisitor

method acceptKMExpressionVisitor<ContextType, ResultType>(visitor : kermeta::language::behavior::KMExpressionVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::behavior::KMExpressionVisitable
Undocumented

Property isDerived

attribute isDerived: kermeta::reflection::Boolean
Undocumented
Methods
Attributes
exceptions::Exception
Methods
Attributes

Operation runTest

method runTest() : Void from kermeta::kunit::Test
Undocumented

Operation size

operation size() : kermeta::standard::Integer

returns size of the map

Operation load

method load() : Void from kermeta::persistence::Resource
Undocumented

Class VirtualTypeContainer

kermeta::reflection::VirtualTypeContainer inherits kermeta::reflection::Object
See inherited classes.

Class Literal

kermeta::language::behavior::Literal inherits kermeta::language::behavior::Expression

Literal refers to String values, Integer values, etc.

Operation asSet

operation asSet() : kermeta::standard::Set<G>
Undocumented

Operation visitFunctionType

operation visitFunctionType(node : kermeta::language::structure::FunctionType, context : ContextType) : ResultType
Undocumented
structure::ClassDefinition
Methods
Attributes

Operation new

operation new() : kermeta::reflection::Object
Undocumented

Class Boolean

kermeta::standard::Boolean inherits kermeta::standard::PrimitiveType

The Boolean type

Class Stack

kermeta::utils::Stack<G> inherits kermeta::standard::Sequence<G>

An implementation of stack

Operation createTestLoader

operation createTestLoader() : kermeta::kunit::TestLoader
Undocumented

Package behavior

kermeta::language::behavior

Contains all the classes that define the behavior of Kermeta (i.e the model representation
of operation bodies). It is the definition, in kermeta language, of the behavior part of the kermeta
metamodel, viewed as a model.
You can also find some information about the behavior package here : KermetaManual

Operation acceptKMStructureVisitor

method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitable
Undocumented
reflection::ProductType
Methods
Attributes

Operation oid

method oid() : kermeta::language::structure::Integer from kermeta::reflection::Object
Undocumented

Property nestedPackage

attribute nestedPackage: set kermeta::reflection::Package[0..*]#nestingPackage
Undocumented

Operation acceptKMExpressionVisitor

method acceptKMExpressionVisitor<ContextType, ResultType>(visitor : kermeta::language::behavior::KMExpressionVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::behavior::KMExpressionVisitable
Undocumented

Class Collection

kermeta::standard::Collection<G>

Collection is the root abstract class for all kermeta collections

Property inv

attribute inv: set kermeta::reflection::Constraint[0..*]#invOwner
Undocumented

Class PrimitiveType

kermeta::standard::PrimitiveType

The PrimitiveType redefine isSameAs operation from Object class to use in an easier way
primitive types. Comparing two primitive types value can be written as x == y

Property errors

reference errors: kermeta::interpreter::KermetaError[0..*]

Parse errors and type errors

Operation acceptKMExpressionVisitor

method acceptKMExpressionVisitor<ContextType, ResultType>(visitor : kermeta::language::behavior::KMExpressionVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::behavior::KMExpressionVisitable
Undocumented

Operation doesInheritFromTestCase

operation doesInheritFromTestCase(test_class : kermeta::reflection::Class) : kermeta::standard::Boolean

Recursively check if this class inherits from the class TestCase
this function is not really for external usage

Operation acceptKMStructureVisitor

method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitable
Undocumented

Property isReadOnly

attribute isReadOnly: kermeta::reflection::Boolean
Undocumented

Property nestingPackage

reference nestingPackage: kermeta::reflection::Package#nestedPackage
Undocumented
reflection::Tag
Methods
Attributes

Class CallFeature

kermeta::language::behavior::CallFeature inherits kermeta::language::behavior::CallExpression, kermeta::language::behavior::KMExpressionVisitable

CallFeature is the model element that refers to the use of a feature, i.e either
a property or an operation in a statement. In stdio.writeln("hello"),
writeln is a CallFeature.

Operation forAll

operation forAll(func : < G->kermeta::standard::Boolean >) : kermeta::standard::Boolean

checks that the condition is true on all the element of the collection
returns true if the collection is empty

Class TestRunner

kermeta::kunit::TestRunner

User instantiates this class to run a TestSuite or a TestCase

Usage :

Create a file, and add in the "require" place :
require "the_file_that_contains_the_tests.kmt"


Create a class, which will be the one that you will launch :

class MyTesterClass
{
operation main() is do
var testRunner : kermeta::kunit::TestRunner init kermeta::kunit::TestRunner.new
// Here, we run our test case class called "TestClass",
// contained in the_file_that_contains_the_tests.kmt.
// TestClass must inherit TestCase, or TestSuite
testRunner.run(TestClass)
testRunner.printTestResult
end
}

behavior::VoidLiteral
Methods
Attributes
reflection::VoidType
Methods
Attributes

Class Operation

kermeta::language::structure::Operation inherits kermeta::language::structure::MultiplicityElement, kermeta::reflection::Operation, kermeta::language::structure::KMStructureVisitable
See inherited classes.

Property staticOperation

reference staticOperation: kermeta::language::structure::Operation
Undocumented
behavior::CallResult
Methods
Attributes

Operation minus

operation minus(other : kermeta::standard::Integer) : kermeta::standard::Integer

returns self - other

Class MultiplicityElement

kermeta::language::structure::MultiplicityElement inherits kermeta::language::structure::TypedElement, kermeta::reflection::MultiplicityElement, kermeta::language::structure::KMStructureVisitable
See inherited classes.

Operation put

operation put(key : K, ~value : V) : Void

Adds a entry in the Hashtable

Class OrderedCollection

kermeta::standard::OrderedCollection<G> inherits kermeta::standard::Collection<G>

An OrderedCollection is the root abstract class for all ordered Collections.

Operation equals

method equals(element : kermeta::standard::Object) : kermeta::standard::Boolean from kermeta::standard::OrderedCollection
Undocumented

Package io

kermeta::io

Contains Input/Output related classes.

Operation getValue

operation getValue(key : K) : V

returns the value for key 'key'

Property ownedOperation

property ownedOperation: set kermeta::reflection::Operation[0..*] readonly
Returns the operations owned by the classDefinition of this class.

Property virtualTypeBinding

attribute virtualTypeBinding: set kermeta::reflection::TypeVariableBinding[0..*]
Undocumented

Property containedType

attribute containedType: set kermeta::reflection::Type[0..*]#typeContainer
Undocumented

Property repository

reference repository: kermeta::persistence::Repository#resources
The repository used to create this resource

Operation empty

operation empty() : kermeta::standard::Boolean

returns true if the collection is empty
Methods
Attributes

Operation visitNamedElement

operation visitNamedElement(node : kermeta::language::structure::NamedElement, context : ContextType) : ResultType
Undocumented

Operation visitModelTypeVariable

operation visitModelTypeVariable(node : kermeta::language::structure::ModelTypeVariable, context : ContextType) : ResultType
Undocumented

Operation visitAssignment

operation visitAssignment(node : kermeta::language::behavior::Assignment, context : ContextType) : ResultType
Undocumented

Operation values

operation values() : kermeta::standard::Collection<V>
Return the keys of the Hashtable

Class KMStructureVisitable

kermeta::language::structure::KMStructureVisitable
All the classes defined in this kermeta::language::structure package
inherit this class. Part of Visitor pattern implementation.

Property invOwner

reference invOwner: kermeta::reflection::ClassDefinition#~inv
Undocumented

Class DynamicExpression

kermeta::interpreter::DynamicExpression

DynamicExpression is a class used to make dynamic calls, i.e dynamic evaluation
of Kermeta statements represented in a string.

An example :
var de : DynamicExpression init DynamicExpression.new
de.initializeDefaults
de.formalParameters.put("a", String)
de.parse("stdio.writeln(a)") // note: to execute a list of statements, you have to surround them with do..end
var params : Hashtable<String, Object> init Hashtable<String, Object>.new
params.put("a", "hello world!")
de.execute(void, params)

Property rank

attribute rank: kermeta::standard::Integer
Undocumented

Class OverflowError

kermeta::exceptions::OverflowError inherits kermeta::exceptions::Exception
See inherited classes.

Class Constraint

kermeta::reflection::Constraint inherits kermeta::reflection::NamedElement
Constraint is part of a contract implementation in a Class definition or an operation.
Three kinds of constraints are available : pre, post, and inv (invariant constraint)
reflection::TypeDefinition
Methods
Attributes

Operation oid

operation oid() : kermeta::reflection::Integer
Undocumented

Operation createTestFailure

operation createTestFailure(test : kermeta::kunit::Test, e : kermeta::exceptions::Exception) : kermeta::kunit::TestFailure
Undocumented

Class ClassDefinition

kermeta::reflection::ClassDefinition inherits kermeta::reflection::TypeContainer, kermeta::reflection::GenericTypeDefinition
The definition of a class definition :)
class A

{
attribute s : String
}
is a class definition; in :

main() : A is do end

A is a Class : it corresponds to the use of the class definition of A

Property allContents

property allContents: set kermeta::standard::Object[0..*] readonly
- returns all the model elements hosted by this resource, including elements from the
dependent resources

Property owningClass

reference owningClass: kermeta::reflection::ClassDefinition#ownedAttribute
Undocumented

Operation visitClass

operation visitClass(node : kermeta::language::structure::Class, context : ContextType) : ResultType
Undocumented

Class TestSuite

kermeta::kunit::TestSuite inherits kermeta::kunit::Test

A test suite is composed of a set of tests (which can inherit either of TestSuite
or TestCase)
Related design-pattern : Composite

Property parameters

attribute parameters: set kermeta::language::behavior::Expression[0..*]
Undocumented

Operation clone

method clone(objectToClone : kermeta::language::structure::Object) : kermeta::language::structure::Object from kermeta::language::structure::Type
Undocumented

Property exceptionType

attribute exceptionType: kermeta::language::behavior::TypeReference[1..1]
Undocumented

Operation saveWithNewURI

operation saveWithNewURI(new_uri : kermeta::standard::String) : Void
Save a resource in a file referenced by this new uri.
This allows to save the result of a transformation without changing the original file. Save a resource in a file referenced by this new uri.
This allows to save the result of a transformation without changing the original file.

Operation isVoid

method isVoid() : kermeta::standard::Boolean from kermeta::reflection::Object
Undocumented

Class KMExpressionVisitable

kermeta::language::behavior::KMExpressionVisitable
All classes that can be visited using kermeta::behavior::KMExpressionVisitor must implement this class

Operation toString

method toString() : kermeta::reflection::String from kermeta::reflection::Object
Undocumented

Class Rescue

kermeta::language::behavior::Rescue inherits kermeta::reflection::Object, kermeta::language::behavior::KMExpressionVisitable

refers to rescue exception block

Operation unset

method unset(~property : kermeta::reflection::Property) : Void from kermeta::reflection::Object
Undocumented

Property message

attribute message: kermeta::standard::String

The message attached to the exception

Class TypeDefinitionContainer

kermeta::reflection::TypeDefinitionContainer inherits kermeta::reflection::NamedElement

Abstraction of the notion of containment for type definitions. Now, kermeta metamodel contains one container
element, that is Package. In a later release, ModelTypeDefinition will be the main container for type and
package definition.
exceptions::IteratorIsOff
Methods
Attributes
Methods
Attributes

Class Package

kermeta::language::structure::Package inherits kermeta::language::structure::TypeDefinitionContainer, kermeta::reflection::Package, kermeta::language::structure::KMStructureVisitable
See inherited classes.

Operation visitIntegerLiteral

operation visitIntegerLiteral(node : kermeta::language::behavior::IntegerLiteral, context : ContextType) : ResultType
Undocumented

Operation initialize

operation initialize(name : kermeta::standard::String) : Void

Initialize the test case
params :
- name : the name of the test case : must be the name of the testOperation

Operation load

method load() : Void from kermeta::persistence::Resource
Undocumented

Operation add

operation add(instance : kermeta::standard::Object) : Void
add an instance, return it if success, otherwise return null
You need to do that for every Object that must be placed in the root of the resource when you'll save it Add an instance to the Resource ( this is only a shortcut to instances.add call)

Class VirtualType

kermeta::reflection::VirtualType inherits kermeta::reflection::ObjectTypeVariable
See inherited classes.

Operation div

operation div(other : kermeta::standard::Integer) : kermeta::standard::Integer

returns self / other

Class ModelType

kermeta::reflection::ModelType inherits kermeta::reflection::ParameterizedType
Type corresponding to the use of a ModelTypeDefinition

Property ownedAttribute

property ownedAttribute: set kermeta::reflection::Property[0..*] readonly
Returns the attributes, references, and derived properties owned by
the classDefinition of this class.

Class NamedElement

kermeta::reflection::NamedElement inherits kermeta::reflection::Object
Any element that contain a name (example : Operation, Property) inherit this
class.
structure::PrimitiveType
Methods
Attributes
kunit::TestSuite
Methods
Attributes

Class ClassDefinition

kermeta::language::structure::ClassDefinition inherits kermeta::language::structure::TypeContainer, kermeta::language::structure::GenericTypeDefinition, kermeta::reflection::ClassDefinition, kermeta::language::structure::KMStructureVisitable
See inherited classes.

Operation equals

method equals(other : kermeta::reflection::Object) : kermeta::language::structure::Boolean from kermeta::language::structure::Object
Undocumented

Property value

attribute value: kermeta::reflection::String
Undocumented

Operation visitModel

operation visitModel(node : kermeta::language::structure::Model, context : ContextType) : ResultType
Undocumented

Class Property

kermeta::reflection::Property inherits kermeta::reflection::MultiplicityElement
Class representing the property definition. Kermeta<->Ecore equivalence:
- Property with isComposite == true or with type is a base type (String, Integer, Boolean) : EAttribute
- Property with isComposite == false : EReference

Class ProductType

kermeta::reflection::ProductType inherits kermeta::reflection::TypeContainer, kermeta::reflection::Type
See inherited classes.

Property staticType

reference staticType: kermeta::language::structure::Type
Undocumented

Operation toString

method toString() : kermeta::standard::String from kermeta::reflection::Object
Undocumented

Operation container

method container() : kermeta::reflection::Object from kermeta::reflection::Object
Undocumented

Operation visitClassDefinition

operation visitClassDefinition(node : kermeta::language::structure::ClassDefinition, context : ContextType) : ResultType
Undocumented

Class NamedElement

kermeta::language::structure::NamedElement inherits kermeta::language::structure::Object, kermeta::reflection::NamedElement, kermeta::language::structure::KMStructureVisitable
See inherited classes.
interpreter::ParseError
Methods
Attributes

Property operation

reference operation: kermeta::reflection::Operation#ownedParameter
Undocumented

Operation save

method save() : Void from kermeta::persistence::Resource
Undocumented

Operation isSameAs

method isSameAs(element : kermeta::standard::Object) : kermeta::standard::Boolean from kermeta::standard::PrimitiveType
Undocumented

Property condition

attribute condition: kermeta::language::behavior::Expression[1..1]
Undocumented

Operation acceptKMStructureVisitor

method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitable
Undocumented

Operation detect

operation detect(detector : < G->kermeta::standard::Boolean >) : G

Passes each element of the collection to detector.
Returns the first element for which detector is not false.
Returns void if no object matches.

Operation excludes

operation excludes(element : G) : kermeta::standard::Boolean

Returns true if the collection does not contain element

Operation visitTypeVariableBinding

operation visitTypeVariableBinding(node : kermeta::language::structure::TypeVariableBinding, context : ContextType) : ResultType
Undocumented

Property stopCondition

attribute stopCondition: kermeta::language::behavior::Expression[1..1]
Undocumented

Property jmethod

attribute jmethod: kermeta::reflection::String
Undocumented

Operation isSet

method isSet(~property : kermeta::reflection::Property) : kermeta::language::structure::Boolean from kermeta::reflection::Object
Undocumented

Operation elementAt

operation elementAt(index : kermeta::standard::Integer) : kermeta::standard::Character

returns the character at index in the String

Class Operation

kermeta::reflection::Operation inherits kermeta::reflection::MultiplicityElement
Every one knows what an operation is.

Operation addTest

operation addTest(test : kermeta::kunit::Test) : Void
Undocumented

Operation save

method save() : Void from kermeta::persistence::Resource
Undocumented

Operation tearDown

operation tearDown() : Void
Called each time a test is run so that the testing environment is always
tidy.

Class Tag

kermeta::reflection::Tag inherits kermeta::reflection::Object
Tag is intended to be used to add documentation on a
model element, or add some textual information that cannot be expressed
with any model element definition.

Operation acceptKMStructureVisitor

method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitable
Undocumented

Operation new

method new() : kermeta::reflection::Object from kermeta::reflection::Class
Undocumented

Property isCast

attribute isCast: kermeta::reflection::Boolean
Undocumented

Operation initialize

operation initialize() : Void
Undocumented

Operation size

operation size() : kermeta::standard::Integer

returns the number of elements in the collection

Operation visitTypeLiteral

operation visitTypeLiteral(node : kermeta::language::behavior::TypeLiteral, context : ContextType) : ResultType
Undocumented

Operation acceptKMExpressionVisitor

method acceptKMExpressionVisitor<ContextType, ResultType>(visitor : kermeta::language::behavior::KMExpressionVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::behavior::KMExpressionVisitable
Undocumented

Class CallResult

kermeta::language::behavior::CallResult inherits kermeta::language::behavior::CallVariable, kermeta::language::behavior::KMExpressionVisitable
This class represents a call to the special internal variable "result" that is used to store the return value of any operation

Operation set

method ~set(~property : kermeta::reflection::Property, element : kermeta::reflection::Object) : Void from kermeta::reflection::Object
Undocumented

Property value

attribute value: kermeta::reflection::String
Undocumented

Operation addCompatible

operation addCompatible(objectsToAdd : kermeta::reflection::Object) : kermeta::reflection::Object
add the Object if it is copmpatible with the ModelDefinition. Other objects are ignored.
Returns the object if it has been added (One can check that some element have been ignored or not)
return Void if not added

Operation plus

operation plus(other : kermeta::standard::Integer) : kermeta::standard::Integer

returns self + other

Operation addAt

method addAt(index : kermeta::standard::Integer, element : G) : Void from kermeta::standard::OrderedCollection
Undocumented

Class StringIndexOutOfBound

kermeta::exceptions::StringIndexOutOfBound inherits kermeta::exceptions::Exception
See inherited classes.
structure::Type
Methods
Attributes

Operation createDefaultTestResult

operation createDefaultTestResult() : kermeta::kunit::TestResult
Undocumented

Property identifier

attribute identifier: kermeta::reflection::String
Undocumented

Operation plus

operation plus(other : kermeta::standard::String) : kermeta::standard::String

returns a new string self + other

Class ReflectiveCollection

kermeta::language::ReflectiveCollection<G> inherits kermeta::standard::Set<G>

ReflectiveCollection is a special collection that is used to define the type
of attributes that have an upper multiplicity > 1 in a class. It indeed handles
the update of opposite property if such an attribute has got one.

Class NotImplementedException

kermeta::exceptions::NotImplementedException inherits kermeta::exceptions::RuntimeError

Use this exception whenyou want to forbid the access to an unimplemented operation
and invite to implement it
reflection::EnumerationLiteral
Methods
Attributes

Property typeParamBinding

attribute typeParamBinding: set kermeta::reflection::TypeVariableBinding[0..*]
Undocumented

Property lower

attribute lower: kermeta::reflection::Integer
Undocumented
reflection::ObjectTypeVariable
Methods
Attributes
structure::TypeVariable
Methods
Attributes

Operation isSameAs

method isSameAs(element : kermeta::standard::Object) : kermeta::standard::Boolean from kermeta::standard::PrimitiveType
Undocumented

Property initialization

attribute initialization: kermeta::language::behavior::Expression[1..1]
Undocumented

Operation visitRescue

operation visitRescue(node : kermeta::language::behavior::Rescue, context : ContextType) : ResultType
Undocumented

Alias UnlimitedNatural

kermeta::standard::UnlimitedNatural

Unlimited natural is used for reflection.
It is mapped to integer.equals().
Any negative number is interpreted as '*'

Operation new

operation new() : kermeta::reflection::Model
Undocumented

Property type

reference type: kermeta::reflection::Type
The type of this model element

Operation assertFalseWithMsg

operation assertFalseWithMsg(bool : kermeta::standard::Boolean, msg : kermeta::standard::String) : Void

will fail if bool is true

Property typeParamBinding

reference typeParamBinding: kermeta::reflection::TypeVariableBinding[0..*]
Undocumented

Operation removeAt

operation removeAt(index : kermeta::standard::Integer) : Void

removes the element at index of the OrderedCollection

Class Property

kermeta::language::structure::Property inherits kermeta::language::structure::MultiplicityElement, kermeta::reflection::Property, kermeta::language::structure::KMStructureVisitable
See inherited classes.
Methods
Attributes

Operation substring

operation substring(startIndex : kermeta::standard::Integer, endIndex : kermeta::standard::Integer) : kermeta::standard::String

returns a new string that is a substring of this string

Property staticProperty

reference staticProperty: kermeta::language::structure::Property
Undocumented

Operation clear

operation clear() : Void

Remove all elements from the collection
persistence::KMResource
Methods
Attributes

Package exceptions

kermeta::exceptions

Contains the definition of a Kermeta exception and a few basic exceptions.

Operation select

operation ~select(selector : < G->kermeta::standard::Boolean >) : kermeta::standard::Sequence<G>

Passes each element of the collection to selector.
returns a Collection for all elements for which selector is true

Operation freeze

method freeze() : Void from kermeta::reflection::Object
Undocumented

Class ValueType

kermeta::standard::ValueType inherits kermeta::standard::PrimitiveType

The abstract class ValueType does not contain any feature
but any instance of a sub-class of ValueType will be passed by value
instead of by reference for any other objects.
kunit::Test
Methods
Attributes

Operation visitMultiplicityElement

operation visitMultiplicityElement(node : kermeta::language::structure::MultiplicityElement, context : ContextType) : ResultType
Undocumented
persistence::KMRepository
Methods
Attributes

Package interpreter

kermeta::interpreter

Contains a set of classes whose function is to evaluate a kermeta
expression written as a string.

Class IteratorIsOff

kermeta::exceptions::IteratorIsOff inherits kermeta::exceptions::Exception
See inherited classes.

Class EnumerationLiteral

kermeta::language::structure::EnumerationLiteral inherits kermeta::language::structure::NamedElement, kermeta::reflection::EnumerationLiteral, kermeta::language::structure::KMStructureVisitable
See inherited classes.
Methods
Attributes

Operation clear

operation clear() : Void

Remove all elements from the Hashtable

Property contents

property contents: set kermeta::standard::Object[0..*] readonly
- returns all the model elements hosted by this resource, excluding elements from the
dependent resources

Class Hashtable

kermeta::utils::Hashtable<K, V>

An implementation of hashtable
structure::VoidType
Methods
Attributes

Operation equals

method equals(element : kermeta::standard::Object) : kermeta::standard::Boolean from kermeta::reflection::Object
Undocumented

Operation indexOf

operation indexOf(element : G) : kermeta::standard::Integer
returns the index of the first element instance in the OrderedCollection

Operation getResource

method getResource(uri : kermeta::standard::String) : kermeta::persistence::Resource from kermeta::persistence::Repository
Undocumented

Operation remove

method remove(element : G) : Void from kermeta::language::ReflectiveCollection
Undocumented

Operation visitGenericTypeDefinition

operation visitGenericTypeDefinition(node : kermeta::language::structure::GenericTypeDefinition, context : ContextType) : ResultType
Undocumented

Operation clone

method clone(objectToClone : kermeta::language::structure::Object) : kermeta::language::structure::Object from kermeta::language::structure::DataType
Undocumented

Operation valueIterator

operation valueIterator() : kermeta::standard::Iterator<V>

returns an iterator on the keys of the map

Operation acceptKMExpressionVisitor

method acceptKMExpressionVisitor<ContextType, ResultType>(visitor : kermeta::language::behavior::KMExpressionVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::behavior::KMExpressionVisitable
Undocumented
reflection::FunctionType
Methods
Attributes

Operation toString

method toString() : kermeta::standard::String from kermeta::reflection::Object
Undocumented

Package persistence

kermeta::persistence

Contains the classes that handle the serialization of models, in particular
EMF models.

Operation compareTo

method compareTo(other : kermeta::standard::Object) : kermeta::standard::Integer from kermeta::standard::Comparable
Undocumented

Property typeParameter

attribute typeParameter: set kermeta::reflection::TypeVariable[0..*]
Undocumented

Class Constraint

kermeta::language::structure::Constraint inherits kermeta::reflection::Constraint, kermeta::language::structure::NamedElement, kermeta::reflection::Operation, kermeta::language::structure::KMStructureVisitable
See inherited classes.

Property parameters

attribute parameters: set kermeta::language::behavior::Expression[0..*]
Undocumented

Property contents

reference contents: set kermeta::reflection::Object[0..*] readonly
Contents of this model ...

Property typeDefinition

reference typeDefinition: kermeta::reflection::GenericTypeDefinition[1..1]
Undocumented

Class Comparable

kermeta::standard::Comparable

The abstract class Comparable defines a set of operation
to compare instances of a class.
Sub-classes only has to implement abstract operation compareTo.
All other methods are defined w.r.t. the compareTo operation

Operation each

operation each(func : < G->kermeta::standard::Object >) : Void

runs func on each element of the collection

Property isAbstract

attribute isAbstract: kermeta::reflection::Boolean
Undocumented
standard::ValueType
Methods
Attributes

Property preOwner

reference preOwner: kermeta::reflection::Operation#~pre
Undocumented

Property owningClass

reference owningClass: kermeta::reflection::ClassDefinition#ownedOperation
Undocumented

Property useInterpreterInternalResources

attribute useInterpreterInternalResources: kermeta::standard::Boolean

If true, tells to the save of the resources that they should also integrate the resources from Kermeta interpreter itself
this is usefull for example to make a dependency to framework.km
by default, not setting this is considered as false.

Class ParseError

kermeta::interpreter::ParseError inherits kermeta::interpreter::KermetaError
See inherited classes.
standard::OrderedSet
Methods
Attributes

Operation isSameAs

method isSameAs(element : kermeta::standard::Object) : kermeta::standard::Boolean from kermeta::standard::PrimitiveType
Undocumented

Operation acceptKMStructureVisitor

method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitable
Undocumented

Property enumeration

reference enumeration: kermeta::reflection::Enumeration#ownedLiteral
Undocumented

Operation times

operation times(body : < kermeta::standard::Integer->kermeta::standard::Object >) : Void

Iteration
behavior::CallValue
Methods
Attributes

Class IndexOutOfBound

kermeta::exceptions::IndexOutOfBound inherits kermeta::exceptions::Exception
See inherited classes.

Operation addCompatible

method addCompatible(objectToAdd : kermeta::reflection::Object) : kermeta::reflection::Object from kermeta::reflection::Model
Undocumented

Class Assignment

kermeta::language::behavior::Assignment inherits kermeta::language::behavior::Expression, kermeta::language::behavior::KMExpressionVisitable

Assignment is the model-element representation of the assignment statement x := y

Operation visitTypedElement

operation visitTypedElement(node : kermeta::language::structure::TypedElement, context : ContextType) : ResultType
Undocumented
Methods
Attributes

Operation equals

method equals(other : kermeta::standard::Object) : kermeta::standard::Boolean from kermeta::reflection::Object
Undocumented

Property name

attribute name: kermeta::reflection::String[1..1]
Name of this named element

Property postOwner

reference postOwner: kermeta::reflection::Operation#~post
Undocumented

Operation add

method add(element : G) : Void from kermeta::standard::Set
Undocumented
reflection::Enumeration
Methods
Attributes

Property value

attribute value: kermeta::language::behavior::Expression[1..1]
Undocumented

Property initialization

attribute initialization: kermeta::language::behavior::Expression
Undocumented

Operation visitJavaStaticCall

operation visitJavaStaticCall(node : kermeta::language::behavior::JavaStaticCall, context : ContextType) : ResultType
Undocumented

Operation compareTo

operation compareTo(other : kermeta::standard::Object) : kermeta::standard::Integer

This method should be implemented by any class that inherits
from Comparable.
returns 0 if self = other
returns > 0 if self > other
returns < 0 if self < other

Comparison

Comparaison

Comparaison

Operation div

operation div(other : kermeta::standard::Numeric) : kermeta::standard::Integer

returns self / other

Class Type

kermeta::language::structure::Type inherits kermeta::language::structure::Object, kermeta::reflection::Type, kermeta::language::structure::KMStructureVisitable

Class Object

kermeta::reflection::Object

Object type : all entities of Kermeta metamodel explicitely inherit Object.

Class Exception

kermeta::exceptions::Exception

Generic exceptions
The main class from which all the exception inherit

Class Block

kermeta::language::behavior::Block inherits kermeta::language::behavior::Expression, kermeta::language::behavior::KMExpressionVisitable

Block is the model-element representation for the do...end block.

Operation toString

method toString() : kermeta::standard::String from kermeta::reflection::Object
Undocumented

Operation acceptKMExpressionVisitor

method acceptKMExpressionVisitor<ContextType, ResultType>(visitor : kermeta::language::behavior::KMExpressionVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::behavior::KMExpressionVisitable
Undocumented
behavior::Raise
Methods
Attributes
Methods
Attributes

Operation createResource

method createResource(uri : kermeta::standard::String, mm_uri : kermeta::standard::String) : kermeta::persistence::Resource from kermeta::persistence::Repository
Undocumented

Operation isNotSameAs

method isNotSameAs(element : kermeta::standard::Object) : kermeta::standard::Boolean from kermeta::reflection::Object
Undocumented

Operation keys

operation keys() : kermeta::standard::Set<K>
Return the keys of the Hashtable

Property parameters

attribute parameters: set kermeta::language::behavior::LambdaParameter[0..*]
Undocumented

Property metaModelURI

reference metaModelURI: kermeta::standard::String
The uri of the meta-model of the model-instance to load

Operation clone

method clone(objectToClone : kermeta::language::structure::Object) : kermeta::language::structure::Object from kermeta::language::structure::Type
Undocumented

Operation addFailure

operation addFailure(test : kermeta::kunit::Test, e : kermeta::kunit::AssertionFailedError) : Void
Adds a failed test to the list of failed tests

Class ObjectTypeVariable

kermeta::reflection::ObjectTypeVariable inherits kermeta::reflection::TypeContainer, kermeta::reflection::TypeVariable
See inherited classes.

Operation isLowerOrEqual

method isLowerOrEqual(other : kermeta::standard::Object) : kermeta::standard::Boolean from kermeta::standard::Comparable
Undocumented

Operation run

method run(r : kermeta::kunit::TestResult) : Void from kermeta::kunit::Test
Undocumented

Property ownedOperation

attribute ownedOperation: set kermeta::reflection::Operation[0..*]#owningClass
Returns the operations owned by this class definition.

Class TypeVariable

kermeta::language::structure::TypeVariable inherits kermeta::language::structure::Type, kermeta::language::structure::NamedElement, kermeta::reflection::TypeVariable, kermeta::language::structure::KMStructureVisitable
See inherited classes.

Operation isNotSameAs

method isNotSameAs(element : kermeta::standard::Object) : kermeta::standard::Boolean from kermeta::standard::PrimitiveType
Undocumented

Operation createResource

method createResource(uri : kermeta::standard::String, mm_uri : kermeta::standard::String) : kermeta::persistence::Resource from kermeta::persistence::Repository
Undocumented

Operation isInstance

operation isInstance(element : kermeta::reflection::Object) : kermeta::reflection::Boolean
Undocumented

Package standard

kermeta::standard

Contains Collections and primitive types, i.e the base types like String,
Integer, etc.

$Id: java.kmt,v 1.1 2006/10/04 11:12:43 dvojtise Exp $
Contains types dedicated to dealing with java objects

Operation visitParameterizedType

operation visitParameterizedType(node : kermeta::language::structure::ParameterizedType, context : ContextType) : ResultType
Undocumented

Property testResult

reference testResult: kermeta::kunit::TestResult
Undocumented

Class GenericTypeDefinition

kermeta::language::structure::GenericTypeDefinition inherits kermeta::language::structure::TypeDefinition, kermeta::reflection::GenericTypeDefinition, kermeta::language::structure::KMStructureVisitable
See inherited classes.

Operation visitRaise

operation visitRaise(node : kermeta::language::behavior::Raise, context : ContextType) : ResultType
Undocumented

Property includedResources

reference includedResources: set kermeta::standard::String[0..*]
The includedResource if the model-instance "inter-depends" on other instances

Operation initialize

operation initialize() : Void
Set the runtests to 0

Operation remove

method remove(element : G) : Void from kermeta::standard::Collection
Undocumented

Operation visitTypeDefinition

operation visitTypeDefinition(node : kermeta::language::structure::TypeDefinition, context : ContextType) : ResultType
Undocumented

Operation getResource

method getResource(uri : kermeta::standard::String) : kermeta::persistence::Resource from kermeta::persistence::Repository
Undocumented

Operation new

method new() : kermeta::reflection::Model from kermeta::reflection::ModelType
Undocumented

Operation intersectionWithSet

operation intersectionWithSet(elements : kermeta::standard::Set<G>) : kermeta::standard::Set<G>
returns the intersection of a set of elements and the Bag

Class KMResource

kermeta::persistence::KMResource inherits kermeta::persistence::Resource
See inherited classes.

Operation add

method add(element : G) : Void from kermeta::standard::Collection
Undocumented

Class KMRepository

kermeta::persistence::KMRepository inherits kermeta::persistence::Repository

Repository that stores and manages XMI files representing Kermeta models

Operation execute

operation execute(selfObj : kermeta::standard::Object, actualParams : kermeta::utils::Hashtable<kermeta::standard::String, kermeta::standard::Object>) : kermeta::standard::Object

Execute the expression in the given context

Class TypeContainer

kermeta::reflection::TypeContainer inherits kermeta::reflection::Object
Phantom class : EMF reflexive editors need that any element of a metamodel
has a direct or indirect containment relationship with the root model element of
the metamodel. This class resolves this technical requirement.

Class VariableDecl

kermeta::language::behavior::VariableDecl inherits kermeta::language::behavior::Expression, kermeta::language::behavior::KMExpressionVisitable

refers to variable declaration var x : X init a

Operation subSet

operation subSet(min : kermeta::standard::Integer, max : kermeta::standard::Integer) : kermeta::standard::OrderedSet<G>
Undocumented

Operation read

operation read(prompt : kermeta::standard::String) : kermeta::standard::String

read an object from standard input

Class EMFRepository

kermeta::persistence::EMFRepository inherits kermeta::persistence::Repository

Repository that stores and manages resources that come from EMF

Class TypeVariableBinding

kermeta::reflection::TypeVariableBinding inherits kermeta::reflection::TypeContainer, kermeta::reflection::Object
See inherited classes.

Operation remove

operation remove(instance : kermeta::standard::Object) : kermeta::standard::Object
remove the instance, return it if success, otherwise return null Remove an instance from the Resource

Operation acceptKMStructureVisitor

method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitable
Undocumented

Operation equals

operation equals(element : kermeta::reflection::Object) : kermeta::reflection::Boolean
Undocumented

Class VoidType

kermeta::language::structure::VoidType inherits kermeta::language::structure::Type, kermeta::reflection::VoidType, kermeta::language::structure::KMStructureVisitable

Property type

attribute type: kermeta::language::behavior::TypeReference[1..1]
Undocumented

Operation remove

operation remove(obj : kermeta::reflection::Object) : Void
remove an object from the model

Class FunctionType

kermeta::reflection::FunctionType inherits kermeta::reflection::TypeContainer, kermeta::reflection::Type

Type used to define the use of lambda expressions.
Uses :
operation forAll(func : <G -> Boolean>) : Boolean is do

var test : Boolean init true
from var it : Iterator<G> init iterator
until it.isOff
loop
test := test and func(it.next)
end
result := test
end


In the above example, <G -> Boolean> is a function type f(G) ->
Boolean, with a parameter of type G and a return type of type Boolean
The operation forAll takes a lambda expression as parameter.

Class Type

kermeta::reflection::Type inherits kermeta::reflection::Object
Base class definition for the use of a type.

Operation acceptKMStructureVisitor

method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitable
Undocumented
reflection::Parameter
Methods
Attributes

Property nestedException

attribute nestedException: kermeta::exceptions::Exception

Any nested exception

Property expression

attribute expression: kermeta::language::behavior::Expression[1..1]
Undocumented

Property rescueBlock

attribute rescueBlock: set kermeta::language::behavior::Rescue[0..*]
Undocumented

Property staticTypeVariableBindings

reference staticTypeVariableBindings: kermeta::language::structure::Type[0..*]
Undocumented
structure::FunctionType
Methods
Attributes

Operation acceptKMExpressionVisitor

method acceptKMExpressionVisitor<ContextType, ResultType>(visitor : kermeta::language::behavior::KMExpressionVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::behavior::KMExpressionVisitable
Undocumented
interpreter::KermetaError
Methods
Attributes

Operation acceptKMStructureVisitor

method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitable
Undocumented
standard::Sequence
Methods
Attributes

Operation isSameAs

method isSameAs(element : kermeta::standard::Object) : kermeta::standard::Boolean from kermeta::reflection::Object
Undocumented

Operation filter

method filter(typeName : kermeta::reflection::Type) : set kermeta::reflection::Object[0..*] from kermeta::reflection::Model
Undocumented

Property superType

reference superType: set kermeta::reflection::Class[0..*]
Returns the Classes of which this class definition inherits.

Operation acceptKMStructureVisitor

method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitable
Undocumented

Operation deepClone

method deepClone(objectToClone : kermeta::language::structure::Object) : kermeta::language::structure::Object from kermeta::language::structure::Type
Undocumented
Methods
Attributes

Operation visitVariableDecl

operation visitVariableDecl(node : kermeta::language::behavior::VariableDecl, context : ContextType) : ResultType
Undocumented

Property default

attribute default: kermeta::reflection::String
Undocumented

Class OrderedSet

kermeta::standard::OrderedSet<G> inherits kermeta::standard::Set<G>, kermeta::standard::OrderedCollection<G>

an OrderedSet is a Set that contained ordered distinct elements, accessible by
their index. (see AddAt method)
Methods
Attributes

Operation keyIterator

operation keyIterator() : kermeta::standard::Iterator<K>

returns an iterator on the keys of the map

Operation isLower

method isLower(other : kermeta::standard::Object) : kermeta::standard::Boolean from kermeta::standard::Comparable
Undocumented
Methods
Attributes

Operation acceptKMExpressionVisitor

method acceptKMExpressionVisitor<ContextType, ResultType>(visitor : kermeta::language::behavior::KMExpressionVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::behavior::KMExpressionVisitable
Undocumented

Class CallValue

kermeta::language::behavior::CallValue inherits kermeta::language::behavior::CallExpression, kermeta::language::behavior::KMExpressionVisitable

CallValue refers to the use of the value reserved keyword. This keyword is
only used in the body of the setter part of derived properties.

Operation checkInvariants

method checkInvariants() : Void from kermeta::reflection::Object
Undocumented

Operation not

operation ~not() : kermeta::standard::Boolean
Undocumented

Operation toReal

operation toReal() : kermeta::standard::Real

Convert self as a Real

Alias Integer

kermeta::reflection::Integer
Alias for kermeta::standard::Integer

Property ownedAttribute

attribute ownedAttribute: set kermeta::reflection::Property[0..*]#owningClass
Returns the attributes, references, and derived properties owned by
this class definition.

Property pre

attribute pre: set kermeta::reflection::Constraint[0..*]#preOwner
Undocumented

Operation visitPackage

operation visitPackage(node : kermeta::language::structure::Package, context : ContextType) : ResultType
Undocumented

Class UnknownJavaObject

kermeta::standard::UnknownJavaObject

This special object is used to represent java object that cannot be concretly used with kermeta
the only actions possible on these objects are : assignment and passing them as parameter

Operation or

operation ~or(other : kermeta::standard::Boolean) : kermeta::standard::Boolean
Undocumented
reflection::TypedElement
Methods
Attributes

Property errors

reference errors: set kermeta::kunit::TestFailure[0..*]
tests which errors were not assertion failures

Operation visitLambdaParameter

operation visitLambdaParameter(node : kermeta::language::behavior::LambdaParameter, context : ContextType) : ResultType
Undocumented

Operation containsKey

operation containsKey(key : K) : kermeta::standard::Boolean
Tests if a key is present in the table

Class Enumeration

kermeta::reflection::Enumeration inherits kermeta::reflection::DataType
Definition for enumeration
exceptions::DivisionByZero
Methods
Attributes

Class GenericTypeDefinition

kermeta::reflection::GenericTypeDefinition inherits kermeta::reflection::TypeDefinition

Abstracts the definition of generic type definitions (i.e. type definitions that
can be parameterized), namely, for ClassDefinition and ModelTypeDefinition.

Property methodPrefix

attribute methodPrefix: kermeta::standard::String
Undocumented

Operation initialize

operation initialize() : Void
Undocumented

Operation freeze

operation freeze() : Void
Undocumented

Class TypeVariable

kermeta::reflection::TypeVariable inherits kermeta::reflection::TypeContainer, kermeta::reflection::Type, kermeta::reflection::NamedElement
Definition of a type variable for generic types :
in class definition
class AClass<X,Y> {}
, X and Y are type variables.

Property stereotype

attribute stereotype: kermeta::language::structure::ConstraintType
Undocumented

Class Raise

kermeta::language::behavior::Raise inherits kermeta::language::behavior::Expression, kermeta::language::behavior::KMExpressionVisitable

refers to raise exception block

Class Resource

kermeta::persistence::Resource

The main class that handle a loaded/saved model.
There are a few important things to note for the developer :

- load a Resource : this loads a Collection of instances corresponding to the
objects in the loaded model. If the Collection of instances is empty, than
a ResourceLoadException is raised

- save a Resource : this saves the collection of instances in a new file. This can
be correctly done if and only if the instances saved are conform to the metamodel
linked to this resource (this link does not need to be explicit. It is normally retrieved
through the EMF model -- see Java wrapping "Resource.java").

- add/remove an instance to the Resource : this adds an element in the resource. It cannot
be "simply" added because of the following potential errors :

- The object added is not conform to the metamodel -> Error
- The object was already added in the resource -> Not a real error : we do nothing
- The object to remove does not exist -> redirect to a collection-specific error
- The object to remove is attached to an object in the collection -> "dependency-violation" exception?

Operation containsAll

operation containsAll(elements : kermeta::standard::Collection<G>) : kermeta::standard::Boolean

returns true if the collection contains all elements

Operation acceptKMExpressionVisitor

method acceptKMExpressionVisitor<ContextType, ResultType>(visitor : kermeta::language::behavior::KMExpressionVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::behavior::KMExpressionVisitable
Undocumented

Operation visitCallResult

operation visitCallResult(node : kermeta::language::behavior::CallResult, context : ContextType) : ResultType
Undocumented

Operation run

method run(test_result : kermeta::kunit::TestResult) : Void from kermeta::kunit::Test
Undocumented

Operation isSameAs

method isSameAs(element : kermeta::standard::Object) : kermeta::standard::Boolean from kermeta::standard::PrimitiveType
Undocumented

Alias Boolean

kermeta::language::structure::Boolean
Undocumented

Operation toString

method toString() : kermeta::language::structure::String from kermeta::reflection::Object
Undocumented

Operation equals

method equals(other : kermeta::standard::Object) : kermeta::standard::Boolean from kermeta::reflection::Object
Undocumented

Operation push

operation push(element : G) : Void

Push an element in the stack
exceptions::CallOnVoidTarget
Methods
Attributes

Property isAbstract

property isAbstract: kermeta::reflection::Boolean readonly
Returns true if the classDefinition of this class is abstract.

Operation add

method add(obj : kermeta::reflection::Object) : Void from kermeta::reflection::Model
Undocumented

Property suiteClass

reference suiteClass: kermeta::language::structure::Class
Undocumented

Property target

attribute target: kermeta::language::behavior::Expression
Undocumented

Operation first

operation first() : G
returns the first element in the OrderedCollection
structure::VirtualType
Methods
Attributes

Operation acceptKMStructureVisitor

method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitable
Undocumented

Package structure

kermeta::language::structure

Contains the concrete implementation (including the operation bodies)
of the classes of the kermeta::reflection package. If you need
documentation for elements marked as "Undocumented", please take a look
at the kermeta::reflection package which is more complete.

Class DynamicExpressionException

kermeta::interpreter::DynamicExpressionException inherits kermeta::exceptions::Exception
See inherited classes.

Class AssertionFailedError

kermeta::kunit::AssertionFailedError inherits kermeta::exceptions::Exception

AssertionViolatedException are raised when assertions are violated

Property isID

attribute isID: kermeta::reflection::Boolean
Undocumented

Operation isSet

operation isSet(~property : kermeta::reflection::Property) : kermeta::reflection::Boolean
Undocumented

Operation acceptKMStructureVisitor

method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitable
Undocumented

Alias Integer

kermeta::language::structure::Integer
Undocumented

Operation runTest

operation runTest() : Void
The main method that the testes has to implement for his specific tests
This method is an adapter that uses the pluggable selector TestCase.name to know which
test to run

Operation iterator

operation iterator() : kermeta::standard::Iterator<G>

returns an iterator on the collection

Alias Boolean

kermeta::reflection::Boolean
Alias for kermeta::standard::Boolean

Operation acceptKMStructureVisitor

method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitable
Undocumented

Property uri

reference uri: kermeta::standard::String
The uri of the model-instance to load

Class StringLiteral

kermeta::language::behavior::StringLiteral inherits kermeta::language::behavior::Literal, kermeta::language::behavior::KMExpressionVisitable
This expression is a literal representing a String value, typically : "my string"

Class Model

kermeta::language::structure::Model inherits kermeta::language::structure::Object, kermeta::reflection::Model
See inherited classes.

Operation saveAndValidateWithEMF

operation saveAndValidateWithEMF() : kermeta::standard::Boolean
save and check the resource using the EMF validation function
apply the validate on all the object in the root of this resource
returns true if the validation reports no error
otherwise raises exceptions

Operation isNotSameAs

method isNotSameAs(element : kermeta::reflection::Object) : kermeta::language::structure::Boolean from kermeta::reflection::Object
Undocumented

Operation clone

operation clone(objectToClone : kermeta::language::structure::Object) : kermeta::language::structure::Object
Undocumented

Operation subSequence

operation subSequence(min : kermeta::standard::Integer, max : kermeta::standard::Integer) : kermeta::standard::Sequence<G>
Undocumented

Operation visitParameter

operation visitParameter(node : kermeta::language::structure::Parameter, context : ContextType) : ResultType
Undocumented

Operation count

operation count(element : G) : kermeta::standard::Integer

Returns the nb of instances of 'element' in the collection

Operation isSameAs

operation isSameAs(element : kermeta::reflection::Object) : kermeta::reflection::Boolean
isSameAs operation checks if both objects have the same id

Operation toString

method toString() : kermeta::standard::String from kermeta::reflection::Object
Undocumented
reflection::PrimitiveType
Methods
Attributes

Class MultiplicityElement

kermeta::reflection::MultiplicityElement inherits kermeta::reflection::TypedElement
Model elements with a multiplicity [lower..upper] inherit this class

Operation assert

operation assert(bool : kermeta::standard::Boolean) : Void

Fails if bool is false

Property exceptionName

attribute exceptionName: kermeta::reflection::String
Undocumented

Operation mod

operation mod(other : kermeta::standard::Integer) : kermeta::standard::Integer

returns self modulo other
Methods
Attributes

Operation plus

operation plus(other : kermeta::standard::Numeric) : kermeta::standard::Integer

returns self + other

Property message

attribute message: kermeta::standard::String
Undocumented
io::StdIO
Methods
Attributes

Operation write

operation write(object : kermeta::standard::String) : Void

write the object to standard output

Class FunctionType

kermeta::language::structure::FunctionType inherits kermeta::language::structure::TypeContainer, kermeta::language::structure::Type, kermeta::reflection::FunctionType, kermeta::language::structure::KMStructureVisitable

Class KermetaError

kermeta::interpreter::KermetaError
Undocumented

Operation filter

operation filter(vtype : kermeta::reflection::Type) : set kermeta::reflection::Object[0..*]
returns a set of all the elements of the model that are instance of the given Type

Operation acceptKMExpressionVisitor

method acceptKMExpressionVisitor<ContextType, ResultType>(visitor : kermeta::language::behavior::KMExpressionVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::behavior::KMExpressionVisitable
Undocumented

Operation acceptKMExpressionVisitor

method acceptKMExpressionVisitor<ContextType, ResultType>(visitor : kermeta::language::behavior::KMExpressionVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::behavior::KMExpressionVisitable
Undocumented

Class Sequence

kermeta::standard::Sequence<G> inherits kermeta::standard::Bag<G>, kermeta::standard::OrderedCollection<G>

A Sequence is an ordered collection of elements

Operation visitTypeReference

operation visitTypeReference(node : kermeta::language::behavior::TypeReference, context : ContextType) : ResultType
Undocumented

Class Set

kermeta::standard::Set<G> inherits kermeta::standard::Collection<G>

A Set is a collection that contains distinct elements

Class ModelTypeVariable

kermeta::language::structure::ModelTypeVariable inherits kermeta::language::structure::TypeVariable, kermeta::language::structure::TypeContainer, kermeta::language::structure::VirtualTypeContainer, kermeta::reflection::ModelTypeVariable

Property ownedTypeDefinition

attribute ownedTypeDefinition: set kermeta::reflection::TypeDefinition[0..*]
Undocumented

Operation remove

method remove(instance : kermeta::standard::Object) : kermeta::standard::Object from kermeta::persistence::Resource
Undocumented

Class Assert

kermeta::kunit::Assert

The abstract class assert defines a set of convinient operations
to assert expected behavior and give the rank of failed assert

Property contentMap

reference contentMap: kermeta::utils::Hashtable<kermeta::standard::String, kermeta::standard::Set<kermeta::standard::Object>>
The hashtable that contains the contents loaded by the resource.
It is composed of 4 entries : "rootContents", "allRootContents", "contents", "allContents"
The two last ones will be kept empty since resource-heavy
- rootContents : only the root elements of the "main model" hosted by the given resource
- allRootContents : the root elements of the main model

Class TestFailure

kermeta::kunit::TestFailure

An instance of this class is created when an assertion failed or an exception
was raised.

Class VoidLiteral

kermeta::language::behavior::VoidLiteral inherits kermeta::language::behavior::Literal, kermeta::language::behavior::KMExpressionVisitable
This class is used to represent the special expression void

Property isUnique

attribute isUnique: kermeta::reflection::Boolean
Undocumented

Class VoidType

kermeta::reflection::VoidType inherits kermeta::reflection::Type
Class definition for the
Void
type

Operation add

method add(instance : kermeta::standard::Object) : Void from kermeta::persistence::Resource
Undocumented

Class ResourceLoadException

kermeta::persistence::ResourceLoadException inherits kermeta::exceptions::Exception
Specialized exceptions

Property jclass

attribute jclass: kermeta::reflection::String
Undocumented

Property name

attribute name: kermeta::reflection::String
Undocumented

Operation assertFalse

operation assertFalse(bool : kermeta::standard::Boolean) : Void

will fail if bool is true

Operation acceptKMStructureVisitor

method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitable
Undocumented

Operation acceptKMStructureVisitor

method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitable
Undocumented

Property type

reference type: set kermeta::reflection::Type[1..*]
Undocumented

Class Class

kermeta::language::structure::Class inherits kermeta::language::structure::ParameterizedType, kermeta::reflection::Class, kermeta::language::structure::KMStructureVisitable
See inherited classes.

Operation isSubType

method isSubType(object : kermeta::reflection::Type) : kermeta::language::structure::Boolean from kermeta::reflection::Type
Undocumented

Property post

attribute post: set kermeta::reflection::Constraint[0..*]#postOwner
Undocumented

Class TypedElement

kermeta::reflection::TypedElement inherits kermeta::reflection::TypeContainer, kermeta::reflection::NamedElement
Abstraction of the notion of typed element : each element
that is typed inherits this class.

Property name

property name: kermeta::reflection::String readonly
Returns the name of the classDefinition of this class

Operation excludesAll

operation excludesAll(elements : kermeta::standard::Collection<G>) : kermeta::standard::Boolean

Returns true if the collection contains none of elements

Property setterBody

attribute setterBody: kermeta::language::behavior::Expression
Undocumented
behavior::TypeReference
Methods
Attributes
structure::TypeDefinition
Methods
Attributes

Operation uminus

operation uminus() : kermeta::standard::Integer

returns -self

Operation addError

operation addError(test : kermeta::kunit::Test, e : kermeta::exceptions::Exception) : Void
Undocumented

Property object

reference object: set kermeta::reflection::Object[1..*]#tag
Undocumented

Operation addAt

operation addAt(index : kermeta::standard::Integer, element : G) : Void

adds element in the OrderedCollection at index

Overrides addAt to ensure element uniqueness

Operation acceptKMExpressionVisitor

method acceptKMExpressionVisitor<ContextType, ResultType>(visitor : kermeta::language::behavior::KMExpressionVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::behavior::KMExpressionVisitable
Undocumented

Operation replace

operation replace(str1 : kermeta::standard::String, str2 : kermeta::standard::String) : kermeta::standard::String
Undocumented

Class Integer

kermeta::standard::Integer inherits kermeta::standard::Numeric

The class Integer

Class DivisionByZero

kermeta::exceptions::DivisionByZero inherits kermeta::exceptions::Exception
See inherited classes.

Operation visitConditional

operation visitConditional(node : kermeta::language::behavior::Conditional, context : ContextType) : ResultType
Undocumented
persistence::Repository
Methods
Attributes

Class NotComparableException

kermeta::standard::NotComparableException inherits kermeta::exceptions::Exception
See inherited classes.

Class TypeDefinition

kermeta::reflection::TypeDefinition inherits kermeta::reflection::NamedElement

Abstraction for type definitions (ClassDefinition, ModelTypeDefinition, DataType inherit
this class)

Operation nand

operation nand(other : kermeta::standard::Boolean) : kermeta::standard::Boolean
Undocumented

Operation size

operation size() : kermeta::standard::Integer
Undocumented

Operation xor

operation xor(other : kermeta::standard::Boolean) : kermeta::standard::Boolean
Undocumented

Operation createTestResult

operation createTestResult() : kermeta::kunit::TestResult
Undocumented

Operation acceptKMExpressionVisitor

operation acceptKMExpressionVisitor<ContextType, ResultType>(visitor : kermeta::language::behavior::KMExpressionVisitor<ContextType, ResultType>, context : ContextType) : ResultType
Implementation of the visitor design pattern on CallFeature objects Implementation of the visitor design pattern on CallFeature objects Implementation of the visitor design pattern on Assignment objects Implementation of the visitor design pattern on Block objects Implementation of the visitor design pattern on Conditional objects Implementation of the visitor design pattern on EmptyExpression objects Implementation of the visitor design pattern on IntegerLiteral objects Implementation of the visitor design pattern on StringLiteral objects Implementation of the visitor design pattern on BooleanLiteral objects Implementation of the visitor design pattern on TypeLiteral objects Implementation of the visitor design pattern on BooleanLiteral objects Implementation of the visitor design pattern on VoidLiteral objects

Operation startTest

operation startTest(test : kermeta::kunit::Test) : Void
Increments the runtests counter
reflection::SelfType
Methods
Attributes

Class Iterator

kermeta::standard::Iterator<G>

Iterator
Methods
Attributes

Property statement

attribute statement: set kermeta::language::behavior::Expression[0..*]
Undocumented

Property ownedTypeDefinition

property ownedTypeDefinition: set kermeta::reflection::TypeDefinition[0..*] readonly
Undocumented

Class CallOnVoidTarget

kermeta::exceptions::CallOnVoidTarget inherits kermeta::exceptions::RuntimeError

Occurs when a feature is called on void

Property expression

attribute expression: kermeta::language::behavior::Expression

The code that raised the exception

Operation isSameAs

method isSameAs(element : kermeta::standard::Object) : kermeta::standard::Boolean from kermeta::standard::PrimitiveType
Undocumented

Class Object

kermeta::language::structure::Object inherits kermeta::reflection::Object, kermeta::language::structure::KMStructureVisitable
See inherited classes.

Operation parse

operation parse(expression : kermeta::standard::String) : kermeta::standard::Boolean

Parse the expression as a string
and updates the expression field and errors
Returns true if the expression was parssed sucessfuly

Property modelType

reference modelType: kermeta::reflection::VirtualTypeContainer[1..1]#virtualType
Undocumented

Class KMExpressionVisitor

kermeta::language::behavior::KMExpressionVisitor<ContextType, ResultType>
This class implements the visitor design pattern for all the classes of this Behavior package, in particular the classes that inherits from kermeta::behavior::Expression

Property language

attribute language: kermeta::language::structure::ConstraintLanguage
Undocumented

Operation clone

method clone(objectToClone : kermeta::language::structure::Object) : kermeta::language::structure::Object from kermeta::language::structure::DataType
Undocumented

Class VirtualType

kermeta::language::structure::VirtualType inherits kermeta::language::structure::ObjectTypeVariable, kermeta::reflection::VirtualType, kermeta::language::structure::KMStructureVisitable

Operation isNotEqual

method isNotEqual(element : kermeta::reflection::Object) : kermeta::language::structure::Boolean from kermeta::reflection::Object
Undocumented

Class KMStructureVisitor

kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>
Implementation of the Visitor pattern for the model elements contained in structure package

Operation toString

method toString() : kermeta::standard::String from kermeta::reflection::Object
Undocumented

Operation one

operation one() : G

returns an element from the collection or void
if the collection is empty

Operation peek

operation peek() : G

Get the element at the top of the stack

Operation remove

method remove(instance : kermeta::standard::Object) : kermeta::standard::Object from kermeta::persistence::Resource
Undocumented

Operation get

operation get(~property : kermeta::reflection::Property) : kermeta::reflection::Object

Returns the instances of the given property for this Object.

Example :

class A { reference attr : String }

Using A :

operation getAProp() is do
var a : A
var s : String
var the_attr : Property init self.getMetaClass.ownedAttribute.one
s ?= a.get(the_attr)
end

The user has to cast
the result of this method according to the type and the upper multiplicity
of this property. If upper multiplicity > 1, than the effective type of the
result is a Sequence<ThePropertyName>. Otherwise, the type corresponds to
the name of the given Property (i.e the type of the property instance).
reflection::ModelTypeVariable
Methods
Attributes

Operation exists

operation exists(func : < G->kermeta::standard::Boolean >) : kermeta::standard::Boolean

checks that the condition is true for at least one element of the collection
returns false if the collection is empty
Methods
Attributes

Operation acceptKMExpressionVisitor

method acceptKMExpressionVisitor<ContextType, ResultType>(visitor : kermeta::language::behavior::KMExpressionVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::behavior::KMExpressionVisitable
Undocumented

Operation deepClone

operation deepClone(objectToClone : kermeta::language::structure::Object) : kermeta::language::structure::Object
Undocumented

Operation isNotEqual

operation isNotEqual(element : kermeta::reflection::Object) : kermeta::reflection::Boolean
Undocumented

Class PrimitiveType

kermeta::language::structure::PrimitiveType inherits kermeta::language::structure::TypeContainer, kermeta::language::structure::DataType, kermeta::reflection::PrimitiveType, kermeta::language::structure::KMStructureVisitable

Operation removeAt

method removeAt(index : kermeta::standard::Integer) : Void from kermeta::standard::OrderedCollection
Undocumented
standard::Iterator
Methods
Attributes

Property variable

reference variable: kermeta::reflection::TypeVariable[1..1]
Undocumented
behavior::SelfExpression
Methods
Attributes

Operation run

operation run(test_class : kermeta::language::structure::Class) : Void
Run a test suite from the given test case (test_class should be a class
that inherits TestCase

Operation unionWithBag

operation unionWithBag(elements : kermeta::standard::Bag<G>) : kermeta::standard::Bag<G>
returns the union of a bag of elements and the Set

Property body

attribute body: kermeta::language::behavior::Expression
Undocumented

Property body

attribute body: kermeta::language::behavior::Expression
Undocumented

Class CallExpression

kermeta::language::behavior::CallExpression inherits kermeta::language::behavior::Expression

Any callable expression inherits this class, e.g :
- variable call
- feature call ( a.b : b is a feature call)


Operation remove

operation remove(element : G) : Void

Remove an element from the collection

Class LambdaParameter

kermeta::language::behavior::LambdaParameter inherits kermeta::reflection::Object, kermeta::language::behavior::KMExpressionVisitable

Refers to parameter definition in lambda expression

Property thenBody

attribute thenBody: kermeta::language::behavior::Expression[1..1]
Undocumented

Property type

reference type: kermeta::reflection::Type[1..1]
Undocumented

Property formalParameters

reference formalParameters: kermeta::utils::Hashtable<kermeta::standard::String, kermeta::reflection::Type>

Formal parameters of the expression

Class Real

kermeta::standard::Real inherits kermeta::standard::Numeric

class Real

Operation assertTrue

operation assertTrue(bool : kermeta::standard::Boolean) : Void

will fail if bool is false

Class VirtualTypeContainer

kermeta::language::structure::VirtualTypeContainer inherits kermeta::language::structure::Object, kermeta::reflection::VirtualTypeContainer
See inherited classes.

Class StdIO

kermeta::io::StdIO

An implementation of StdIO : standard input/output

Operation visitEnumerationLiteral

operation visitEnumerationLiteral(node : kermeta::language::structure::EnumerationLiteral, context : ContextType) : ResultType
Undocumented

Operation last

operation last() : G
returns the last element in the OrderedCollection

Property getterBody

attribute getterBody: kermeta::language::behavior::Expression
Undocumented

Property rootContents

property rootContents: set kermeta::standard::Object[0..*] readonly

- returns the rootContents of the model saved in/loaded from the given uri, excluding
the models from the dependent resources

Package utils

kermeta::utils

Contains special classes (Hashtable, Stack) that are not contained in Kermeta
metamodel
interpreter::TypeError
Methods
Attributes

Class ModelTypeDefinition

kermeta::language::structure::ModelTypeDefinition inherits kermeta::language::structure::GenericTypeDefinition, kermeta::language::structure::TypeDefinitionContainer, kermeta::reflection::ModelTypeDefinition, kermeta::language::structure::KMStructureVisitable
See inherited classes.
Classes

Operation addAt

method addAt(index : kermeta::standard::Integer, element : G) : Void from kermeta::standard::OrderedSet
Undocumented

Operation visitVirtualType

operation visitVirtualType(node : kermeta::language::structure::VirtualType, context : ContextType) : ResultType
Undocumented

Property value

attribute value: kermeta::reflection::Boolean
Undocumented

Property isComposite

attribute isComposite: kermeta::reflection::Boolean
Undocumented

Class TestCase

kermeta::kunit::TestCase inherits kermeta::kunit::Test

A test case contains a set of testOperations.
See TestRunner class to find how to run a TestCase.
Related design-pattern : Command

An Example of TestCase :
 class MyTestCase inherits kermeta::kunit::TestCase

{
attribute cString : String

method setUp() is do
cString := "String"
end

method tearDown() is do
// We don't need to tearDown anything in this example.
end

operation testStringAssignment() : Void is do
var aString : String init "String"
assert(aString==cString)
// You can also add a message if assert fails :
assertTrueWithMsg(aString==cString, "expected aString == cString")
end
}

Operation visitSelfExpression

operation visitSelfExpression(node : kermeta::language::behavior::SelfExpression, context : ContextType) : ResultType
Undocumented

Operation loadTestMethodsFromTestCase

operation loadTestMethodsFromTestCase(test_type : kermeta::language::structure::Class) : kermeta::standard::Set<kermeta::kunit::Test>

load in the testSuiteClass all the methods prefixed by test
params :
- testCaseClass : the TestCase class where we get the testOperations
// FIXME / I would like to do "TestType inherits TestCase"

Property typeParameter

reference typeParameter: set kermeta::reflection::TypeVariable[0..*]
Undocumented

Operation clear

method clear() : Void from kermeta::language::ReflectiveCollection
Undocumented

Class Loop

kermeta::language::behavior::Loop inherits kermeta::language::behavior::Expression, kermeta::language::behavior::KMExpressionVisitable

Loop refers to from var x : X init a until booleanCondition loop ... end
Methods
Attributes

Operation toString

method toString() : kermeta::standard::String from kermeta::reflection::Object
Undocumented
behavior::Expression
Methods
Attributes

Operation minus

operation minus(elements : kermeta::standard::Set<G>) : kermeta::standard::Set<G>
returns the difference of elements and the Set: the elements of the Set
that are not in elements

Operation acceptKMStructureVisitor

method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitable
Undocumented

Class TypeReference

kermeta::language::behavior::TypeReference inherits kermeta::reflection::MultiplicityElement, kermeta::language::behavior::KMExpressionVisitable

TypeReference refers to the type used in a variable declaration

Class TypeDefinition

kermeta::language::structure::TypeDefinition inherits kermeta::language::structure::NamedElement, kermeta::reflection::TypeDefinition, kermeta::language::structure::KMStructureVisitable
See inherited classes.

Property typeref

attribute typeref: kermeta::language::behavior::TypeReference[1..1]
The type refered by this literal

Operation visitEmptyExpression

operation visitEmptyExpression(node : kermeta::language::behavior::EmptyExpression, context : ContextType) : ResultType
Undocumented

Operation visitBooleanLiteral

operation visitBooleanLiteral(node : kermeta::language::behavior::BooleanLiteral, context : ContextType) : ResultType
Undocumented

Class EnumerationLiteral

kermeta::reflection::EnumerationLiteral inherits kermeta::reflection::NamedElement
Item definition for enumeration
structure::Package
Methods
Attributes

Operation isKindOf

method isKindOf(cl : kermeta::reflection::Class) : kermeta::language::structure::Boolean from kermeta::reflection::Object
Undocumented

Operation visitTag

operation visitTag(node : kermeta::language::structure::Tag, context : ContextType) : ResultType
Undocumented

Class SelfType

kermeta::reflection::SelfType inherits kermeta::reflection::Type

Self type : DEPRECATED

Class ConstraintViolatedInv

kermeta::exceptions::ConstraintViolatedInv inherits kermeta::exceptions::Exception
See inherited classes.

Property elseBody

attribute elseBody: kermeta::language::behavior::Expression
Undocumented

Operation printTestResult

operation printTestResult() : Void

Prints in a text format the result of the tests launches
TODO : a specific set of class that inherit TestResult and display
it according to a specific format

Class Class

kermeta::reflection::Class inherits kermeta::reflection::ParameterizedType
Type corresponding to the use of a ClassDefinition (see ClassDefinition)

Operation acceptKMExpressionVisitor

method acceptKMExpressionVisitor<ContextType, ResultType>(visitor : kermeta::language::behavior::KMExpressionVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::behavior::KMExpressionVisitable
Undocumented
reflection::DataType
Methods
Attributes

Operation add

operation add(obj : kermeta::reflection::Object) : Void
add an object to the model. According to the ModelType, the typechecker will statically verify if the object can be added or not

Class JavaStaticCall

kermeta::language::behavior::JavaStaticCall inherits kermeta::language::behavior::Expression, kermeta::language::behavior::KMExpressionVisitable
This class represent a call to an extern Java operation.
This Java operation must be static and have at least one RuntimeO

Property value

attribute value: kermeta::reflection::Integer
Undocumented

Operation acceptKMStructureVisitor

method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitable
Undocumented

Operation elementAt

operation elementAt(index : kermeta::standard::Integer) : G

returns the element at index in the OrderedCollection

Operation add

method add(element : G) : Void from kermeta::standard::Set
Undocumented

Class Test

kermeta::kunit::Test inherits kermeta::kunit::Assert

Abstract class Test. Interface for single and composite object (TestCase and TestSuite)

Operation visitConstraint

operation visitConstraint(node : kermeta::language::structure::Constraint, context : ContextType) : ResultType
Undocumented

Alias Object

kermeta::standard::Object
Undocumented

Alias String

kermeta::reflection::String
Undocumented

Operation compareTo

method compareTo(other : kermeta::standard::Object) : kermeta::standard::Integer from kermeta::standard::Comparable
Undocumented

Property testClass

reference testClass: kermeta::language::structure::Class
Undocumented

Operation clear

method clear() : Void from kermeta::standard::Collection
Undocumented

Operation acceptKMStructureVisitor

method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitable
Undocumented

Property left

reference left: kermeta::reflection::Type
Undocumented

Operation intersection

operation intersection(elements : kermeta::standard::Bag<G>) : kermeta::standard::Bag<G>
returns the intersection of elements and the Bag

Operation equals

method equals(element : kermeta::standard::Object) : kermeta::standard::Boolean from kermeta::standard::OrderedCollection
Undocumented

Class String

kermeta::standard::String inherits kermeta::standard::ValueType, kermeta::standard::Comparable

The class String

Class ModelTypeVariable

kermeta::reflection::ModelTypeVariable inherits kermeta::reflection::TypeVariable, kermeta::reflection::VirtualTypeContainer
See inherited classes.

Operation initializeContentMap

operation initializeContentMap() : Void

Create an hashtable with appropriates keys and empty collections. This method
should not be called by the end-user
Methods
Attributes

Operation checkAllInvariants

operation checkAllInvariants() : Void
Undocumented
structure::TypedElement
Methods
Attributes

Operation acceptKMStructureVisitor

method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitable
Undocumented
Methods
Attributes

Operation visitVoidType

operation visitVoidType(node : kermeta::language::structure::VoidType, context : ContextType) : ResultType
Undocumented

Operation toString

method toString() : kermeta::standard::String from kermeta::reflection::Object
Undocumented
reflection::Package
Methods
Attributes

Class SelfExpression

kermeta::language::behavior::SelfExpression inherits kermeta::language::behavior::Expression, kermeta::language::behavior::KMExpressionVisitable

refers to self use

Property allOwnedAttribute

property allOwnedAttribute: set kermeta::reflection::Property[0..*] readonly
Returns all the attributes, references, derived properties of this
class definition including the inherited ones
exceptions::RuntimeError
Methods
Attributes

Class TypeVariableBinding

kermeta::language::structure::TypeVariableBinding inherits kermeta::language::structure::TypeContainer, kermeta::language::structure::Object, kermeta::reflection::TypeVariableBinding, kermeta::language::structure::KMStructureVisitable
See inherited classes.

Operation visitOperation

operation visitOperation(node : kermeta::language::structure::Operation, context : ContextType) : ResultType
Undocumented

Property right

reference right: kermeta::reflection::Type
Undocumented

Property typeContainer

reference typeContainer: kermeta::reflection::TypeContainer[1..1]#containedType
Undocumented

Operation acceptKMStructureVisitor

method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitable
Undocumented
reflection::NamedElement
Methods
Attributes

Operation checkInvariants

operation checkInvariants() : Void
Undocumented

Operation acceptKMExpressionVisitor

method acceptKMExpressionVisitor<ContextType, ResultType>(visitor : kermeta::language::behavior::KMExpressionVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::behavior::KMExpressionVisitable
Undocumented

Class EMFResource

kermeta::persistence::EMFResource inherits kermeta::persistence::Resource

Extension of the Resource class definition that is specific to EMF Repository.
Methods
Attributes

Class TypeError

kermeta::interpreter::TypeError inherits kermeta::interpreter::KermetaError
See inherited classes.

Operation visitPrimitiveType

operation visitPrimitiveType(node : kermeta::language::structure::PrimitiveType, context : ContextType) : ResultType
Undocumented

Package kermeta

kermeta
The root package. See the other packages if you want to browse the classes of Kermeta api.

Operation isInstance

method isInstance(object : kermeta::reflection::Object) : kermeta::language::structure::Boolean from kermeta::reflection::Type
Undocumented

Property selfClass

reference selfClass: kermeta::reflection::ClassDefinition

The type of the self object
or void if the expression is not to be executed
in the context of an object

Class LambdaExpression

kermeta::language::behavior::LambdaExpression inherits kermeta::language::behavior::Expression, kermeta::language::behavior::KMExpressionVisitable

Refers to lambda expression definition (function { e | stdio.writeln(e.toString) })

Property resources

attribute resources: set kermeta::persistence::Resource[0..*]#repository
The resources created by this repository

Operation visitBlock

operation visitBlock(node : kermeta::language::behavior::Block, context : ContextType) : ResultType
Undocumented

Operation isModelTypeOf

method isModelTypeOf(m : kermeta::reflection::Model) : kermeta::language::structure::Boolean from kermeta::reflection::ModelType
Undocumented

Class Conditional

kermeta::language::behavior::Conditional inherits kermeta::language::behavior::Expression, kermeta::language::behavior::KMExpressionVisitable

Condition is the model-element representation for the
Methods
Attributes

Class ParameterizedType

kermeta::reflection::ParameterizedType inherits kermeta::reflection::Type
Abstraction for Parameterized types, namely, Class and ModelType
Methods
Attributes

Operation reject

operation reject(rejector : < G->kermeta::standard::Boolean >) : kermeta::standard::Sequence<G>

Passes each element of the collection to rejector.
returns a Collection for all elements for which rejector is false
Methods
Attributes

Operation isNotSameAs

method isNotSameAs(element : kermeta::standard::Object) : kermeta::standard::Boolean from kermeta::standard::PrimitiveType
Undocumented

Operation isKindOf

operation isKindOf(cl : kermeta::reflection::Class) : kermeta::reflection::Boolean
Check if the current object is an instance of the given class.

Operation visitDataType

operation visitDataType(node : kermeta::language::structure::DataType, context : ContextType) : ResultType
Undocumented

Class ParameterizedType

kermeta::language::structure::ParameterizedType inherits kermeta::language::structure::Type, kermeta::reflection::ParameterizedType, kermeta::language::structure::KMStructureVisitable
See inherited classes.

Class Expression

kermeta::language::behavior::Expression inherits kermeta::reflection::Object, kermeta::reflection::TypeContainer

The base class for every entity used to define a behavior in operation body.

Property tests

reference tests: kermeta::kunit::Test[0..*]

The set of contained tests

Property opposite

reference opposite: kermeta::reflection::Property
Undocumented

Operation visitEnumeration

operation visitEnumeration(node : kermeta::language::structure::Enumeration, context : ContextType) : ResultType
Undocumented
structure::Enumeration
Methods
Attributes

Property raised

reference raised: kermeta::exceptions::Exception
Undocumented

Operation next

operation next() : G

returns the next element of the iterator

Operation visitCallSuperOperation

operation visitCallSuperOperation(node : kermeta::language::behavior::CallSuperOperation, context : ContextType) : ResultType
Undocumented

Operation addAll

operation addAll(elements : kermeta::standard::Collection<G>) : Void

Add all elements from the collection elements in the collection

Property classDefinition

reference classDefinition: kermeta::reflection::ClassDefinition[1..1]
Undocumented

Class Bag

kermeta::standard::Bag<G> inherits kermeta::standard::Collection<G>

A Bag is a concrete implementation of a Collection
Methods
Attributes

Operation runTest

method runTest() : Void from kermeta::kunit::Test
Undocumented

Class DataType

kermeta::reflection::DataType inherits kermeta::reflection::TypeDefinition, kermeta::reflection::Type
Special type definition for Enumeration, PrimitiveType

Operation contains

operation contains(element : G) : kermeta::standard::Boolean

returns true if the collection contains element

Operation add

method add(element : G) : Void from kermeta::language::ReflectiveCollection
Undocumented
Methods
Attributes

Property ownedLiteral

attribute ownedLiteral: set kermeta::reflection::EnumerationLiteral[0..*]#~enumeration
Owned item in enumeration

Operation visitVoidLiteral

operation visitVoidLiteral(node : kermeta::language::behavior::VoidLiteral, context : ContextType) : ResultType
Undocumented

Operation order

operation order() : kermeta::standard::Integer

give the order number of the failed assert

Operation union

operation union(elements : kermeta::standard::Collection<G>) : kermeta::standard::Bag<G>
returns the union of elements and the Bag

Property superOperation

reference superOperation: kermeta::reflection::Operation
Undocumented

Operation equals

method equals(element : kermeta::standard::Object) : kermeta::standard::Boolean from kermeta::reflection::Object
Undocumented

Operation isSameAs

method isSameAs(element : kermeta::reflection::Object) : kermeta::language::structure::Boolean from kermeta::reflection::Object
Undocumented

Operation checkAllInvariants

method checkAllInvariants() : Void from kermeta::reflection::Object
Undocumented

Operation visitCallFeature

operation visitCallFeature(node : kermeta::language::behavior::CallFeature, context : ContextType) : ResultType
Undocumented

Property body

attribute body: kermeta::language::behavior::Expression
Undocumented

Operation isSubType

operation isSubType(element : kermeta::reflection::Type) : kermeta::reflection::Boolean
Undocumented

Operation get

method get(~property : kermeta::reflection::Property) : kermeta::reflection::Object from kermeta::reflection::Object
Undocumented

Operation append

operation append(other : kermeta::standard::String) : Void

Appends other at the end of self

Property isOrdered

attribute isOrdered: kermeta::reflection::Boolean
Undocumented

Operation add

method add(instance : kermeta::standard::Object) : Void from kermeta::persistence::Resource
Undocumented

Operation isModelTypeOf

operation isModelTypeOf(model : kermeta::reflection::Model) : kermeta::reflection::Boolean
Undocumented

Operation acceptKMStructureVisitor

method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitable
Undocumented

Operation isOff

operation isOff() : kermeta::standard::Boolean

Returns true if the iterator is on the last element
i.e. returns not self.hasNext()

Operation equals

method equals(element : kermeta::standard::Object) : kermeta::standard::Boolean from kermeta::reflection::Object
Undocumented

Class ResourceSaveException

kermeta::persistence::ResourceSaveException inherits kermeta::exceptions::Exception
See inherited classes.

Operation assertTrueWithMsg

operation assertTrueWithMsg(bool : kermeta::standard::Boolean, msg : kermeta::standard::String) : Void

will fail if bool is false

Operation save

operation save() : Void
Save a model instance, in the file specified by the initial uri
Overrides the old version.
Save a resource in a file referenced by the uri associated to the resource

Class TypedElement

kermeta::language::structure::TypedElement inherits kermeta::language::structure::TypeContainer, kermeta::language::structure::NamedElement, kermeta::reflection::TypedElement, kermeta::language::structure::KMStructureVisitable
See inherited classes.

Property name

attribute name: kermeta::reflection::String
Undocumented
structure::Tag
Methods
Attributes

Class Parameter

kermeta::reflection::Parameter inherits kermeta::reflection::MultiplicityElement
Definition for operation parameter
structure::Parameter
Methods
Attributes
structure::TypeContainer
Methods
Attributes

Operation visitType

operation visitType(node : kermeta::language::structure::Type, context : ContextType) : ResultType
Undocumented

Property virtualType

attribute virtualType: set kermeta::reflection::VirtualType[0..*]#modelType
Undocumented

Class Package

kermeta::reflection::Package inherits kermeta::reflection::TypeDefinitionContainer

Package in kermeta. Each kermeta model must have a root package.

Class RuntimeError

kermeta::exceptions::RuntimeError inherits kermeta::exceptions::Exception

Exception for interpreter exceptions