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
Contains a set of classes whose function is to evaluate a kermeta
expression written as a string.
Execute the expression given as a string.
the self type and formal parameters are supposed to be set
before calling this operation
Execute the expression in the given context
initialise the formalParameters with an empty set of parameters
and the self type with void
Parse the expression as a string
and updates the expression field and errors
Returns true if the expression was parssed sucessfuly
Parse errors and type errors
Formal parameters of the expression
The type of the self object
or void if the expression is not to be executed
in the context of an object
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)
Contains the classes that handle the serialization of models, in particular
EMF models.
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.
Repository that stores and manages resources that come from EMF
Create an hashtable with appropriates keys and empty collections. This method
should not be called by the end-user
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
Extension of the Resource class definition that is specific to EMF Repository.
Repository that stores and manages XMI files representing Kermeta models
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
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.
- returns the rootContents of the model saved in/loaded from the given uri, excluding
the models from the dependent resources
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?
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.
will fail if bool is true
will fail if bool is true
will fail if bool is false
will fail if bool is false
raise a AssertionViolatedException with the provided message
give the order number of the failed assert
The abstract class assert defines a set of convinient operations
to assert expected behavior and give the rank of failed assert
AssertionViolatedException are raised when assertions are violated
Run the test
Execute the test case
Execute all tests of the suite
Abstract class Test. Interface for single and composite object (TestCase and TestSuite)
Initialize the test case
params :
- name : the name of the test case : must be the name of the testOperation
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 :
An instance of this class is created when an assertion failed or an exception
was raised.
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"
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
Recursively check if this class inherits from the class TestCase
this function is not really for external usage
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
User instantiates this class to run a TestSuite or a TestCase
Usage :
Create a file, and add in the "require" place :
Create a class, which will be the one that you will launch :
A test suite is composed of a set of tests (which can inherit either of TestSuite
or TestCase)
Related design-pattern : Composite
Contains the implementation of Kermeta reflective collections.
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.
ReflectiveSequence is an ordered ReflectiveCollection.
Contains the definition of a Kermeta exception and a few basic exceptions.
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.
Occurs when a feature is called on void
Any nested exception
The stack trace as a String
Filled by the interpreted when the exception is raised
Generic exceptions
The main class from which all the exception inherit
Use this exception whenyou want to forbid the access to an unimplemented operation
and invite to implement it
The code that raised the exception
Exception for interpreter exceptions
Use this exception when user tries to add an element to a property which type is collection
which has an upper bound != -1 ( ie *)
Contains Input/Output related classes.
read an object from standard input
write the object to standard output
writeln the object to standard output
An implementation of StdIO : standard input/output
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.
Type used to define the use of lambda expressions.
Uses :
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
Abstracts the definition of generic type definitions (i.e. type definitions that
can be parameterized), namely, for ClassDefinition and ModelTypeDefinition.
Returns the instances of the given property for this Object.
Example :
Using A :
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).
Object type : all entities of Kermeta metamodel explicitely inherit Object.
Package in kermeta. Each kermeta model must have a root package.
Self type : DEPRECATED
Abstraction for type definitions (ClassDefinition, ModelTypeDefinition, DataType inherit
this class)
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.
Contains special classes (Hashtable, Stack) that are not contained in Kermeta
metamodel
Remove all elements from the Hashtable
returns the value for key 'key'
returns an iterator on the keys of the map
Adds a entry in the Hashtable
Removes the entry which key equals 'key'
returns an iterator on the keys of the map
An implementation of hashtable
Get the element at the top of the stack
Get the element at the top of the stack and
removes it from the stack
Push an element in the stack
An implementation of stack
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
A Bag is a concrete implementation of a Collection
The class Character
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.
Add all elements from the collection elements in the collection
Remove all elements from the collection
returns a new Collection with the results of running collector
once for every element in self.
returns true if the collection contains element
returns true if the collection contains all elements
Returns the nb of instances of 'element' in the collection
Passes each element of the collection to detector.
Returns the first element for which detector is not false.
Returns void if no object matches.
runs func on each element of the collection
returns true if the collection is empty
Returns true if the collection does not contain element
Returns true if the collection contains none of elements
checks that the condition is true for at least one element of the collection
returns false if the collection is empty
checks that the condition is true on all the element of the collection
returns true if the collection is empty
returns an iterator on the collection
returns an element from the collection or void
if the collection is empty
Passes each element of the collection to rejector.
returns a Collection for all elements for which rejector is false
Remove an element from the collection
Passes each element of the collection to selector.
returns a Collection for all elements for which selector is true
returns the number of elements in the collection
Collection is the root abstract class for all kermeta collections
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
return true if self > other
return true if self > other
return true if self >= other
return true if self >= other
return true if self < other
return true if self < other
return true if self <= other
return true if self <= other
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
returns self / other
returns self - other
returns self modulo other
returns self * other
returns self + other
Iteration
returns true if the iterator has a next element
Returns true if the iterator is on the last element
i.e. returns not self.hasNext()
returns the next element of the iterator
Iterator
The abstract class Numeric is the root class for all
numeric types
adds element in the OrderedCollection at index
Overrides addAt to ensure element uniqueness
returns the element at index in the OrderedCollection
removes the element at index of the OrderedCollection
An OrderedCollection is the root abstract class for all ordered Collections.
an OrderedSet is a Set that contained ordered distinct elements, accessible by
their index. (see AddAt method)
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
returns self / other
returns self - other
returns self * other
returns self + other
A Sequence is an ordered collection of elements
A Set is a collection that contains distinct elements
Appends other at the end of self
returns the character at index in the String
returns the index within this string of the first
occurrence of the specified substring
returns a new string self + other
returns a new string that is a substring of this string
The class String
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
Unlimited natural is used for reflection.
It is mapped to integer.equals().
Any negative number is interpreted as '*'
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.
The class Void
By convention it is a sub-type of everything
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
Assignment is the model-element representation of the assignment statement
Block is the model-element representation for the
Any callable expression inherits this class, e.g :
- variable call
- feature call (
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
CallValue refers to the use of the
only used in the body of the
We call "CallVariable" the use of a variable in a statement.
in
Condition is the model-element representation for the
The base class for every entity used to define a behavior in operation body.
Refers to lambda expression definition (
Refers to parameter definition in lambda expression
Literal refers to String values, Integer values, etc.
Loop refers to
refers to raise exception block
refers to rescue exception block
refers to
TypeReference refers to the type used in a variable declaration
refers to variable declaration
Contains the concrete implementation (including the operation bodies)
of the classes of the
documentation for elements marked as "Undocumented", please take a look
at the
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 kermeta
kermeta The root package. See the other packages if you want to browse the classes of Kermeta api.
Package interpreter
kermeta::interpreterContains 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::ObjectExecute 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::ObjectExecute the expression in the given context
Operation initializeDefaults
operation initializeDefaults() : Voidinitialise the formalParameters with an empty set of parameters
and the self type with void
Operation parse
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 formalParameters
reference formalParameters: kermeta::utils::Hashtable<kermeta::standard::String, kermeta::reflection::Type>Formal parameters of the expression
Property selfClass
reference selfClass: kermeta::reflection::ClassDefinitionThe 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::DynamicExpressionDynamicExpression 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::ExceptionSee inherited classes.
Class KermetaError
kermeta::interpreter::KermetaErrorUndocumented
Class ParseError
kermeta::interpreter::ParseError inherits kermeta::interpreter::KermetaErrorSee inherited classes.
Class TypeError
kermeta::interpreter::TypeError inherits kermeta::interpreter::KermetaErrorSee inherited classes.
Package persistence
kermeta::persistenceContains 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::RepositoryUndocumented
Operation getResource
method getResource(uri : kermeta::standard::String) : kermeta::persistence::Resource from kermeta::persistence::RepositoryUndocumented
Property useInterpreterInternalResources
attribute useInterpreterInternalResources: kermeta::standard::BooleanIf 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::RepositoryRepository that stores and manages resources that come from EMF
Operation add
method add(instance : kermeta::standard::Object) : Void from kermeta::persistence::ResourceUndocumented
Operation initializeContentMap
operation initializeContentMap() : VoidCreate 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::BooleanHelper 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::ResourceUndocumented
Operation remove
method remove(instance : kermeta::standard::Object) : kermeta::standard::Object from kermeta::persistence::ResourceUndocumented
Operation save
method save() : Void from kermeta::persistence::ResourceUndocumented
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
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::ResourceUndocumented
Class EMFResource
kermeta::persistence::EMFResource inherits kermeta::persistence::ResourceExtension 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::RepositoryUndocumented
Operation getResource
method getResource(uri : kermeta::standard::String) : kermeta::persistence::Resource from kermeta::persistence::RepositoryUndocumented
Class KMRepository
kermeta::persistence::KMRepository inherits kermeta::persistence::RepositoryRepository that stores and manages XMI files representing Kermeta models
Operation add
method add(instance : kermeta::standard::Object) : Void from kermeta::persistence::ResourceUndocumented
Operation load
method load() : Void from kermeta::persistence::ResourceUndocumented
Operation remove
method remove(instance : kermeta::standard::Object) : kermeta::standard::Object from kermeta::persistence::ResourceUndocumented
Operation save
method save() : Void from kermeta::persistence::ResourceUndocumented
Class KMResource
kermeta::persistence::KMResource inherits kermeta::persistence::ResourceSee inherited classes.
Operation createResource
operation createResource(uri : kermeta::standard::String, mm_uri : kermeta::standard::String) : kermeta::persistence::ResourceCreate 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
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.
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)
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
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.
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
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
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
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
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
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
Class Resource
kermeta::persistence::ResourceThe 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::ExceptionSee 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::kunitContains 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 assertFalse
operation assertFalse(bool : kermeta::standard::Boolean) : Voidwill fail if bool is true
Operation assertFalseWithMsg
operation assertFalseWithMsg(bool : kermeta::standard::Boolean, msg : kermeta::standard::String) : Voidwill fail if bool is true
Operation assertTrue
operation assertTrue(bool : kermeta::standard::Boolean) : Voidwill fail if bool is false
Operation assertTrueWithMsg
operation assertTrueWithMsg(bool : kermeta::standard::Boolean, msg : kermeta::standard::String) : Voidwill fail if bool is false
Operation fail
operation fail(msg : kermeta::standard::String) : Voidraise a AssertionViolatedException with the provided message
Operation order
operation order() : kermeta::standard::Integergive the order number of the failed assert
Class Assert
kermeta::kunit::AssertThe 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::ExceptionAssertionViolatedException are raised when assertions are violated
Operation run
operation run(r : kermeta::kunit::TestResult) : VoidRun 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
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.
tidy.
Class Test
kermeta::kunit::Test inherits kermeta::kunit::AssertAbstract class Test. Interface for single and composite object (TestCase and TestSuite)
Operation createDefaultTestResult
operation createDefaultTestResult() : kermeta::kunit::TestResultUndocumented
Operation initialize
operation initialize(name : kermeta::standard::String) : VoidInitialize 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::TestUndocumented
Operation runTest
method runTest() : Void from kermeta::kunit::TestUndocumented
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
This is a "pluggable" selector
Class TestCase
kermeta::kunit::TestCase inherits kermeta::kunit::TestA 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
}
Class TestFailure
kermeta::kunit::TestFailureAn instance of this class is created when an assertion failed or an exception
was raised.
Operation initialize
operation initialize() : VoidUndocumented
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"
Class TestLoader
kermeta::kunit::TestLoaderOperation addError
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::TestFailureUndocumented
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
Class TestResult
kermeta::kunit::TestResultGet 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 doesInheritFromTestCase
operation doesInheritFromTestCase(test_class : kermeta::reflection::Class) : kermeta::standard::BooleanRecursively check if this class inherits from the class TestCase
this function is not really for external usage
Operation initialize
operation initialize() : VoidUndocumented
Operation printTestResult
operation printTestResult() : VoidPrints 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
that inherits TestCase
Class TestRunner
kermeta::kunit::TestRunnerUser 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 run
method run(test_result : kermeta::kunit::TestResult) : Void from kermeta::kunit::TestUndocumented
Operation runTest
method runTest() : Void from kermeta::kunit::TestUndocumented
Class TestSuite
kermeta::kunit::TestSuite inherits kermeta::kunit::TestA test suite is composed of a set of tests (which can inherit either of TestSuite
or TestCase)
Related design-pattern : Composite
Package language
kermeta::languageContains the implementation of Kermeta reflective collections.
Operation add
method add(element : G) : Void from kermeta::standard::SetUndocumented
Operation clear
method clear() : Void from kermeta::standard::CollectionUndocumented
Operation remove
method remove(element : G) : Void from kermeta::standard::CollectionUndocumented
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::ReflectiveCollectionUndocumented
Operation addAt
method addAt(index : kermeta::standard::Integer, element : G) : Void from kermeta::standard::OrderedSetUndocumented
Operation clear
method clear() : Void from kermeta::language::ReflectiveCollectionUndocumented
Operation remove
method remove(element : G) : Void from kermeta::language::ReflectiveCollectionUndocumented
Operation removeAt
method removeAt(index : kermeta::standard::Integer) : Void from kermeta::standard::OrderedCollectionUndocumented
Class ReflectiveSequence
kermeta::language::ReflectiveSequence<G> inherits kermeta::standard::OrderedSet<G>, kermeta::language::ReflectiveCollection<G>ReflectiveSequence is an ordered ReflectiveCollection.
Package exceptions
kermeta::exceptionsContains the definition of a Kermeta exception and a few basic exceptions.
Class AbstractClassInstantiationError
kermeta::exceptions::AbstractClassInstantiationError inherits kermeta::exceptions::RuntimeErrorCreation 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::RuntimeErrorOccurs when a feature is called on void
Class ConstraintViolatedInv
kermeta::exceptions::ConstraintViolatedInv inherits kermeta::exceptions::ExceptionSee inherited classes.
Class ConstraintViolatedPost
kermeta::exceptions::ConstraintViolatedPost inherits kermeta::exceptions::ExceptionSee inherited classes.
Class ConstraintViolatedPre
kermeta::exceptions::ConstraintViolatedPre inherits kermeta::exceptions::ExceptionSee inherited classes.
Class DivisionByZero
kermeta::exceptions::DivisionByZero inherits kermeta::exceptions::ExceptionSee inherited classes.
Class EmptyCollection
kermeta::exceptions::EmptyCollection inherits kermeta::exceptions::ExceptionSee inherited classes.
Property nestedException
attribute nestedException: kermeta::exceptions::ExceptionAny nested exception
Property stackTrace
attribute stackTrace: kermeta::standard::StringThe stack trace as a String
Filled by the interpreted when the exception is raised
Class Exception
kermeta::exceptions::ExceptionGeneric exceptions
The main class from which all the exception inherit
Class IndexOutOfBound
kermeta::exceptions::IndexOutOfBound inherits kermeta::exceptions::ExceptionSee inherited classes.
Class IteratorIsOff
kermeta::exceptions::IteratorIsOff inherits kermeta::exceptions::ExceptionSee inherited classes.
Class NotImplementedException
kermeta::exceptions::NotImplementedException inherits kermeta::exceptions::RuntimeErrorUse 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::ExceptionSee inherited classes.
Property expression
attribute expression: kermeta::language::behavior::ExpressionThe code that raised the exception
Class RuntimeError
kermeta::exceptions::RuntimeError inherits kermeta::exceptions::ExceptionException for interpreter exceptions
Class StringIndexOutOfBound
kermeta::exceptions::StringIndexOutOfBound inherits kermeta::exceptions::ExceptionSee inherited classes.
Class UpperBoundReachedError
kermeta::exceptions::UpperBoundReachedError inherits kermeta::exceptions::RuntimeErrorUse 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::ioContains Input/Output related classes.
Operation read
read an object from standard input
Operation write
operation write(object : kermeta::standard::String) : Voidwrite the object to standard output
Operation writeln
operation writeln(object : kermeta::standard::String) : Voidwriteln the object to standard output
Class StdIO
kermeta::io::StdIOAn implementation of StdIO : standard input/output
Package reflection
kermeta::reflectionContains 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 toString
method toString() : kermeta::reflection::String from kermeta::reflection::ObjectUndocumented
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.
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
class definition including the inherited ones
Property isAbstract
attribute isAbstract: kermeta::reflection::BooleanUndocumented
Property ownedAttribute
attribute ownedAttribute: set kermeta::reflection::Property[0..*]#owningClass Returns the attributes, references, and derived properties owned by
this class definition.
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 :)
A is a Class : it corresponds to the use of the class definition of A
class Ais a class definition; in :
{
attribute s : String
}
main() : A is do end
A is a Class : it corresponds to the use of the class definition of A
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)
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#ownedLiteralUndocumented
Class EnumerationLiteral
kermeta::reflection::EnumerationLiteral inherits kermeta::reflection::NamedElement Item definition for enumeration
Class FunctionType
kermeta::reflection::FunctionType inherits kermeta::reflection::TypeContainer, kermeta::reflection::TypeType 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::TypeDefinitionAbstracts 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)
Returns the list of Object that have been added (One can check that some element have been ignored or not)
Operation addCompatible
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
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
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.
instanciated this Model.
Operation isModelTypeOf
operation isModelTypeOf(model : kermeta::reflection::Model) : kermeta::reflection::BooleanUndocumented
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::VirtualTypeContainerSee inherited classes.
Property isOrdered
attribute isOrdered: kermeta::reflection::BooleanUndocumented
Property isUnique
attribute isUnique: kermeta::reflection::BooleanUndocumented
Property lower
attribute lower: kermeta::reflection::IntegerUndocumented
Property upper
attribute upper: kermeta::reflection::UnlimitedNaturalUndocumented
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.
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.
class.
Operation checkAllInvariants
operation checkAllInvariants() : VoidUndocumented
Operation checkInvariants
operation checkInvariants() : VoidUndocumented
Operation equals
operation equals(element : kermeta::reflection::Object) : kermeta::reflection::BooleanUndocumented
Operation freeze
operation freeze() : VoidUndocumented
Operation get
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 isFrozen
operation isFrozen() : kermeta::reflection::BooleanUndocumented
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::BooleanUndocumented
Operation isNotSameAs
operation isNotSameAs(element : kermeta::reflection::Object) : kermeta::reflection::BooleanUndocumented
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::BooleanUndocumented
Operation isVoid
operation isVoid() : kermeta::reflection::BooleanUndocumented
Operation oid
operation oid() : kermeta::reflection::IntegerUndocumented
Operation set
operation ~set(~property : kermeta::reflection::Property, element : kermeta::reflection::Object) : VoidUndocumented
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.
Note : throws an exception if this class has no classDefinition
or if the classDefinition is not well constructed.
Property tag
reference tag: set kermeta::reflection::Tag[0..*]#object Tags are used to put comments/documentation
Class Object
kermeta::reflection::ObjectObject type : all entities of Kermeta metamodel explicitely inherit Object.
Class ObjectTypeVariable
kermeta::reflection::ObjectTypeVariable inherits kermeta::reflection::TypeContainer, kermeta::reflection::TypeVariableSee inherited classes.
Property isAbstract
attribute isAbstract: kermeta::reflection::BooleanUndocumented
Property ownedParameter
attribute ownedParameter: set kermeta::reflection::Parameter[0..*]#~operationUndocumented
Property owningClass
reference owningClass: kermeta::reflection::ClassDefinition#ownedOperationUndocumented
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..*]#nestingPackageUndocumented
Property nestingPackage
reference nestingPackage: kermeta::reflection::Package#nestedPackageUndocumented
Property uri
attribute uri: kermeta::reflection::StringUndocumented
Class Package
kermeta::reflection::Package inherits kermeta::reflection::TypeDefinitionContainerPackage in kermeta. Each kermeta model must have a root package.
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
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
type called MyString, which instanceType is
kermeta::standard::String
alias MyString : kermeta::standard::String
Class ProductType
kermeta::reflection::ProductType inherits kermeta::reflection::TypeContainer, kermeta::reflection::TypeSee inherited classes.
Property default
attribute default: kermeta::reflection::StringUndocumented
Property isComposite
attribute isComposite: kermeta::reflection::BooleanUndocumented
Property isDerived
attribute isDerived: kermeta::reflection::BooleanUndocumented
Property isID
attribute isID: kermeta::reflection::BooleanUndocumented
Property isReadOnly
attribute isReadOnly: kermeta::reflection::BooleanUndocumented
Property owningClass
reference owningClass: kermeta::reflection::ClassDefinition#ownedAttributeUndocumented
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
- 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::TypeSelf type : DEPRECATED
Alias String
kermeta::reflection::StringUndocumented
Property name
attribute name: kermeta::reflection::StringUndocumented
Property value
attribute value: kermeta::reflection::StringUndocumented
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.
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::BooleanUndocumented
Operation isSubType
operation isSubType(element : kermeta::reflection::Type) : kermeta::reflection::BooleanUndocumented
Property typeContainer
reference typeContainer: kermeta::reflection::TypeContainer[1..1]#containedTypeUndocumented
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..*]#typeContainerUndocumented
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.
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::NamedElementAbstraction 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::NamedElementAbstraction 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.
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
in class definition
class AClass<X,Y> {}, X and Y are type variables.
Class TypeVariableBinding
kermeta::reflection::TypeVariableBinding inherits kermeta::reflection::TypeContainer, kermeta::reflection::ObjectSee inherited classes.
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.
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]#virtualTypeUndocumented
Property typeParamBinding
reference typeParamBinding: kermeta::reflection::TypeVariableBinding[0..*]Undocumented
Class VirtualType
kermeta::reflection::VirtualType inherits kermeta::reflection::ObjectTypeVariableSee inherited classes.
Property virtualType
attribute virtualType: set kermeta::reflection::VirtualType[0..*]#modelTypeUndocumented
Class VirtualTypeContainer
kermeta::reflection::VirtualTypeContainer inherits kermeta::reflection::ObjectSee inherited classes.
Class VoidType
kermeta::reflection::VoidType inherits kermeta::reflection::Type Class definition for the
Voidtype
Package utils
kermeta::utilsContains special classes (Hashtable, Stack) that are not contained in Kermeta
metamodel
Operation clear
operation clear() : VoidRemove 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) : Vreturns the value for key 'key'
Operation keyIterator
operation keyIterator() : kermeta::standard::Iterator<K>returns an iterator on the keys of the map
Operation put
operation put(key : K, ~value : V) : VoidAdds a entry in the Hashtable
Operation remove
operation remove(key : K) : VoidRemoves the entry which key equals 'key'
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() : GGet the element at the top of the stack
Operation pop
operation pop() : GGet the element at the top of the stack and
removes it from the stack
Operation push
operation push(element : G) : VoidPush an element in the stack
Class Stack
kermeta::utils::Stack<G> inherits kermeta::standard::Sequence<G>An implementation of stack
Package standard
kermeta::standardContains 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 equals
method equals(element : kermeta::standard::Object) : kermeta::standard::Boolean from kermeta::reflection::ObjectUndocumented
Operation intersection
returns the intersection of elements and the Bag
Operation intersectionWithSet
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
Undocumented
Operation equals
method equals(other : kermeta::standard::Object) : kermeta::standard::Boolean from kermeta::reflection::ObjectUndocumented
Operation implies
Undocumented
Operation isNotSameAs
method isNotSameAs(element : kermeta::standard::Object) : kermeta::standard::Boolean from kermeta::standard::PrimitiveTypeUndocumented
Operation isSameAs
method isSameAs(element : kermeta::standard::Object) : kermeta::standard::Boolean from kermeta::standard::PrimitiveTypeUndocumented
Operation nand
Undocumented
Operation or
Undocumented
Operation toString
method toString() : kermeta::standard::String from kermeta::reflection::ObjectUndocumented
Operation xor
Undocumented
Operation compareTo
method compareTo(other : kermeta::standard::Object) : kermeta::standard::Integer from kermeta::standard::ComparableUndocumented
Operation equals
method equals(other : kermeta::standard::Object) : kermeta::standard::Boolean from kermeta::reflection::ObjectUndocumented
Operation isNotSameAs
method isNotSameAs(element : kermeta::standard::Object) : kermeta::standard::Boolean from kermeta::standard::PrimitiveTypeUndocumented
Operation isSameAs
method isSameAs(element : kermeta::standard::Object) : kermeta::standard::Boolean from kermeta::standard::PrimitiveTypeUndocumented
Operation toString
method toString() : kermeta::standard::String from kermeta::reflection::ObjectUndocumented
Class Character
kermeta::standard::Character inherits kermeta::standard::ValueType, kermeta::standard::ComparableThe class Character
Operation add
operation add(element : G) : VoidAdd 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>) : VoidAdd all elements from the collection elements in the collection
Operation clear
operation clear() : VoidRemove 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::Booleanreturns true if the collection contains element
Operation containsAll
operation containsAll(elements : kermeta::standard::Collection<G>) : kermeta::standard::Booleanreturns true if the collection contains all elements
Operation count
operation count(element : G) : kermeta::standard::IntegerReturns the nb of instances of 'element' in the collection
Operation detect
operation detect(detector : < G->kermeta::standard::Boolean >) : GPasses 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 >) : Voidruns func on each element of the collection
Operation empty
operation empty() : kermeta::standard::Booleanreturns true if the collection is empty
Operation excludes
operation excludes(element : G) : kermeta::standard::BooleanReturns true if the collection does not contain element
Operation excludesAll
operation excludesAll(elements : kermeta::standard::Collection<G>) : kermeta::standard::BooleanReturns true if the collection contains none of elements
Operation exists
checks that the condition is true for at least one element of the collection
returns false if the collection is empty
Operation forAll
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() : Greturns an element from the collection or void
if the collection is empty
Operation reject
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) : VoidRemove an element from the collection
Operation select
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::Integerreturns 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::IntegerThis 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::Booleanreturn true if self > other
return true if self > other
Operation isGreaterOrEqual
operation isGreaterOrEqual(other : kermeta::standard::Object) : kermeta::standard::Booleanreturn true if self >= other
return true if self >= other
Operation isLower
operation isLower(other : kermeta::standard::Object) : kermeta::standard::Booleanreturn true if self < other
return true if self < other
Operation isLowerOrEqual
operation isLowerOrEqual(other : kermeta::standard::Object) : kermeta::standard::Booleanreturn true if self <= other
return true if self <= other
Class Comparable
kermeta::standard::ComparableThe 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::ComparableUndocumented
Operation div
returns self / other
Operation equals
method equals(other : kermeta::standard::Object) : kermeta::standard::Boolean from kermeta::reflection::ObjectUndocumented
Operation isGreater
method isGreater(other : kermeta::standard::Object) : kermeta::standard::Boolean from kermeta::standard::ComparableUndocumented
Operation isGreaterOrEqual
method isGreaterOrEqual(other : kermeta::standard::Object) : kermeta::standard::Boolean from kermeta::standard::ComparableUndocumented
Operation isLower
method isLower(other : kermeta::standard::Object) : kermeta::standard::Boolean from kermeta::standard::ComparableUndocumented
Operation isLowerOrEqual
method isLowerOrEqual(other : kermeta::standard::Object) : kermeta::standard::Boolean from kermeta::standard::ComparableUndocumented
Operation isNotSameAs
method isNotSameAs(element : kermeta::standard::Object) : kermeta::standard::Boolean from kermeta::standard::PrimitiveTypeUndocumented
Operation isSameAs
method isSameAs(element : kermeta::standard::Object) : kermeta::standard::Boolean from kermeta::standard::PrimitiveTypeUndocumented
Operation minus
returns self - other
Operation mod
returns self modulo other
Operation mult
returns self * other
Operation plus
returns self + other
Operation times
operation times(body : < kermeta::standard::Integer->kermeta::standard::Object >) : VoidIteration
Operation toString
method toString() : kermeta::standard::String from kermeta::reflection::ObjectUndocumented
Operation hasNext
operation hasNext() : kermeta::standard::Booleanreturns true if the iterator has a next element
Operation isOff
operation isOff() : kermeta::standard::BooleanReturns true if the iterator is on the last element
i.e. returns not self.hasNext()
Operation next
operation next() : Greturns the next element of the iterator
Class Iterator
kermeta::standard::Iterator<G>Iterator
Class NotComparableException
kermeta::standard::NotComparableException inherits kermeta::exceptions::ExceptionSee inherited classes.
Class Numeric
kermeta::standard::Numeric inherits kermeta::standard::Comparable, kermeta::standard::ValueTypeThe abstract class Numeric is the root class for all
numeric types
Alias Object
kermeta::standard::ObjectUndocumented
Operation addAt
operation addAt(index : kermeta::standard::Integer, element : G) : Voidadds element in the OrderedCollection at index
Overrides addAt to ensure element uniqueness
Operation elementAt
operation elementAt(index : kermeta::standard::Integer) : Greturns the element at index in the OrderedCollection
Operation equals
method equals(element : kermeta::standard::Object) : kermeta::standard::Boolean from kermeta::reflection::ObjectUndocumented
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) : Voidremoves 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::SetUndocumented
Operation addAt
method addAt(index : kermeta::standard::Integer, element : G) : Void from kermeta::standard::OrderedCollectionUndocumented
Operation equals
method equals(element : kermeta::standard::Object) : kermeta::standard::Boolean from kermeta::standard::OrderedCollectionUndocumented
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::ObjectUndocumented
Operation isSameAs
method isSameAs(element : kermeta::standard::Object) : kermeta::standard::Boolean from kermeta::reflection::ObjectUndocumented
Class PrimitiveType
kermeta::standard::PrimitiveTypeThe 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
returns self / other
Operation isNotSameAs
method isNotSameAs(element : kermeta::standard::Object) : kermeta::standard::Boolean from kermeta::standard::PrimitiveTypeUndocumented
Operation isSameAs
method isSameAs(element : kermeta::standard::Object) : kermeta::standard::Boolean from kermeta::standard::PrimitiveTypeUndocumented
Operation minus
returns self - other
Operation mult
returns self * other
Operation plus
returns self + other
Operation toString
method toString() : kermeta::standard::String from kermeta::reflection::ObjectUndocumented
Operation equals
method equals(element : kermeta::standard::Object) : kermeta::standard::Boolean from kermeta::standard::OrderedCollectionUndocumented
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::CollectionUndocumented
Operation equals
method equals(element : kermeta::standard::Object) : kermeta::standard::Boolean from kermeta::reflection::ObjectUndocumented
Operation intersection
operation intersection(elements : kermeta::standard::Collection<G>) : kermeta::standard::Set<G> returns the intersection of elements and the Set
Operation minus
returns the difference of elements and the Set: the elements of the Set
that are not in elements
that are not in elements
Operation union
returns the union of a set of elements and the Set
Operation unionWithBag
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) : VoidAppends other at the end of self
Operation compareTo
method compareTo(other : kermeta::standard::Object) : kermeta::standard::Integer from kermeta::standard::ComparableUndocumented
Operation elementAt
returns the character at index in the String
Operation equals
method equals(other : kermeta::standard::Object) : kermeta::standard::Boolean from kermeta::reflection::ObjectUndocumented
Operation indexOf
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::PrimitiveTypeUndocumented
Operation isSameAs
method isSameAs(element : kermeta::standard::Object) : kermeta::standard::Boolean from kermeta::standard::PrimitiveTypeUndocumented
Operation plus
returns a new string self + other
Operation replace
operation replace(str1 : kermeta::standard::String, str2 : kermeta::standard::String) : kermeta::standard::StringUndocumented
Operation substring
operation substring(startIndex : kermeta::standard::Integer, endIndex : kermeta::standard::Integer) : kermeta::standard::Stringreturns a new string that is a substring of this string
Operation toString
method toString() : kermeta::standard::String from kermeta::reflection::ObjectUndocumented
Class String
kermeta::standard::String inherits kermeta::standard::ValueType, kermeta::standard::ComparableThe class String
Operation toString
method toString() : kermeta::standard::String from kermeta::reflection::ObjectUndocumented
Class UnknownJavaObject
kermeta::standard::UnknownJavaObjectThis 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::UnlimitedNaturalUnlimited 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::PrimitiveTypeThe 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::ObjectUndocumented
Operation toString
method toString() : kermeta::standard::String from kermeta::reflection::ObjectUndocumented
Class Void
kermeta::standard::~VoidThe class Void
By convention it is a sub-type of everything
Package behavior
kermeta::language::behaviorContains 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::KMExpressionVisitableUndocumented
Property isCast
attribute isCast: kermeta::reflection::BooleanUndocumented
Class Assignment
kermeta::language::behavior::Assignment inherits kermeta::language::behavior::Expression, kermeta::language::behavior::KMExpressionVisitableAssignment 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::KMExpressionVisitableUndocumented
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::KMExpressionVisitableBlock 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::KMExpressionVisitableUndocumented
Property value
attribute value: kermeta::reflection::BooleanUndocumented
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::StringUndocumented
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::ExpressionAny 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::KMExpressionVisitableUndocumented
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::EnumerationLiteralUndocumented
Property staticOperation
reference staticOperation: kermeta::language::structure::OperationUndocumented
Class CallFeature
kermeta::language::behavior::CallFeature inherits kermeta::language::behavior::CallExpression, kermeta::language::behavior::KMExpressionVisitableCallFeature 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::KMExpressionVisitableUndocumented
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::KMExpressionVisitableUndocumented
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
}
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::KMExpressionVisitableUndocumented
Class CallValue
kermeta::language::behavior::CallValue inherits kermeta::language::behavior::CallExpression, kermeta::language::behavior::KMExpressionVisitableCallValue 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::KMExpressionVisitableUndocumented
Class CallVariable
kermeta::language::behavior::CallVariable inherits kermeta::language::behavior::CallExpression, kermeta::language::behavior::KMExpressionVisitableWe 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::KMExpressionVisitableUndocumented
Class Conditional
kermeta::language::behavior::Conditional inherits kermeta::language::behavior::Expression, kermeta::language::behavior::KMExpressionVisitableCondition 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::KMExpressionVisitableUndocumented
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"
Class Expression
kermeta::language::behavior::Expression inherits kermeta::reflection::Object, kermeta::reflection::TypeContainerThe 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::KMExpressionVisitableUndocumented
Property value
attribute value: kermeta::reflection::IntegerUndocumented
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::KMExpressionVisitableUndocumented
Property jclass
attribute jclass: kermeta::reflection::StringUndocumented
Property jmethod
attribute jmethod: kermeta::reflection::StringUndocumented
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
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) : ResultTypeUndocumented
Operation visitBlock
operation visitBlock(node : kermeta::language::behavior::Block, context : ContextType) : ResultTypeUndocumented
Operation visitBooleanLiteral
operation visitBooleanLiteral(node : kermeta::language::behavior::BooleanLiteral, context : ContextType) : ResultTypeUndocumented
Operation visitCallFeature
operation visitCallFeature(node : kermeta::language::behavior::CallFeature, context : ContextType) : ResultTypeUndocumented
Operation visitCallResult
operation visitCallResult(node : kermeta::language::behavior::CallResult, context : ContextType) : ResultTypeUndocumented
Operation visitCallSuperOperation
operation visitCallSuperOperation(node : kermeta::language::behavior::CallSuperOperation, context : ContextType) : ResultTypeUndocumented
Operation visitCallValue
operation visitCallValue(node : kermeta::language::behavior::CallValue, context : ContextType) : ResultTypeUndocumented
Operation visitCallVariable
operation visitCallVariable(node : kermeta::language::behavior::CallVariable, context : ContextType) : ResultTypeUndocumented
Operation visitConditional
operation visitConditional(node : kermeta::language::behavior::Conditional, context : ContextType) : ResultTypeUndocumented
Operation visitEmptyExpression
operation visitEmptyExpression(node : kermeta::language::behavior::EmptyExpression, context : ContextType) : ResultTypeUndocumented
Operation visitIntegerLiteral
operation visitIntegerLiteral(node : kermeta::language::behavior::IntegerLiteral, context : ContextType) : ResultTypeUndocumented
Operation visitJavaStaticCall
operation visitJavaStaticCall(node : kermeta::language::behavior::JavaStaticCall, context : ContextType) : ResultTypeUndocumented
Operation visitLambdaExpression
operation visitLambdaExpression(node : kermeta::language::behavior::LambdaExpression, context : ContextType) : ResultTypeUndocumented
Operation visitLambdaParameter
operation visitLambdaParameter(node : kermeta::language::behavior::LambdaParameter, context : ContextType) : ResultTypeUndocumented
Operation visitLoop
operation visitLoop(node : kermeta::language::behavior::Loop, context : ContextType) : ResultTypeUndocumented
Operation visitRaise
operation visitRaise(node : kermeta::language::behavior::Raise, context : ContextType) : ResultTypeUndocumented
Operation visitRescue
operation visitRescue(node : kermeta::language::behavior::Rescue, context : ContextType) : ResultTypeUndocumented
Operation visitSelfExpression
operation visitSelfExpression(node : kermeta::language::behavior::SelfExpression, context : ContextType) : ResultTypeUndocumented
Operation visitStringLiteral
operation visitStringLiteral(node : kermeta::language::behavior::StringLiteral, context : ContextType) : ResultTypeUndocumented
Operation visitTypeLiteral
operation visitTypeLiteral(node : kermeta::language::behavior::TypeLiteral, context : ContextType) : ResultTypeUndocumented
Operation visitTypeReference
operation visitTypeReference(node : kermeta::language::behavior::TypeReference, context : ContextType) : ResultTypeUndocumented
Operation visitVariableDecl
operation visitVariableDecl(node : kermeta::language::behavior::VariableDecl, context : ContextType) : ResultTypeUndocumented
Operation visitVoidLiteral
operation visitVoidLiteral(node : kermeta::language::behavior::VoidLiteral, context : ContextType) : ResultTypeUndocumented
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::KMExpressionVisitableUndocumented
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::KMExpressionVisitableRefers 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::KMExpressionVisitableUndocumented
Property name
attribute name: kermeta::reflection::StringUndocumented
Class LambdaParameter
kermeta::language::behavior::LambdaParameter inherits kermeta::reflection::Object, kermeta::language::behavior::KMExpressionVisitableRefers to parameter definition in lambda expression
Class Literal
kermeta::language::behavior::Literal inherits kermeta::language::behavior::ExpressionLiteral 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::KMExpressionVisitableUndocumented
Property initialization
attribute initialization: kermeta::language::behavior::ExpressionUndocumented
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::KMExpressionVisitableLoop 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::KMExpressionVisitableUndocumented
Class Raise
kermeta::language::behavior::Raise inherits kermeta::language::behavior::Expression, kermeta::language::behavior::KMExpressionVisitablerefers to raise exception block
Operation acceptKMExpressionVisitor
method acceptKMExpressionVisitor<ContextType, ResultType>(visitor : kermeta::language::behavior::KMExpressionVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::behavior::KMExpressionVisitableUndocumented
Property exceptionName
attribute exceptionName: kermeta::reflection::StringUndocumented
Property exceptionType
attribute exceptionType: kermeta::language::behavior::TypeReference[1..1]Undocumented
Class Rescue
kermeta::language::behavior::Rescue inherits kermeta::reflection::Object, kermeta::language::behavior::KMExpressionVisitablerefers to rescue exception block
Operation acceptKMExpressionVisitor
method acceptKMExpressionVisitor<ContextType, ResultType>(visitor : kermeta::language::behavior::KMExpressionVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::behavior::KMExpressionVisitableUndocumented
Class SelfExpression
kermeta::language::behavior::SelfExpression inherits kermeta::language::behavior::Expression, kermeta::language::behavior::KMExpressionVisitablerefers to
self use
Operation acceptKMExpressionVisitor
method acceptKMExpressionVisitor<ContextType, ResultType>(visitor : kermeta::language::behavior::KMExpressionVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::behavior::KMExpressionVisitableUndocumented
Property value
attribute value: kermeta::reflection::StringUndocumented
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::KMExpressionVisitableUndocumented
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
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::KMExpressionVisitableUndocumented
Class TypeReference
kermeta::language::behavior::TypeReference inherits kermeta::reflection::MultiplicityElement, kermeta::language::behavior::KMExpressionVisitableTypeReference 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::KMExpressionVisitableUndocumented
Property identifier
attribute identifier: kermeta::reflection::StringUndocumented
Property initialization
attribute initialization: kermeta::language::behavior::Expression[1..1]Undocumented
Class VariableDecl
kermeta::language::behavior::VariableDecl inherits kermeta::language::behavior::Expression, kermeta::language::behavior::KMExpressionVisitablerefers 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::KMExpressionVisitableUndocumented
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::structureContains 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::BooleanUndocumented
Operation acceptKMStructureVisitor
method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitableUndocumented
Operation clone
method clone(objectToClone : kermeta::language::structure::Object) : kermeta::language::structure::Object from kermeta::language::structure::TypeUndocumented
Operation deepClone
method deepClone(objectToClone : kermeta::language::structure::Object) : kermeta::language::structure::Object from kermeta::language::structure::TypeUndocumented
Operation equals
method equals(other : kermeta::reflection::Object) : kermeta::language::structure::Boolean from kermeta::language::structure::ObjectUndocumented
Operation isInstance
method isInstance(object : kermeta::reflection::Object) : kermeta::language::structure::Boolean from kermeta::reflection::TypeUndocumented
Operation isSubType
method isSubType(object : kermeta::reflection::Type) : kermeta::language::structure::Boolean from kermeta::reflection::TypeUndocumented
Class Class
kermeta::language::structure::Class inherits kermeta::language::structure::ParameterizedType, kermeta::reflection::Class, kermeta::language::structure::KMStructureVisitableSee inherited classes.
Operation acceptKMStructureVisitor
method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitableUndocumented
Class ClassDefinition
kermeta::language::structure::ClassDefinition inherits kermeta::language::structure::TypeContainer, kermeta::language::structure::GenericTypeDefinition, kermeta::reflection::ClassDefinition, kermeta::language::structure::KMStructureVisitableSee inherited classes.
Operation acceptKMStructureVisitor
method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitableUndocumented
Property language
attribute language: kermeta::language::structure::ConstraintLanguageUndocumented
Property stereotype
attribute stereotype: kermeta::language::structure::ConstraintTypeUndocumented
Class Constraint
kermeta::language::structure::Constraint inherits kermeta::reflection::Constraint, kermeta::language::structure::NamedElement, kermeta::reflection::Operation, kermeta::language::structure::KMStructureVisitableSee inherited classes.
Operation acceptKMStructureVisitor
method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitableUndocumented
Operation clone
method clone(objectToClone : kermeta::language::structure::Object) : kermeta::language::structure::Object from kermeta::language::structure::TypeUndocumented
Class DataType
kermeta::language::structure::DataType inherits kermeta::language::structure::TypeDefinition, kermeta::language::structure::Type, kermeta::reflection::DataType, kermeta::language::structure::KMStructureVisitableOperation acceptKMStructureVisitor
method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitableUndocumented
Operation clone
method clone(objectToClone : kermeta::language::structure::Object) : kermeta::language::structure::Object from kermeta::language::structure::DataTypeUndocumented
Class Enumeration
kermeta::language::structure::Enumeration inherits kermeta::language::structure::DataType, kermeta::reflection::Enumeration, kermeta::language::structure::KMStructureVisitableOperation acceptKMStructureVisitor
method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitableUndocumented
Class EnumerationLiteral
kermeta::language::structure::EnumerationLiteral inherits kermeta::language::structure::NamedElement, kermeta::reflection::EnumerationLiteral, kermeta::language::structure::KMStructureVisitableSee inherited classes.
Operation acceptKMStructureVisitor
method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitableUndocumented
Class FunctionType
kermeta::language::structure::FunctionType inherits kermeta::language::structure::TypeContainer, kermeta::language::structure::Type, kermeta::reflection::FunctionType, kermeta::language::structure::KMStructureVisitableOperation acceptKMStructureVisitor
method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitableUndocumented
Class GenericTypeDefinition
kermeta::language::structure::GenericTypeDefinition inherits kermeta::language::structure::TypeDefinition, kermeta::reflection::GenericTypeDefinition, kermeta::language::structure::KMStructureVisitableSee inherited classes.
Alias Integer
kermeta::language::structure::IntegerUndocumented
Operation acceptKMStructureVisitor
operation acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultTypeUndocumented
Class KMStructureVisitable
kermeta::language::structure::KMStructureVisitable All the classes defined in this
inherit this class. Part of Visitor pattern implementation.
kermeta::language::structure package
inherit this class. Part of Visitor pattern implementation.
Operation visitClass
operation visitClass(node : kermeta::language::structure::Class, context : ContextType) : ResultTypeUndocumented
Operation visitClassDefinition
operation visitClassDefinition(node : kermeta::language::structure::ClassDefinition, context : ContextType) : ResultTypeUndocumented
Operation visitConstraint
operation visitConstraint(node : kermeta::language::structure::Constraint, context : ContextType) : ResultTypeUndocumented
Operation visitDataType
operation visitDataType(node : kermeta::language::structure::DataType, context : ContextType) : ResultTypeUndocumented
Operation visitEnumeration
operation visitEnumeration(node : kermeta::language::structure::Enumeration, context : ContextType) : ResultTypeUndocumented
Operation visitEnumerationLiteral
operation visitEnumerationLiteral(node : kermeta::language::structure::EnumerationLiteral, context : ContextType) : ResultTypeUndocumented
Operation visitFunctionType
operation visitFunctionType(node : kermeta::language::structure::FunctionType, context : ContextType) : ResultTypeUndocumented
Operation visitGenericTypeDefinition
operation visitGenericTypeDefinition(node : kermeta::language::structure::GenericTypeDefinition, context : ContextType) : ResultTypeUndocumented
Operation visitModel
operation visitModel(node : kermeta::language::structure::Model, context : ContextType) : ResultTypeUndocumented
Operation visitModelType
operation visitModelType(node : kermeta::language::structure::ModelType, context : ContextType) : ResultTypeUndocumented
Operation visitModelTypeDefinition
operation visitModelTypeDefinition(node : kermeta::language::structure::ModelTypeDefinition, context : ContextType) : ResultTypeUndocumented
Operation visitModelTypeVariable
operation visitModelTypeVariable(node : kermeta::language::structure::ModelTypeVariable, context : ContextType) : ResultTypeUndocumented
Operation visitMultiplicityElement
operation visitMultiplicityElement(node : kermeta::language::structure::MultiplicityElement, context : ContextType) : ResultTypeUndocumented
Operation visitNamedElement
operation visitNamedElement(node : kermeta::language::structure::NamedElement, context : ContextType) : ResultTypeUndocumented
Operation visitObjectTypeVariable
operation visitObjectTypeVariable(node : kermeta::language::structure::ObjectTypeVariable, context : ContextType) : ResultTypeUndocumented
Operation visitOperation
operation visitOperation(node : kermeta::language::structure::Operation, context : ContextType) : ResultTypeUndocumented
Operation visitPackage
operation visitPackage(node : kermeta::language::structure::Package, context : ContextType) : ResultTypeUndocumented
Operation visitParameter
operation visitParameter(node : kermeta::language::structure::Parameter, context : ContextType) : ResultTypeUndocumented
Operation visitParameterizedType
operation visitParameterizedType(node : kermeta::language::structure::ParameterizedType, context : ContextType) : ResultTypeUndocumented
Operation visitPrimitiveType
operation visitPrimitiveType(node : kermeta::language::structure::PrimitiveType, context : ContextType) : ResultTypeUndocumented
Operation visitProductType
operation visitProductType(node : kermeta::language::structure::ProductType, context : ContextType) : ResultTypeUndocumented
Operation visitProperty
operation visitProperty(node : kermeta::language::structure::Property, context : ContextType) : ResultTypeUndocumented
Operation visitTag
operation visitTag(node : kermeta::language::structure::Tag, context : ContextType) : ResultTypeUndocumented
Operation visitType
operation visitType(node : kermeta::language::structure::Type, context : ContextType) : ResultTypeUndocumented
Operation visitTypeDefinition
operation visitTypeDefinition(node : kermeta::language::structure::TypeDefinition, context : ContextType) : ResultTypeUndocumented
Operation visitTypeDefinitionContainer
operation visitTypeDefinitionContainer(node : kermeta::language::structure::TypeDefinitionContainer, context : ContextType) : ResultTypeUndocumented
Operation visitTypeVariableBinding
operation visitTypeVariableBinding(node : kermeta::language::structure::TypeVariableBinding, context : ContextType) : ResultTypeUndocumented
Operation visitTypedElement
operation visitTypedElement(node : kermeta::language::structure::TypedElement, context : ContextType) : ResultTypeUndocumented
Operation visitVirtualType
operation visitVirtualType(node : kermeta::language::structure::VirtualType, context : ContextType) : ResultTypeUndocumented
Operation visitVoidType
operation visitVoidType(node : kermeta::language::structure::VoidType, context : ContextType) : ResultTypeUndocumented
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::KMStructureVisitableUndocumented
Operation add
method add(obj : kermeta::reflection::Object) : Void from kermeta::reflection::ModelUndocumented
Operation addAllCompatible
method addAllCompatible(objectsToAdd : kermeta::standard::Collection<kermeta::language::structure::Object>) : kermeta::standard::Collection<kermeta::language::structure::Object> from kermeta::reflection::ModelUndocumented
Operation addCompatible
method addCompatible(objectToAdd : kermeta::reflection::Object) : kermeta::reflection::Object from kermeta::reflection::ModelUndocumented
Operation filter
method filter(typeName : kermeta::reflection::Type) : set kermeta::reflection::Object[0..*] from kermeta::reflection::ModelUndocumented
Operation remove
method remove(obj : kermeta::reflection::Object) : Void from kermeta::reflection::ModelUndocumented
Class Model
kermeta::language::structure::Model inherits kermeta::language::structure::Object, kermeta::reflection::ModelSee inherited classes.
Operation acceptKMStructureVisitor
method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitableUndocumented
Operation isModelTypeOf
method isModelTypeOf(m : kermeta::reflection::Model) : kermeta::language::structure::Boolean from kermeta::reflection::ModelTypeUndocumented
Operation new
method new() : kermeta::reflection::Model from kermeta::reflection::ModelTypeUndocumented
Class ModelType
kermeta::language::structure::ModelType inherits kermeta::language::structure::ParameterizedType, kermeta::reflection::ModelType, kermeta::language::structure::KMStructureVisitableOperation acceptKMStructureVisitor
method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitableUndocumented
Class ModelTypeDefinition
kermeta::language::structure::ModelTypeDefinition inherits kermeta::language::structure::GenericTypeDefinition, kermeta::language::structure::TypeDefinitionContainer, kermeta::reflection::ModelTypeDefinition, kermeta::language::structure::KMStructureVisitableSee inherited classes.
Operation acceptKMStructureVisitor
method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitableUndocumented
Class ModelTypeVariable
kermeta::language::structure::ModelTypeVariable inherits kermeta::language::structure::TypeVariable, kermeta::language::structure::TypeContainer, kermeta::language::structure::VirtualTypeContainer, kermeta::reflection::ModelTypeVariableOperation acceptKMStructureVisitor
method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitableUndocumented
Class MultiplicityElement
kermeta::language::structure::MultiplicityElement inherits kermeta::language::structure::TypedElement, kermeta::reflection::MultiplicityElement, kermeta::language::structure::KMStructureVisitableSee inherited classes.
Operation acceptKMStructureVisitor
method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitableUndocumented
Class NamedElement
kermeta::language::structure::NamedElement inherits kermeta::language::structure::Object, kermeta::reflection::NamedElement, kermeta::language::structure::KMStructureVisitableSee inherited classes.
Operation checkAllInvariants
method checkAllInvariants() : Void from kermeta::reflection::ObjectUndocumented
Operation checkInvariants
method checkInvariants() : Void from kermeta::reflection::ObjectUndocumented
Operation container
method container() : kermeta::reflection::Object from kermeta::reflection::ObjectUndocumented
Operation equals
method equals(element : kermeta::reflection::Object) : kermeta::language::structure::Boolean from kermeta::reflection::ObjectUndocumented
Operation freeze
method freeze() : Void from kermeta::reflection::ObjectUndocumented
Operation get
method get(~property : kermeta::reflection::Property) : kermeta::reflection::Object from kermeta::reflection::ObjectUndocumented
Operation getMetaClass
method getMetaClass() : kermeta::reflection::Class from kermeta::reflection::ObjectUndocumented
Operation isFrozen
method isFrozen() : kermeta::language::structure::Boolean from kermeta::reflection::ObjectUndocumented
Operation isKindOf
method isKindOf(cl : kermeta::reflection::Class) : kermeta::language::structure::Boolean from kermeta::reflection::ObjectUndocumented
Operation isNotEqual
method isNotEqual(element : kermeta::reflection::Object) : kermeta::language::structure::Boolean from kermeta::reflection::ObjectUndocumented
Operation isNotSameAs
method isNotSameAs(element : kermeta::reflection::Object) : kermeta::language::structure::Boolean from kermeta::reflection::ObjectUndocumented
Operation isSameAs
method isSameAs(element : kermeta::reflection::Object) : kermeta::language::structure::Boolean from kermeta::reflection::ObjectUndocumented
Operation isSet
method isSet(~property : kermeta::reflection::Property) : kermeta::language::structure::Boolean from kermeta::reflection::ObjectUndocumented
Operation isVoid
method isVoid() : kermeta::language::structure::Boolean from kermeta::reflection::ObjectUndocumented
Operation oid
method oid() : kermeta::language::structure::Integer from kermeta::reflection::ObjectUndocumented
Operation set
method ~set(~property : kermeta::reflection::Property, element : kermeta::reflection::Object) : Void from kermeta::reflection::ObjectUndocumented
Operation toString
method toString() : kermeta::language::structure::String from kermeta::reflection::ObjectUndocumented
Operation unset
method unset(~property : kermeta::reflection::Property) : Void from kermeta::reflection::ObjectUndocumented
Class Object
kermeta::language::structure::Object inherits kermeta::reflection::Object, kermeta::language::structure::KMStructureVisitableSee inherited classes.
Operation acceptKMStructureVisitor
method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitableUndocumented
Class ObjectTypeVariable
kermeta::language::structure::ObjectTypeVariable inherits kermeta::language::structure::TypeContainer, kermeta::language::structure::TypeVariable, kermeta::reflection::ObjectTypeVariable, kermeta::language::structure::KMStructureVisitableOperation acceptKMStructureVisitor
method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitableUndocumented
Class Operation
kermeta::language::structure::Operation inherits kermeta::language::structure::MultiplicityElement, kermeta::reflection::Operation, kermeta::language::structure::KMStructureVisitableSee inherited classes.
Operation acceptKMStructureVisitor
method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitableUndocumented
Class Package
kermeta::language::structure::Package inherits kermeta::language::structure::TypeDefinitionContainer, kermeta::reflection::Package, kermeta::language::structure::KMStructureVisitableSee inherited classes.
Operation acceptKMStructureVisitor
method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitableUndocumented
Class Parameter
kermeta::language::structure::Parameter inherits kermeta::language::structure::MultiplicityElement, kermeta::reflection::Parameter, kermeta::language::structure::KMStructureVisitableSee inherited classes.
Operation acceptKMStructureVisitor
method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitableUndocumented
Class ParameterizedType
kermeta::language::structure::ParameterizedType inherits kermeta::language::structure::Type, kermeta::reflection::ParameterizedType, kermeta::language::structure::KMStructureVisitableSee inherited classes.
Operation acceptKMStructureVisitor
method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitableUndocumented
Operation clone
method clone(objectToClone : kermeta::language::structure::Object) : kermeta::language::structure::Object from kermeta::language::structure::DataTypeUndocumented
Class PrimitiveType
kermeta::language::structure::PrimitiveType inherits kermeta::language::structure::TypeContainer, kermeta::language::structure::DataType, kermeta::reflection::PrimitiveType, kermeta::language::structure::KMStructureVisitableOperation acceptKMStructureVisitor
method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitableUndocumented
Class ProductType
kermeta::language::structure::ProductType inherits kermeta::language::structure::TypeContainer, kermeta::language::structure::Type, kermeta::reflection::ProductType, kermeta::language::structure::KMStructureVisitableOperation acceptKMStructureVisitor
method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitableUndocumented
Class Property
kermeta::language::structure::Property inherits kermeta::language::structure::MultiplicityElement, kermeta::reflection::Property, kermeta::language::structure::KMStructureVisitableSee inherited classes.
Alias String
kermeta::language::structure::StringUndocumented
Operation acceptKMStructureVisitor
method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitableUndocumented
Class Tag
kermeta::language::structure::Tag inherits kermeta::language::structure::Object, kermeta::reflection::Tag, kermeta::language::structure::KMStructureVisitableSee inherited classes.
Operation acceptKMStructureVisitor
method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitableUndocumented
Operation clone
operation clone(objectToClone : kermeta::language::structure::Object) : kermeta::language::structure::ObjectUndocumented
Operation deepClone
operation deepClone(objectToClone : kermeta::language::structure::Object) : kermeta::language::structure::ObjectUndocumented
Class Type
kermeta::language::structure::Type inherits kermeta::language::structure::Object, kermeta::reflection::Type, kermeta::language::structure::KMStructureVisitableClass TypeContainer
kermeta::language::structure::TypeContainer inherits kermeta::language::structure::Object, kermeta::reflection::TypeContainerSee inherited classes.
Operation acceptKMStructureVisitor
method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitableUndocumented
Class TypeDefinition
kermeta::language::structure::TypeDefinition inherits kermeta::language::structure::NamedElement, kermeta::reflection::TypeDefinition, kermeta::language::structure::KMStructureVisitableSee inherited classes.
Operation acceptKMStructureVisitor
method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitableUndocumented
Class TypeDefinitionContainer
kermeta::language::structure::TypeDefinitionContainer inherits kermeta::language::structure::NamedElement, kermeta::reflection::TypeDefinitionContainer, kermeta::language::structure::KMStructureVisitableclass 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::KMStructureVisitableSee inherited classes.
Operation acceptKMStructureVisitor
method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitableUndocumented
Class TypeVariableBinding
kermeta::language::structure::TypeVariableBinding inherits kermeta::language::structure::TypeContainer, kermeta::language::structure::Object, kermeta::reflection::TypeVariableBinding, kermeta::language::structure::KMStructureVisitableSee inherited classes.
Operation acceptKMStructureVisitor
method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitableUndocumented
Class TypedElement
kermeta::language::structure::TypedElement inherits kermeta::language::structure::TypeContainer, kermeta::language::structure::NamedElement, kermeta::reflection::TypedElement, kermeta::language::structure::KMStructureVisitableSee 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::KMStructureVisitableUndocumented
Class VirtualType
kermeta::language::structure::VirtualType inherits kermeta::language::structure::ObjectTypeVariable, kermeta::reflection::VirtualType, kermeta::language::structure::KMStructureVisitableClass VirtualTypeContainer
kermeta::language::structure::VirtualTypeContainer inherits kermeta::language::structure::Object, kermeta::reflection::VirtualTypeContainerSee inherited classes.
Operation acceptKMStructureVisitor
method acceptKMStructureVisitor<ContextType, ResultType>(visitor : kermeta::language::structure::KMStructureVisitor<ContextType, ResultType>, context : ContextType) : ResultType from kermeta::language::structure::KMStructureVisitableUndocumented
Class VoidType
kermeta::language::structure::VoidType inherits kermeta::language::structure::Type, kermeta::reflection::VoidType, kermeta::language::structure::KMStructureVisitable